I have a server up and running with Apache  2.2.14-2. Right now in
apache my Document Root is set as /srv/http and this takes you to
www.mydomain.tld. This is perfect on port 80 but I have a subfolder in
my Document Root called 'webmail/'. When I access the webmail
subfolder, I want to do this over port 443 (SSL). My question is how
do I keep my main site as follows:

www.mydomain.tld (http)
www.mydomain.tld/webmail (https)

Also if someone goes to www.mydomain.tld/webmail on port 80, it
redirects to port 443.

Below is what I have in my httpd.conf file but it is not correct. Can
someone please explain what I need to change or help me understand?

#Listen 443
#AddType application/x-x509-ca-cert .crt
#AddType application/x-pkcs7-crl    .crl
#SSLPassPhraseDialog  builtin
#SSLSessionCache        "shmcb:/var/run/httpd/ssl_scache(512000)"
#SSLSessionCacheTimeout  300
#SSLMutex  "file:/var/run/httpd/ssl_mutex"

#<VirtualHost _default_:443>

#DocumentRoot "webmail/"
#ServerName www.mydomain.tld:443
#ServerAdmin ad...@mydomain.tld
#ErrorLog "/var/log/httpd/error_log"
#TransferLog "/var/log/httpd/access_log"
#SSLEngine on
#SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL
#SSLCertificateFile "/path/to/my/ssl.crt"
#SSLCertificateKeyFile "/path/to/my/ssl.key"

#<FilesMatch "\.(cgi|shtml|phtml|php)$">
#    SSLOptions +StdEnvVars
#</FilesMatch>
#<Directory "/srv/http/cgi-bin">
#    SSLOptions +StdEnvVars
#</Directory>

#BrowserMatch ".*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>

---------------------------------------------------------------------
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-unsubscr...@httpd.apache.org
   "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org

Reply via email to