httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bashiro"<bash...@myway.com>
Subject RE: [users@httpd] VIRTUAL HOSTS
Date Mon, 22 Jan 2007 14:59:56 GMT


Thanks guys.
When you asked the question;
What do you want to happen if someone requests
https://domain2.myhost.com/ ?

I would like it to serve the ordinary main server. And this makes logic. I only have to declare
the document root isn't it ?
Thanks a lot

Bashiro



 --- On Mon 01/22, Boyle Owen < Owen.Boyle@swx.com > wrote:
From: Boyle Owen [mailto: Owen.Boyle@swx.com]
To: users@httpd.apache.org
Date: Mon, 22 Jan 2007 11:56:04 +0100
Subject: RE: [users@httpd] VIRTUAL HOSTS

> -----Original Message-----> From: Bashiro [mailto:bashiro@myway.com] > Sent: Monday,
January 22, 2007 11:29 AM> To: users@httpd.apache.org> Subject: [users@httpd] VIRTUAL
HOSTS> > > > > Hello Folks,> > I appologise for any stupid question.>
I only want to understand apache better.> Accordding to> http://httpd.apache.org/docs/2.0/vhosts/name-based.html
,Main > host goes away:> Does this mean whenever one configure any virtual host>
regardless of wheter it's https or http, the main server> delcared in the httpd.conf has
to be removed and place in> the virtual host block ?It is not required. If you don't do
this, default requests (eg, withjust the IP address and no hostname like http://192.168.1.1/)
will beserved by the "main" config.However, it is *recommended* you put all sites in separate
VHs just fororganisation reasons (it's like putting files into directories insteadof keeping
all your files right at the top...).> > My second question is,> i have three subdomains.

domain1.myhost.com, domain2.myhost.com, and> domain3.myhost.com.> Only domain1.myhost.com
is intended to serve as ssl> and has been declared in the virtual host to use port 443.>
> Now Whenever other subdomains are accessed by https://, apache> serve the files directory
from domain1.myhost.com even though these> subdomains have not been declared to be used
as ssl.All sites have the same IP, right? SSL requests can only bedistinguished by TCP/IP
(ie IP and port) - not by the domain name. Seehttp://httpd.apache.org/docs/2.2/ssl/ssl_faq.html#vhosts2
> How do I configure apache to serve only the files that are > intended for> use
with ss (in this case domain1.myhost.com).What do you want to happen if someone requestshttps://domain2.myhost.com/
?> > Has this something to do with the main server not bein moved > to the virtual
host block ?No.Rgds,Owen BoyleDisclaimer: Any disclaimer attached to this message may be ignored.
PS- Pls stop adding your personal address to the Reply-to 
field - go viathe list.... > > > Thanks> bashiro> > Bashiro> > _______________________________________________>
No banners. No pop-ups. No kidding.> Make My Way  your home on the Web - http://www.myway.com>
> > > ---------------------------------------------------------------------> The
official User-To-User support forum of the Apache HTTP > Server Project.> See <URL:http://httpd.apache.org/userslist.html>
for more info.> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org>    "   from
the digest: users-digest-unsubscribe@httpd.apache.org> For additional commands, e-mail:
users-help@httpd.apache.org>  This message is for the named person's use only. It may contain
confidential, proprietary or legally privileged information. No confidentiality or privilege
is waived or lost by any mistransmission. If you receive this message in error, please notify
the sender urgently and then immediately delete the message and any copies of it from your
system. Please also immediately
  
destroy any hardcopies of the message. You must not, directly or indirectly, use, disclose,
distribute, print, or copy any part of this message if you are not the intended recipient.
The sender's company reserves the right to monitor all e-mail communications through their
networks. Any views expressed in this message are those of the individual sender, except where
the message states otherwise and the sender is authorised to state them to be the views of
the sender's company.---------------------------------------------------------------------The
official User-To-User support forum of the Apache HTTP Server Project.See <URL:http://httpd.apache.org/userslist.html>
for more info.To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org   "   from the digest:
users-digest-unsubscribe@httpd.apache.orgFor additional commands, e-mail: users-help@httpd.apache.org

_______________________________________________
No banners. No pop-ups. No kidding.
Make My Way  your home on the Web - http://www.myway.com



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message