Helicon APE not SetEnvIf not working
6 posts
• Page 1 of 1
Helicon APE not SetEnvIf not working
I have 2 websites, running the same code, on 2 different servers. The one on shared hosting, with an older version of APE works fine, the second one running on an enterprise server, running the latest version of APE, doesn't work.
The bit of code in question is as follows:
SetEnvIf %{REQUEST_URI} (.*) HTTP_X_REWRITE_URL=$1
Basically I'm trying to pass the original requested url to the redirected page. All the redirect rules work just fine.
If this is a bug, is there an alternative way to pass the original URL to the redirected one?
Thanks,
The bit of code in question is as follows:
SetEnvIf %{REQUEST_URI} (.*) HTTP_X_REWRITE_URL=$1
Basically I'm trying to pass the original requested url to the redirected page. All the redirect rules work just fine.
If this is a bug, is there an alternative way to pass the original URL to the redirected one?
Thanks,
Re: Helicon APE not SetEnvIf not working
Hello.
Please read here: https://www.helicontech.com/ape/doc/mod ... tm#Options the section regarding "NeverChangeServerVariables" option.
You can turn old behavior back by putting the following line into your httpd.conf:
Options -NeverChangeServerVariables
Please note that if you attempt to change some certain variables that already exist, like HTTP_HOST, etc. this will lead to an ugly IIS worker process crash, with dropped connections, restart, etc. This is not our bug, but we have to live with it. Alternatively, you may just use HTTP headers. Normally Ape will fill "X-Rewrite-URL:" HTTP header with originally requested URL automatically. Just refer to it as to HTTP header from your app code, not as server variable.
Please read here: https://www.helicontech.com/ape/doc/mod ... tm#Options the section regarding "NeverChangeServerVariables" option.
You can turn old behavior back by putting the following line into your httpd.conf:
Options -NeverChangeServerVariables
Please note that if you attempt to change some certain variables that already exist, like HTTP_HOST, etc. this will lead to an ugly IIS worker process crash, with dropped connections, restart, etc. This is not our bug, but we have to live with it. Alternatively, you may just use HTTP headers. Normally Ape will fill "X-Rewrite-URL:" HTTP header with originally requested URL automatically. Just refer to it as to HTTP header from your app code, not as server variable.
Re: Helicon APE not SetEnvIf not working
Please note that if you attempt to change some certain variables that already exist, like HTTP_HOST, etc. this will lead to an ugly IIS worker process crash, with dropped connections, restart, etc. This is not our bug, but we have to live with it. Alternatively, you may just use HTTP headers. Normally Ape will fill "X-Rewrite-URL: click here
Re: Helicon APE not SetEnvIf not working
Freecell is really an amazing game it is based on solitaire game We love to play this game online on pc on just single click on homepage https://playfreecellonline.net
- surveillancekart
- Posts: 1
- Joined: 04 Nov 2017, 09:40
Re: Helicon APE not SetEnvIf not working
Please note that if you attempt to change some certain variables that already exist, like HTTP_HOST, etc. this will lead to an ugly IIS worker process crash, with dropped connections, restart, etc. This is not our bug, but we have to live with it. Alternatively, you may just use HTTP headers. Normally Ape will fill "X-Rewrite-URL: <a href="https://www.surveillancekart.com">click here</a>
- ifreecrack212
- Posts: 1
- Joined: 30 Nov 2017, 08:29
Re: Helicon APE not SetEnvIf not working
Check below given link and download latest list of popular romantic songs download 2018 for free.
http://hackourlives.tech/latest-most-romantic-songs/
http://hackourlives.tech/latest-most-romantic-songs/
6 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 10 guests