Advertisement
Guest User

Untitled

a guest
Jul 30th, 2015
265
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. <VirtualHost *:80>
  2. ServerName DOMAIN.com
  3. Redirect permanent / https://DOMAIN.com/
  4. </VirtualHost>
  5. <VirtualHost *:443>
  6. ServerAdmin info@DOMAIN.com
  7. DocumentRoot /var/www/html
  8. ServerName DOMAIN.com
  9.  
  10. SSLEngine on
  11. SSLCertificateFile /etc/apache2/ssl/DOMAIN.com.crt
  12. SSLCertificateKeyFile /etc/apache2/ssl/DOMAIN.com.key
  13. SSLCACertificateFile /etc/apache2/ssl/intermediate.crt
  14.  
  15. <Directory /var/www/html/>
  16. Options Indexes FollowSymLinks
  17. AllowOverride All
  18. Require all granted
  19. </Directory>
  20.  
  21. ErrorLog ${APACHE_LOG_DIR}/error.log
  22. CustomLog ${APACHE_LOG_DIR}/access.log combined
  23. </VirtualHost>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement