Register
|
Forum Index
|
FAQ
|
Search
|
Usergroups
|
Log in
Visit HostMySite.com
Forum Index
»
VPS (Virtual Private Servers)
» Post a reply
Post a reply
Username
Subject
Message body
Emoticons
View more Emoticons
Font colour:
Default
Dark Red
Red
Orange
Brown
Yellow
Green
Olive
Cyan
Blue
Dark Blue
Indigo
Violet
White
Black
Font size:
Tiny
Small
Normal
Large
Huge
Close Tags
Options
HTML is
OFF
BBCode
is
ON
Smilies are
ON
Disable BBCode in this post
Disable Smilies in this post
All times are GMT
Select a forum
HostMySite Forum Topics
----------------
Announcements
General Discussion
Domain Name Information
Email & SmarterMail
VPS (Virtual Private Servers)
Web Design
Programming
Ruby on Rails
ASP & .NET
ColdFusion
PHP
Dedicated Servers
Hosted Exchange and SharePoint Beta
Database
WordPress Blog
Networking Forum
SmarterStats
MIVA Merchant & Ecommerce
Operating Systems
MarketPlace
World's Fastest Server
Topic review
Author
Message
rpcarnell
Posted: Wed Apr 23, 2008 7:42 am
Post subject: Same Server Name for all websites
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>
Powered by
phpBB
© phpBB Group
Design by
phpBBStyles.com
|
Styles Database
.
Content ©
DupeDB