I'm new to Apache, and I'm trying to set up a simple web server. It so happens that my domain isn't set up yet, so my server is at 66.23.224.5 for the time being. I've only minimally modified httpd.conf to get things set up, and in particular I have the line
ServerName 66.23.224.5:80 which as far as I can tell should cause the SERVER_NAME environment variable to be set. Unfortunately, the environment script says otherwise: COMSPEC="C:\WINDOWS\system32\cmd.exe" DOCUMENT_ROOT="C:/www" GATEWAY_INTERFACE="CGI/1.1" HTTP_ACCEPT="text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5" HTTP_ACCEPT_CHARSET="ISO-8859-1,utf-8;q=0.7,*;q=0.7" HTTP_ACCEPT_ENCODING="gzip,deflate" HTTP_ACCEPT_LANGUAGE="en-us,en;q=0.5" HTTP_CACHE_CONTROL="max-age=0" HTTP_CONNECTION="keep-alive" HTTP_HOST="localhost" HTTP_KEEP_ALIVE="300" HTTP_USER_AGENT="Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.12) Gecko/20080201 Firefox/2.0.0.12" PATH="C:\Perl\site\bin;C:\Perl\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Common Files\GTK\2.0\bin;C:\Program Files\Jahshaka\..\gtk2\bin;C:\Program Files\Jahshaka\..\mlt\bin;C:\Program Files\OpenLibraries\bin;C:\Program Files\QuickTime\QTSystem\;C:\Program Files\MySQL\MySQL Server 6.0\bin" PATHEXT=".COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH" QUERY_STRING="" REMOTE_ADDR="127.0.0.1" REMOTE_PORT="4093" REQUEST_METHOD="GET" REQUEST_URI="/cgi-bin/printenv.pl" SCRIPT_FILENAME="C:/Program Files/Apache Software Foundation/Apache2.2/cgi-bin/printenv.pl" SCRIPT_NAME="/cgi-bin/printenv.pl" SERVER_ADDR="127.0.0.1" SERVER_ADMIN="[EMAIL PROTECTED]" SERVER_NAME="localhost" SERVER_PORT="80" SERVER_PROTOCOL="HTTP/1.1" SERVER_SIGNATURE="" SERVER_SOFTWARE="Apache/2.2.8 (Win32)" SYSTEMROOT="C:\WINDOWS" WINDIR="C:\WINDOWS" You can clearly see that the httpd.conf file is being parsed and applied - otherwise SERVER_ADMIN would be the default and not what I set it to. So what am I missing about SERVER_NAME (and HTTP_HOST, for that matter)? -- C. Benson Manica [EMAIL PROTECTED]