Advertisement
Guest User

Untitled

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