SHARE
TWEET

Virtual Host Configuration

a guest Feb 18th, 2011 127 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <VirtualHost *:80>
  2.         ServerName server1
  3.         DocumentRoot "/var/www/server1/"
  4.  
  5.         <Directory "/var/www/server1/">
  6.                 AllowOverride none
  7.                 Options +Includes
  8.         </Directory>
  9. </VirtualHost>
  10.  
  11. <VirtualHost *:80>
  12.         ServerName server2
  13.         DocumentRoot "/var/www/server2/"
  14.  
  15.         <Directory "/var/www/server2/">
  16.                 AllowOverride none
  17.                 Options +Includes
  18.         </Directory>
  19.  
  20. </VirtualHost>
  21.  
  22. <IfModule mod_ssl.c>
  23.    
  24.     <VirtualHost *:443>
  25.             ServerName server3
  26.             DocumentRoot "/var/www/server3/"
  27.    
  28.             <Directory "/var/www/server3/">
  29.                     AllowOverride None
  30.                     Options +Includes
  31.             </Directory>
  32.    
  33.    
  34.             SSLEngine on
  35.             SSLOptions +StrictRequire
  36.    
  37.             SSLProtocol -all +TLSv1 +SSLv3
  38.             SSLCipherSuite HIGH:MEDIUM:!aNULL:+SHA1:+MD5:+HIGH:+MEDIUM
  39.    
  40.             SSLVerifyClient none
  41.    
  42.             SSLCertificateFile /etc/apache2/ssl/XXX.crt
  43.             SSLCertificateKeyFile /etc/apache2/ssl/XXX.pem
  44.             SSLCACertificateFile /etc/apache2/ssl/XXX.crt
  45.    
  46.             <IfModule mime.c>
  47.                   AddType application/x-x509-ca-cert      .crt
  48.                   AddType application/x-pkcs7-crl         .crl
  49.             </IfModule>
  50.    
  51.             </VirtualHost>
  52.    
  53. </IfModule>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top