Hi! I need help with my configuration file. What I want to do is the following. First I have a duplicate virtaul host for each site. One to handle port 80 and the other to handle port 443. So I want to use just one virtual host for each site to handle both SSL and none SSL connections. I tried the _default virtual host. It failed to work. Next I want to have it setup with mod rewrite so <href="credit.html:SSL"> has the server switch to a SSL connect. This way I don't have to have clients type https: just to get to a handful of html pages. The web pages can do it for them. Here is what I have so far. <VirtualHost 208.247.106.164> DocumentRoot /usr/local/apache/share/htdocs/bills ServerName www.buffalobills.com TransferLog var/log/access_log.www.buffalobills.com AddType application/x-httpd-php3 .html </VirtualHost> <VirtualHost 208.247.106.164:443> DocumentRoot /usr/local/apache/share/htdocs/bills ServerName www.buffalobills.com TransferLog var/log/access_log.www.buffalobills.com RewriteEngine on RewriteRule ^/(.*):SSL$ https://www.buffalobills.com/$1 [R,L] RewriteRule ^/(.*):NOSSL$ http://www.buffalobills.com/$1 [R,L] SSLEngine on SSLCertificateFile /usr/local/apache/conf/ssl.crt/www.buffalobills.com.crt SSLCertificateKeyFile /usr/local/apache/conf/ssl.key/www.buffalobills.com.key #SSLCACertificatePath /usr/local/apache/conf/ssl.crt #SSLCACertificateFile /usr/local/apache/conf/ssl.crt/ca-bundle.crt </VirtualHost> <VirtualHost 208.247.106.168> DocumentRoot /usr/local/apache/share/htdocs/gambino ServerName www.hi-mom.com TransferLog var/log/access_log.www.hi-mom.com #RewriteEngine on #RewriteRule ^/(.*):SSL$ https://%{SERVER_NAME}/$1 [R,L] SSLEngine on SSLCertificateFile /usr/local/apache/conf/ssl.crt/www.hi-mom.com.crt SSLCertificateKeyFile /usr/local/apache/conf/ssl.key/www.hi-mom.com.key #SSLCACertificatePath /usr/local/apache/conf/ssl.crt #SSLCACertificateFile /usr/local/apache/conf/ssl.crt/ca-bundle.crt </VirtualHost> Thank you for your time. James Simmons System Admin EdgeNet Inc Linux Kernel Developer [EMAIL PROTECTED] http://www.edgeglobal.com/~jsimmons ______________________________________________________________________ Apache Interface to OpenSSL (mod_ssl) www.engelschall.com/sw/mod_ssl/ Official Support Mailing List [EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED]
