Welcome to MobyThreads.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in
All support for the MobyThreads Threaded phpBB MOD can now be found on welsolutions at this forum

virtual host takes over, default server is being ignored

 
   Web Hosting and Web Master Forums (Home) -> Apache RSS
Next:  Can you set a cookie from a CGI executed by an SS..  
Author Message
iixqzitexw

External


Since: Nov 28, 2006
Posts: 1



(Msg. 1) Posted: Tue Nov 28, 2006 5:47 pm
Post subject: virtual host takes over, default server is being ignored
Archived from groups: alt>apache>configuration (more info?)

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>

 >> Stay informed about: virtual host takes over, default server is being ignored 
Back to top
Login to vote
shimmyshack

External


Since: Dec 08, 2006
Posts: 274



(Msg. 2) Posted: Tue Nov 28, 2006 11:28 pm
Post subject: Re: virtual host takes over, default server is being ignored [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

stick the default server inside virtualhost block as well, the rule is
that the first vhost is always the winner if nothing else can be found
to satisy the request.
you can also have another server outside the vhosts which will act as
default - when you turn off virtual hosting.

 >> Stay informed about: virtual host takes over, default server is being ignored 
Back to top
Login to vote
Mark

External


Since: Aug 06, 2006
Posts: 47



(Msg. 3) Posted: Thu Nov 30, 2006 8:14 am
Post subject: Re: virtual host takes over, default server is being ignored [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

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 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
how can I define default virtual host using IP in url ? - I'm using apache 1.3 with several virtual host. Each host has a DNS record from dyndns like foo.com, elsa.org, example.edu,... and they have all the same IP adresse (24.50.24.50 for example). Using url http://foo.com I can correctly access to foo.com..

Default/Virtual server ? - I am new to apache 2.0.40 running on Linux and although I have it working I am unsure what is the best way configure 2 IP based hosts. Example configurations: 1. One IP as default server, one as virtual or 2. One IP as virtual, 2nd IP as virtual, wit...

virtual host or virtual server ?? - I quite often see the terms "virtual host" and "virtual server" in relation setting up the configuration of apache. I know what a virtual host is but I am not exactly sure what is a virtual server. Anyone care to explain the differen...

apache takes down the whole server - Hi everybody, it seems like I have a serious problem here with apache configuration. The LAMP application is running a apache 1.3.x version and does well perform nearly all the time. But then, suddenly the system starts trottling down. It starts to..

Apache Virtual Host To IIS Server - I have a cable modem and I have one IP address given to me by Time Warner. I have two web servers, one running Apache with PHP and the other running IIS with ASP. Right now I have my Apache web server running fine on the one IP address and it is hostin...
   Web Hosting and Web Master Forums (Home) -> Apache All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
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



[ Contact us | Terms of Service/Privacy Policy ]