View Single Post

  #1 (permalink)  
Old 09-01-2003
Asaf B.
 
Posts: n/a
Default Virtual hosts and SSL

Hello all!

Environment: Linux RedHat 9.0 - httpd-2.0-40

I have an httpd.conf with several vhosts, each one refers to a
different port and has a different DoucumentRoot.

I want to enable SSL, therefore I need to define ssl.conf.

How do I define ssl.conf in a way that each port in the httpd.conf
will refer to different SSL port and both will have the same
DocumentRoot?

I know vhosts can be defined in the ssl.conf too, but I didn't
understood how I link a port in the httpd.conf to a port in the
ssl.conf?

currently there is only one ssl port (the default 443) and therefore
no matter what port I work on, when I send an https request, I will
always go through it.

For example, if I have the following vhost:
##################
Listen 1111
NameVirtualHost my_comp:1111

<VirtualHost my_comp:1111>
DocumentRoot /var/www/location1111
</VirtualHost>
##################

I would like that when I send an https request, to get to the same
document root above and not to the default DocumentRoot defined in the
ssl.con for port 443 (I want to leave that for ports other than 1111).

What do I need to do in the ssl.conf?
Thanks