13.07.2015 Views

Linux System Administration Recipes A Problem-Solution Approach

Linux System Administration Recipes A Problem-Solution Approach

Linux System Administration Recipes A Problem-Solution Approach

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

CHAPTER 7 ■ WORKING WITH APACHE■ Note Any configuration outside the VirtualHosts sections (such as setting the ServerAdmin) will apply to both(and any other) VirtualHosts.Add the following section to your config file:# =================================================# SSL/TLS settings# =================================================NameVirtualHost *:443DocumentRoot "/local/www/ssl_html"SSLEngine onSSLOptions +StrictRequireSSLRequireSSLSSLProtocol -all +TLSv1 +SSLv3SSLCipherSuite HIGH:MEDIUM:!aNULL:+SHA1:+MD5:+HIGH:+MEDIUMSSLRandomSeed startup file:/dev/urandom 1024SSLRandomSeed connect file:/dev/urandom 1024SSLSessionCache shm:/usr/local/apache2/logs/ssl_cache_shmSSLSessionCacheTimeout 600SSLCertificateFile /etc/apache2/ssl/server.crtSSLCertificateKeyFile /etc/apache2/ssl/server.keySSLVerifyClient noneSSLProxyEngine offAddType application/x-x509-ca-certAddType application/x-pkcs7-crl.crt.crlSetEnvIf User-Agent ".*MSIE.*" \nokeepalive ssl-unclean-shutdown \downgrade-1.0 force-response-1.0SSLEngine makes the server actually use SSL. DocumentRoot sets the root directory for this virtualhost, so you can entirely separate secure content from regular content. You can then set SSLRequireSSL165Download at WoweBook.Com

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!