httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Connie Jones <connie.jo...@gordmans.com>
Subject RE: Simple Virtual Host Question
Date Tue, 23 Jul 2002 20:48:00 GMT
Thank you!!  I will try this.
	Connie

 -----Original Message-----
From: Pritpal Dhaliwal [mailto:pdhaliwal@tycoint.com]
Sent: Tuesday, July 23, 2002 3:41 PM
To: users@httpd.apache.org
Subject: RE: Simple Virtual Host Question


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




---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message