Advertisement
Guest User

Untitled

a guest
Sep 21st, 2017
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. <Directory "/var/www">
  2. AllowOverride None
  3. # Allow open access:
  4. Require all granted
  5. </Directory>
  6.  
  7. <Directory "/home">
  8. AllowOverride None
  9. # Allow open access:
  10. Require all granted
  11. </Directory>
  12.  
  13. <VirtualHost *:80>
  14. ServerName www.mywebsite.com
  15. ServerAlias mywebsite.com
  16. DocumentRoot /home/mywebsite
  17. </VirtualHost>
  18.  
  19. <VirtualHost *:443>
  20. ServerName www.mywebsite.com
  21. ServerAlias mywebsite.com
  22. DocumentRoot /home/mywebsite
  23. SSLEngine on
  24. SSLCertificateFile /etc/httpd/ssl/mywebsite.pem
  25. SSLCertificateKeyFile /etc/httpd/ssl/mywebsite.key
  26. </VirtualHost>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement