This is a discussion on Virtual Hosts + SSL (Strange setup) within the Linux Web Servers forums, part of the Web Server and Related Forums category; O great masters of Apache: I currently have an apache setup with 4 name based virtual hosts. I need to ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
O great masters of Apache:
I currently have an apache setup with 4 name based virtual hosts. I need to add a single ssl host, which obviously could be distinguished by the server based on its being on port 443 instead of 80. My question is thus: is it possible to configure apache to handle this, perhaps defining an ip-based virtual host? If it matters, the server is running on an OpenBSD3.3 box (x86, though there is a redundant Sparc). I have no experience with ip based vhosts; any ideas/methods would be greatly appreciated. Cain Norris ------------------------------- "But wait! That means that the number field is a degenerate torus!" |
|
|||
|
> I currently have an apache setup with 4 name based virtual hosts. I
> need to add a single ssl host, which obviously could be distinguished > by the server based on its being on port 443 instead of 80. My > question is thus: is it possible to configure apache to handle this, > perhaps defining an ip-based virtual host? If it matters, the server > is running on an OpenBSD3.3 box (x86, though there is a redundant > Sparc). I have no experience with ip based vhosts; any ideas/methods > would be greatly appreciated. NameVirtualHost ip:80 <VirtualHost ip:80> ServerName x .... </VirtualHost> <VirtualHost ip:80> ServerName y .... </VirtualHost> <VirtualHost ip:80> ServerName z .... </VirtualHost> <VirtualHost ip:443> ServerName x .... </VirtualHost> or so... joachim |
|
|||
|
Is there any way to avoid having to add :80 to all of the ip addresses
when I add an ssl virtual host? It seems to me that there ought to be a way to say "any ip address that doesn't have :<port> appended to it is using port 80." Thanks jring@web.de (Joachim Ring) writes: > > I currently have an apache setup with 4 name based virtual hosts. I > > need to add a single ssl host, which obviously could be distinguished > > by the server based on its being on port 443 instead of 80. My > > question is thus: is it possible to configure apache to handle this, > > perhaps defining an ip-based virtual host? If it matters, the server > > is running on an OpenBSD3.3 box (x86, though there is a redundant > > Sparc). I have no experience with ip based vhosts; any ideas/methods > > would be greatly appreciated. > > NameVirtualHost ip:80 > <VirtualHost ip:80> > ServerName x > ... > </VirtualHost> > <VirtualHost ip:80> > ServerName y > ... > </VirtualHost> > <VirtualHost ip:80> > ServerName z > ... > </VirtualHost> > > <VirtualHost ip:443> > ServerName x > ... > </VirtualHost> > > or so... > > joachim |
| Thread Tools | |
| Display Modes | |
|
|