Advertisement
Guest User

Untitled

a guest
Aug 10th, 2017
518
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. <VirtualHost *:80>
  2. ServerAdmin address@mail.com
  3. ServerName MYSITE.com
  4. ServerAlias www.MYSITE.com
  5. #DocumentRoot /var/www/html
  6. DocumentRoot /var/www/MYSITE.com/public_html
  7.  
  8. ErrorLog ${APACHE_LOG_DIR}/error.log
  9. CustomLog ${APACHE_LOG_DIR}/access.log combined
  10.  
  11. RewriteEngine on
  12. RewriteCond %{SERVER_NAME} =MYSITE.com [OR]
  13. RewriteCond %{SERVER_NAME} =www.MYSITE.com
  14. RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
  15. </VirtualHost>
  16.  
  17. # vim: syntax=apache ts=4 sw=4 sts=4 sr noet
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement