We are running suse11 apache2.2 server. When we try to get REMOTE_HOST we get an error "index not found" as shown below

REMOTE_HOST : Notice: Undefined index: REMOTE_HOST in /media/nss/VOL1/htdocs/serverVars.php on line 44 HTTP_REFERER : Notice: Undefined index: HTTP_REFERER in /media/nss/VOL1/htdocs/serverVars.php on line 45 REMOTE_USER : Notice: Undefined index: REMOTE_USER in /media/nss/VOL1/htdocs/serverVars.php on line 46 Here is a sample of what we are using to troubleshoot the problem.

<?php
print " BCIS serverVars.php " . "<br />";
print "DOCUMENT_ROOT : ";
print $_SERVER['DOCUMENT_ROOT'] . "<br />";
print "SERVER_NAME : ";
print $_SERVER['SERVER_NAME'] . "<br />";
print "HTTP_HOST : ";
print $_SERVER['HTTP_HOST'] . "<br />";
print "HTTP_COOKIE : ";
print $_SERVER['HTTP_COOKIE'] . "<br />";
print "----------------------------------------- <br />";
print "REMOTE_HOST : ";
print $_SERVER['REMOTE_HOST'] . "<br />";
print "HTTP_REFERER : ";
print $_SERVER['HTTP_REFERER'] . "<br />";
print "REMOTE_USER : ";
print $_SERVER['REMOTE_USER'] . "<br />";
print "PATH_INFO : ";
print $_SERVER['PATH_INFO'] . "<br />"; ?>

Accept I have placed "HostNameLookups On" in both etc\apache2\httpd.conf file and when that did not solve the problem I placed it in my etc\vhostd\vhost.d config file. Still did not work.

when I first opend the httpd.conf file I noticed that HostNameLookups was not even listed, I had to add it.


Could someone direct us on the correct path?

Thanks.