############################################################# # example config for SSL and Non-SSL hosts in the same config # main server is an SSL one... # ServerRoot /usr/local/apache ServerName t1-59.ws.afnog.org ServerType standalone ServerAdmin root@t1-59.ws.afnog.org PidFile /usr/local/apache/logs/httpd.pid User nobody Group nobody Port 443 Listen 443 Listen 80 SSLVerifyClient 0 SSLVerifyDepth 10 SSLCertificateKeyFile /usr/local/ssl/certs/new.cert.key SSLCertificateFile /usr/local/ssl/certs/new.cert.cert ############################################################# # Note: The following directives are only required if session # cacheing is enabled (the default from 1.17). To disable # cacheing, make sure the following is set in apache_ssl.c # #define CACHE_SESSIONS FALSE SSLCacheServerPath /usr/local/apache/bin/gcache #/www/bin/gcache SSLCacheServerPort /usr/local/apache/cache/file #/www/cache/ssl.fictional.co.cache.socket SSLSessionCacheTimeout 300 # end conditional section DocumentRoot /usr/local/apache/htdocs TransferLog /usr/local/apache/logs/access.log #/www/hosts/ssl.fictional.co/logs/access.log ErrorLog /usr/local/apache/logs/error.log #/www/hosts/ssl.fictional.co/logs/error.log PidFile /usr/local/apache/logs/httpsd.pid #/www/logs/httpsd.pid # and a non-SSL one... SSLDisable Port 80 DocumentRoot /usr/local/apache/htdocs #/www/hosts/www.fictional.co/docs TransferLog /usr/local/apache/logs/access.nossl.log #/www/hosts/www.fictional.co/logs/access.log ErrorLog /usr/local/apache/logs/error.nossl.log #/www/hosts/www.fictional.co/logs/error.log # and another SSL one... (this one does client-cert # authentication) # #Port 443 #SSLVerifyClient 2 #SSLVerifyDepth 10 #SSLCertificateKeyFile /www/certs/another-ssl.fictional.co.key #SSLCertificateFile /www/certs/another-ssl.fictional.co.cert #SSLCACertificateFile /www/certs/another-CA.cert #DocumentRoot /www/hosts/another-ssl.fictional.co/docs #TransferLog /www/hosts/another-ssl.fictional.co/logs/access.log #SSLLogFile /www/hosts/another-ssl.fictional.co/logs/ssl.log #ErrorLog /www/hosts/another-ssl.fictional.co/logs/error.log #