Advertisement
twokay

Apache2 Webserver VHost config for port 80 direct

Jan 18th, 2021
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. <VirtualHost *:80>
  2. ServerName example.com
  3. ServerAdmin git@example.com
  4. Protocols h2c http/1.1
  5. LogLevel notice
  6. ErrorLog /var/www/example.com/logs/apache2.error.log
  7. CustomLog /var/www/example.com/logs/apache2.access.log combined
  8. RedirectMatch ^(.*)$ "https://example.com$1"
  9. </VirtualHost>
  10.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement