SSL and Virtual hosts?

This is a discussion on SSL and Virtual hosts? within the Modssl Users forums, part of the Web Server and Related Forums category; Hi people, So I got ssl started, and now I'm trying to sort out my virtual hosts but I ...


Go Back   Usenet Forums > Web Server and Related Forums > Modssl Users

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 08-02-2007
Glyn Astill
 
Posts: n/a
Default SSL and Virtual hosts?

Hi people,

So I got ssl started, and now I'm trying to sort out my virtual hosts
but I can't seem to get them to work.

What I want to do is get https://mail.mydomain.net to take me to my
mail directory and https://www.mydomain.net to take me to my htdocs,
just like I can on http.

For example I'm putting the VirtualHosts below between the IfDefine
SSL tags in ssl.conf. Any pointers would be ace. Thanks.


NameVirtualHost *:443

<VirtualHost *:443>
ServerName mail.mydomain.net
DocumentRoot /usr/pkg/share/mymail

SSLEngine on
SSLCipherSuite
ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSL v2:+EXP:+eNULL
SSLCertificateFile /usr/pkg/etc/httpd/ssl.crt/server.crt
SSLCertificateKeyFile /usr/pkg/etc/httpd/ssl.key/server.pem
<FilesMatch "\.(cgi|shtml|phtml|php3|PHP?)$">
SSLOptions +StdEnvVars
</FilesMatch>
<Directory "/usr/pkg/libexec/cgi-bin">
SSLOptions +StdEnvVars
</Directory>

SetEnvIf User-Agent ".*MSIE.*" \
nokeepalive ssl-unclean-shutdown \
downgrade-1.0 force-response-1.0
CustomLog /var/log/httpd/ssl_request_log \
"%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"
</VirtualHost>
<VirtualHost *:443>
ServerName mydomain.net
ServerAlias *.mydomain.net
DocumentRoot /usr/pkg/share/httpd/htdocs/

SSLEngine on
SSLCipherSuite
ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSL v2:+EXP:+eNULL
SSLCertificateFile /usr/pkg/etc/httpd/ssl.crt/server.crt
SSLCertificateKeyFile /usr/pkg/etc/httpd/ssl.key/server.pem
<FilesMatch "\.(cgi|shtml|phtml|php3|PHP?)$">
SSLOptions +StdEnvVars
</FilesMatch>
<Directory "/usr/pkg/libexec/cgi-bin">
SSLOptions +StdEnvVars
</Directory>

SetEnvIf User-Agent ".*MSIE.*" \
nokeepalive ssl-unclean-shutdown \
downgrade-1.0 force-response-1.0
CustomLog /var/log/httpd/ssl_request_log \
"%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"
</VirtualHost>



__________________________________________________ _________
Yahoo! Answers - Got a question? Someone out there knows the answer. Try =
it
now.
http://uk.answers.yahoo.com/=20
__________________________________________________ ____________________
Apache Interface to OpenSSL (mod_ssl) www.modssl.org
User Support Mailing List modssl-users@modssl.org
Automated List Manager majordomo@modssl.org
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

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

BB 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 05:55 AM.


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