Afficher un message
Vieux 20/03/2005, 02h16   #1
laredotornado@zipmail.com
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut how to configure the right ServerName?

Hello, On my Fedora Core 2 Linux system, I have just installed Apache
1.3.33 and PHP 4. I would like calls to the PHP variable,
"$_SERVER['SERVER_NAME']" to result in the name of my server, but right
now, they're returning "localhost.localdomain."

I do have the following configured in httpd.conf and I've restarted
Apache a number of times with these options

UseCanonicalName On

# General setup for the virtual host
DocumentRoot "/usr/local/apache/htdocs"
ServerName myhost.mydomain.org
ServerAdmin laredotornado@neko.no-ip.org
ErrorLog /usr/local/apache/logs/error_log
TransferLog /usr/local/apache/logs/access_log

Are there other directives I need to insert/change? Thanks, - Dave

  Réponse avec citation
 
Page generated in 0,04538 seconds with 9 queries