Virtual Hosts + SSL (Strange setup)

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 ...


Go Back   Usenet Forums > Web Server and Related Forums > Linux Web Servers

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 06-26-2003
C. Norris
 
Posts: n/a
Default Virtual Hosts + SSL (Strange setup)

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!"
  #2 (permalink)  
Old 06-26-2003
Joachim Ring
 
Posts: n/a
Default Re: Virtual Hosts + SSL (Strange setup)

> 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
  #3 (permalink)  
Old 08-05-2003
Rusty Wright
 
Posts: n/a
Default Re: Virtual Hosts + SSL (Strange setup)

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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 09:26 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0