Advertisement
Guest User

vHost nonssl

a guest
Jul 10th, 2017
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. <VirtualHost *:80>
  2.  
  3. ServerAdmin webmaster@localhost
  4. DocumentRoot /var/www/html
  5.  
  6. ErrorLog ${APACHE_LOG_DIR}/error.log
  7. CustomLog ${APACHE_LOG_DIR}/access.log combined
  8.  
  9.  
  10. RewriteEngine on
  11. RewriteCond %{HTTPS} off
  12. RewriteRule (.*) https://%{SERVER_NAME}/$1 [R,L]
  13.  
  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