Ok, I tried that:
SetEnv MY_HOST 192.168.70.23
...
RewriteCond %{HTTP_HOST} ^localhost$ [NC]
RewriteRule ^(.*)$ http://%{ENV:MY_HOST}/ccSe
And Apache said (500): Request exceeded the limit of 10 internal redirects due to probable configuration error.
Can you tell me what I'm doing wrong?
Main Topics
Browse All Topics





by: leakim971Posted on 2009-10-31 at 13:35:36ID: 25711438
Hello d4011,
cs/2.0/mod /mod_rewri te.html
Have a look to the RewriteCond Directive from : http://httpd.apache.org/do
Seems you can create ENV variable : %{ENV:variable}, where variable can be any environment variable, is also available. This is looked-up via internal Apache structures and (if not found there) via getenv() from the Apache server process
Regards.