Apache SetEnv works in one context but not another

by raphael75   Last Updated May 15, 2019 15:01 PM

I'm using Apache 2.4.37 Windows an I have an .htaccess file with this line:

SetEnv site_path c:\wamp64\www\test_folder

If I access the site from

http://test_folder

And echo $_SERVER, site_path shows up. However, if I access the same page from a phone by IP address over Wi-Fi (http://192.168.215.151), the site_path variable doesn't show at all.

I also tested using the SetEnv in the httpd-vhosts.conf file and got the exact same result.

Why would site_path only show up in the first scenario?



Related Questions


Updated March 02, 2017 13:01 PM

Updated November 02, 2017 10:01 AM

Updated May 23, 2019 22:01 PM

Updated November 10, 2017 04:01 AM