httpd: add comment explaining why SERVER_NAME etc is not set.
authorDenis Vlasenko <vda.linux@googlemail.com>
Wed, 18 Mar 2009 20:00:46 +0000 (20:00 -0000)
committerDenis Vlasenko <vda.linux@googlemail.com>
Wed, 18 Mar 2009 20:00:46 +0000 (20:00 -0000)
networking/httpd.c

index 01b56ebd20d4d2a9537bc5b46a784b4795f90dd7..6bf103c56fe6b555eed241a03bda720d7ff6381d 100644 (file)
@@ -1386,6 +1386,8 @@ static void send_cgi_and_exit(
        if (referer)
                setenv1("HTTP_REFERER", referer);
        setenv1("HTTP_HOST", host); /* set to "" if NULL */
+       /* setenv1("SERVER_NAME", safe_gethostname()); - don't do this,
+        * just run "env SERVER_NAME=xyz httpd ..." instead */
 
        xpiped_pair(fromCgi);
        xpiped_pair(toCgi);