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 ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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 |