Reply to topic
Same Server Name for all websites
rpcarnell


Joined: 07 Dec 2006
Posts: 21
Reply with quote
I am running multiple websites on a single VPS. Everything is fine, but here is the problem:

$_SERVER['SERVER_ADDR'] and $_SERVER['PHP_SELF'] are both giving me this:
timeshare-at-large

As the name of all websites. It doesn't matter which website it is: that's what I am getting.

Can anyone explain to me why this is? I have this on my httpd.conf:

<VirtualHost 76.12.88.210>
ServerAdmin admin@timeshare-at-large.com
ServerName www.timeshare-at-large.com
ServerAlias timeshare-at-large.com

<Directory "/var/www2">
Options Includes Indexes FollowSymLinks MultiViews
AllowOverride Limit
Order allow,deny
Allow from all
</Directory>

ScriptAlias /cgi-bin/ "/var/www2/cgi-bin/"

DocumentRoot /var/www2/html/
ErrorLog /var/www2/logs/www2_error_log
CustomLog /var/www2/logs/www2_access_log common

<FilesMatch "^\.ht">
Order allow,deny
Deny from all
</FilesMatch>
</VirtualHost>
Same Server Name for all websites
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT  
Page 1 of 1  

  
  
 Reply to topic