httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject [users@httpd] http and https together in a virtualhost
Date Tue, 03 Jun 2003 16:19:14 GMT
I have a configuration file httpd.conf with multiple virtualhosts

Each of them works with a different name (Name-based VirtualHost)

I added SSL and evrything work well, but I have to specify twice the
directive per each VirtualHost

SSLRandomSeed startup builtin
SSLSessionCache none
Listen 443
NameVirtualHost *:80
NameVirtualHost *:443
<VirtualHost *:80>
    DocumentRoot "/usr/local/apache2/htdocs"
<VirtualHost *:443>
    DocumentRoot "/usr/local/apache2/htdocs"
    SSLEngine On
    SSLCertificateFile conf/ssl/my-server.cert
    SSLCertificateKeyFile conf/ssl/my-server.key

I tried to specify <VirtualHost *:*>, and it seems to work, but my problem
is SSLEngine, than cannot be on and off in the same virtualhost !

which is the right way ? (everything work now, but if I modify a virtual
host I should remember modify the corresponding one....

thanks in advance


 This e-mail may contain confidential and/or privileged information. If you
are not the intended recipient (or have received this e-mail in error)
please notify the sender immediately and destroy this e-mail. Any
unauthorized copying, disclosure or distribution of the material in this
e-mail is strictly forbidden.

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message