Re: [us...@httpd] Re: Enabling SSL on VirtualHosts Revisited

2009-12-18 Thread Frank Gingras
Jonathan Mast wrote: Frank, I've always used the ServerName directive, here's what my configs look like: NameVirtualHost foo.mysite.com:80 ServerName foo.mysite.com NameVirtualHost foo.mysite.com:443 ServerName foo.mysite.com SSL Stuff... My question was specifically why p

Re: [us...@httpd] Re: Enabling SSL on VirtualHosts Revisited

2009-12-18 Thread Eric Covener
On Fri, Dec 18, 2009 at 12:06 PM, Jonathan Mast wrote: > Frank, I've always used the ServerName directive, here's what my configs > look like: > NameVirtualHost foo.mysite.com:80 > >     ServerName   foo.mysite.com > > > > NameVirtualHost foo.mysite.com:443 > >     ServerName   foo.mysite.com >

Re: [us...@httpd] Re: Enabling SSL on VirtualHosts Revisited

2009-12-18 Thread Justin Pasher
Jonathan Mast wrote: OK, so I added NameVirtualHost foo.mysite.com:80 and NameVirtualHost foo.mysite.com:443 above their respective sections and it seems to work despite not being recommended as per the docs, but this was the only way to d

Re: [us...@httpd] Re: Enabling SSL on VirtualHosts Revisited

2009-12-18 Thread Jonathan Mast
Frank, I've always used the ServerName directive, here's what my configs look like: NameVirtualHost foo.mysite.com:80 ServerName foo.mysite.com NameVirtualHost foo.mysite.com:443 ServerName foo.mysite.com SSL Stuff... My question was specifically why putting the hostname as

Re: [us...@httpd] Re: Enabling SSL on VirtualHosts Revisited

2009-12-18 Thread Frank Gingras
Jonathan Mast wrote: OK, so I added NameVirtualHost foo.mysite.com:80 and NameVirtualHost foo.mysite.com:443 above their respective sections and it seems to work despite not being recommended as per the docs, but this was the only way to do it because all my domains: mysite.com, othersite.com, et

Re: [us...@httpd] Re: Enabling SSL on VirtualHosts Revisited

2009-12-18 Thread Jonathan Mast
OK, so I added NameVirtualHost foo.mysite.com:80 and NameVirtualHost foo.mysite.com:443 above their respective sections and it seems to work despite not being recommended as per the docs, but this was the only way to do it because all my domains: mysite.com, othersite.com, etc point to a single IP.

Re: [us...@httpd] Re: Enabling SSL on VirtualHosts Revisited

2009-12-18 Thread Philip Wigg
Possibly the information you need is here:- http://httpd.apache.org/docs/2.2/vhosts/name-based.html When adding a name-based Virtual Host the... "Main host goes away If you are adding virtual hosts to an existing web server, you must also create a block for the existing host. The ServerName an

[us...@httpd] Re: Enabling SSL on VirtualHosts Revisited

2009-12-18 Thread Dan Poirier
If one or more virtual host entries match the address:port for the request, but no server names in those entries match, then the first virtual host definition in the config file, not the global configuration, will control handling for that request. -