hi all.
When I first encountered this problem, I though it would be a simple solution, but i must just be missing something obvious.
i have a few name based hosts configured in apache.
when i go to "www.adomainname.com" i get the first website on this list, not "adomainname.com", as i would like. Does anyone have any ideas on how to fix this?
here is the relevant part of my config files:
Code:
<VirtualHost *:80>
DocumentRoot "/var/www/httest"
ServerName hhexamplehh.selfip.com
<Directory "/var/www/httest">
allow from all
Options +Indexes
</Directory>
</VirtualHost>
<VirtualHost *:80>
ServerName tempesthostingservices.com
DocumentRoot /var/www/tempest
<Directory /var/www/tempest/>
allow from all
Options +Indexes
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
AllowOverride All
allow from all
Options +Indexes
</Directory>
SetEnv SITE_ROOT /var/www/tempest
SetEnv SITE_HTMLROOT /var/www/tempest
</VirtualHost>
<VirtualHost *:80>
DocumentRoot "/var/www/brownstonehall"
ServerName brownstonehall.com
<Directory "/var/www/brownstonehall">
AllowOverride All
RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
allow from all
Options +Indexes
</Directory>
#SetEnv SITE_ROOT /var/www/brownstonehall
#SetEnv SITE_HTMLROOT /var/www/brownstonehall
</VirtualHost>