beniwtv
May 3rd 2006, 3:00 am
Hi. I'm having trouble with this virtualhost configuration:
<VirtualHost *:80>
DocumentRoot /home/xxx/rewrite/www
ServerName benito.xxx.com
ServerAlias *.benito.xxx.com
</VirtualHost>
<VirtualHost *:80>
DocumentRoot /home/xxx/www/beni
ServerName xxx.com
ServerAlias *.xxx.com
</VirtualHost>
<VirtualHost *:80>
DocumentRoot /home/xxx/www/beni
ServerName info.xxx.com
ServerAlias *.info.xxx.com
</VirtualHost>
Let me explain: both xxx.com and info.xxx.com are sites that are located in the same directory, in fact, they're the same site. benito.xxx.com is located in another directory with a file called content.php and .htaccess in it, that, basically do the following: you enter benito.xxx.com/Directory/foo/bar and it will redirect to content.php?Path=foo/bar. This works fine.
But now, if I am trying to access the other sites on certain directories, for example, info.xxx.com, apache will use benito.xxx.com instead. I don't know why. Hint: I am using Apache 2.
Thanks for any help,
beni
<VirtualHost *:80>
DocumentRoot /home/xxx/rewrite/www
ServerName benito.xxx.com
ServerAlias *.benito.xxx.com
</VirtualHost>
<VirtualHost *:80>
DocumentRoot /home/xxx/www/beni
ServerName xxx.com
ServerAlias *.xxx.com
</VirtualHost>
<VirtualHost *:80>
DocumentRoot /home/xxx/www/beni
ServerName info.xxx.com
ServerAlias *.info.xxx.com
</VirtualHost>
Let me explain: both xxx.com and info.xxx.com are sites that are located in the same directory, in fact, they're the same site. benito.xxx.com is located in another directory with a file called content.php and .htaccess in it, that, basically do the following: you enter benito.xxx.com/Directory/foo/bar and it will redirect to content.php?Path=foo/bar. This works fine.
But now, if I am trying to access the other sites on certain directories, for example, info.xxx.com, apache will use benito.xxx.com instead. I don't know why. Hint: I am using Apache 2.
Thanks for any help,
beni