You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Connie Jones <co...@gordmans.com> on 2002/07/23 21:28:00 UTC
Simple Virtual Host Question
I set up a named based virtual host but now when I put in a request for my
"main" server name in the URL, I get the virtual host (i.e. request to
httpd://mainserver.domain is giving me the virtualhost.domain site instead).
I am sure this must be something simple and would appreciate any help as I
haven't been able to find any answers anywhere else yet. Thank you.
Connie
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
RE: Simple Virtual Host Question
Posted by Pritpal Dhaliwal <pd...@tycoint.com>.
when you were making
VirtualHost directive, did you make one for your
"main" server??
I like to make everything explicit, so this is what I do, so there is no mistake
Listen 80
###########################################
# Domain: default
###########################################
<VirtualHost *>
ServerName default
ServerAdmin .....
DocumentRoot .....
.........
</VirtualHost>
###########################################
# Domain: pritpal
###########################################
<VirtualHost *>
ServerName pritpal
ServerAdmin ....
DocumentRoot ......
.........
</VirtualHost>
This way, there is no mistake abut what the main server is and what is not. Anytime apache doesn't find a virtual host for whatevername.domain, it will server from default VirtualHost.
Hope it helps.
Pritpal Dhaliwal
www.desiest.com
-----Original Message-----
From: Connie Jones [mailto:connie.jones@gordmans.com]
Sent: Tuesday, July 23, 2002 12:28 PM
To: users@httpd.apache.org
Subject: Simple Virtual Host Question
I set up a named based virtual host but now when I put in a request for my
"main" server name in the URL, I get the virtual host (i.e. request to
httpd://mainserver.domain is giving me the virtualhost.domain site instead).
I am sure this must be something simple and would appreciate any help as I
haven't been able to find any answers anywhere else yet. Thank you.
Connie
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org