iixqzitexw RemoveThis @mailinator.com wrote in news:1164764860.399305.278750@
14g2000cws.googlegroups.com:
> Hello,
>
> I have the following problem with Apache version 2.0.53, running on
> SuSE Linux 9.3:
> - one default server
> - one virtual host listening to www1.mydomain.com (see my httpd.conf
> snip below)
>
>
> Nevertheless, ALL requests to the server are being answered by the
> virtual host.
> No matter how I access the server, it loads the /public_html instead of
>
> the /loadbalance directory.
> It's just like the virtual hosts becomes the default server.
>
>
> What am I doing wrong?
>
>
> Regards,
> -Henric
>
>
> ===
> DocumentRoot /home/myuser/loadbalance
> <Directory "/home/myuser/loadbalance/">
> Options FollowSymLinks
> AllowOverride All
> Order allow,deny
> Allow from all
> </Directory>
>
>
> <VirtualHost *:80>
> DocumentRoot "/home/myuser/public_html"
> ServerName www1.mywebsite.com
> <Directory "/home/myuser/public_html">
> allow from all
> Options +Indexes
> </Directory>
> </VirtualHost>
>
>
The only thing you did wrong was not thoroughly read the manual. By using
<VirtualHost *:...> you have effectively created a default server. The
main server will now be ignored.
Move your main server config to your Vhosts section and restart. I think
you will get the results you want.
----== Posted via Newsfeeds.Com - Unlimited-Unrestricted-Secure Usenet News==----
http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups
----= East and West-Coast Server Farms - Total Privacy via Encryption =----
>> Stay informed about: virtual host takes over, default server is being ignored