httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Boyle Owen" <Owen.Bo...@swx.com>
Subject RE: [users@httpd] Problem with SSL certificates and virtual hosts
Date Fri, 30 Apr 2004 14:19:40 GMT
> -----Original Message-----
> From: Greg Miell [mailto:greg_miell@dsl.pipex.com]
> 
> I am having problems with my ssl certificates and my virtual 
> hosts with
> apache 2...
> 
> The config below allows connections to *.domain.net using the 
> certificate
> defined in secure.domain.net (it uses this certificate for 
> all connections
> to https://www.domain.net, https://secure.domain.net (as it should),
> https://admin.domain.net and anything else I can put in front of
> .domain.net) even though I have only defined it for one vhost.
> Also I cannot stop connections to any of the other virtual 
> hosts on port
> 443... I'm confused, am I setting up something wrong?

I'm afraid so... You cannot have name-based VHs with SSL. It's
impossible (see http://www.modssl.org/docs/2.8/ssl_faq.html#ToC47). Just
to be clear - this is not an apache limitation; it is a fundamental
feature of HTTP.

Rgds,
Owen Boyle
Disclaimer: Any disclaimer attached to this message may be ignored. 

> 
> .
> .
> .
> Listen 80
> Listen 443
> .
> .
> .
> UseCanonicalName Off
> NameVirtualHost *:80
> NameVirtualHost *:443
> 
> <VirtualHost *:80>
>     ServerName hosted.domain.net
>     VirtualDocumentRoot "C:/inetpub/Users/%0"
>     ScriptAlias /cgi-bin/ "C:/inetpub/Scripts/Users/"
> </VirtualHost>
> 
> <VirtualHost *:80>
>     ServerName www.domain.net
>     ServerAlias www.domain.net serverfile localhost #domain.net
>     DocumentRoot "C:/inetpub/wwwroot"
> </VirtualHost>
> 
> <VirtualHost *:443>
>     ServerName secure.domain.net
>     ServerAlias secure.domain.net
>     SSLEngine On
>     SSLCertificateFile C:/inetpub/SSLCert/my-server.cert
>     SSLCertificateKeyFile C:/inetpub/SSLCert/my-server.key
>     DocumentRoot "C:/inetpub/wwwsecure"
>     ScriptAlias /cgi-bin/ "C:/inetpub/ScriptsSecure/"
> </VirtualHost>
> 
> <VirtualHost *:443>
>     ServerName www.domain.net
>     ServerAlias www.domain.net
>     RewriteEngine on
>     RedirectMatch (.*) http://www.domain.net$1
> </VirtualHost>
> 
> #<VirtualHost *:80>
> #    ServerName admin.domain.net
> #    ServerAlias admin.domain.net
> #    DocumentRoot "C:/inetpub/wwwadmin"
> #    ScriptAlias /cgi-bin/ "C:/inetpub/ScriptswwwAdmin/"
> #</VirtualHost>
> 
> <VirtualHost *:443>
>     ServerName admin.domain.net
>     ServerAlias admin.domain.net
>     SSLEngine On
>     SSLCertificateFile C:/inetpub/SSLCert/admin.cert
>     SSLCertificateKeyFile C:/inetpub/SSLCert/admin.key
>     DocumentRoot "C:/inetpub/wwwadmin"
>     ScriptAlias /cgi-bin/ "C:/inetpub/ScriptswwwAdmin/"
> </VirtualHost>
> 
> <VirtualHost *:80>
>     AllowCONNECT 80
>     ServerName router.domain.net
>     ServerAlias router.domain.net
>     ProxyPass / http://169.254.207.29/
>     ProxyPassReverse / http://169.254.207.29/
>     #SetOutputFilter proxy-html
>     #RequestHeader unset Accept-Encoding
> </VirtualHost>
> 
> <VirtualHost *:80>
>     ServerName webmail.domain.net
>     ServerAlias webmail.domain.net
>     DocumentRoot "C:/inetpub/wwwWebmail"
> </VirtualHost>
> 
> <VirtualHost *:80>
>     AllowCONNECT 80
>     ServerName bbs.domain.net
>     ServerAlias bbs.domain.net
>     ProxyPass / http://bbs.domain.net:8080/
>     ProxyPassReverse / http://bbs.domain.net:8080/
>     #SetOutputFilter proxy-html
>     #RequestHeader unset Accept-Encoding
> </VirtualHost>
> 
> <VirtualHost *:80>
>     ServerName www.thedarkestplace.dnsalias.net
>     ServerAlias thedarkestplace.dnsalias.net
> www.thedarkestplace.dnsalias.net
>     DocumentRoot "C:/inetpub/users/eleanor bronway"
> </VirtualHost>
> 
> <VirtualHost *:443>
>     DocumentRoot "C:/inetpub/wwwRoot"
> </VirtualHost>
> 
> 
> Greg Miell
> 
> 
> ---------------------------------------------------------------------
> 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
> 
> 
Diese E-mail ist eine private und persönliche Kommunikation. Sie hat
keinen Bezug zur Börsen- bzw. Geschäftstätigkeit der SWX Gruppe. This
e-mail is of a private and personal nature. It is not related to the
exchange or business activities of the SWX Group. Le présent e-mail est
un message privé et personnel, sans rapport avec l'activité boursière du
Groupe SWX.

This message is for the named person's use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or lost by any mistransmission.
If you receive this message in error, please notify the sender urgently
and then immediately delete the message and any copies of it from your
system. Please also immediately destroy any hardcopies of the message.
You must not, directly or indirectly, use, disclose, distribute, print,
or copy any part of this message if you are not the intended recipient.
The sender's company reserves the right to monitor all e-mail
communications through their networks. Any views expressed in this
message are those of the individual sender, except where the message
states otherwise and the sender is authorised to state them to be the
views of the sender's company. 



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