httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From andrea.la...@frameweb.it
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

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

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

andrea






---
 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:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message