Advertisement
ngarafol

Untitled

Apr 12th, 2016
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.95 KB | None | 0 0
  1. <VirtualHost *:443>
  2. ServerName example.org
  3. DocumentRoot "/var/sites/example.org/htdocs"
  4.  
  5. SSLEngine On
  6. SSLCertificateFile /etc/ssl/certs/test.crt
  7. SSLCertificateKeyFile /etc/ssl/certs/test.key
  8.  
  9. <Directory />
  10. Options All
  11. AllowOverride All
  12. Require all granted
  13. </Directory>
  14.  
  15. LogLevel debug
  16. ErrorLog /var/log/httpd/example_ssl_error.log
  17. CustomLog /var/log/httpd/example_ssl_access.log combined
  18.  
  19. </VirtualHost>
  20.  
  21. <VirtualHost *:80>
  22.  
  23. ServerName example.org
  24. DocumentRoot "/var/sites/example.org/htdocs"
  25.  
  26. #Redirect permanent / https://example.org/
  27.  
  28. #RewriteEngine On
  29. #RewriteCond %{HTTPS} !=on [NC]
  30. #RewriteRule ^/?(.*) https://%{SERVER_NAME}/$1 [R,L]
  31.  
  32. <Directory /var/sites/example.org/htdocs>
  33. AllowOverride None
  34. Require all granted
  35. </Directory>
  36.  
  37. ErrorLog /var/log/httpd/example_error.log
  38. CustomLog /var/log/httpd/example_access.log combined
  39.  
  40. </VirtualHost>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement