Advertisement
Guest User

Apache Server Config

a guest
Mar 11th, 2020
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.68 KB | None | 0 0
  1. <VirtualHost *:80>
  2. ServerName cloud.example.de
  3. ServerAdmin example@protonmail.com
  4. DocumentRoot /data/www/cloud.example.de
  5. <Directory "/data/www/cloud.example.de">
  6. Options FollowSymLinks
  7. AllowOverride None
  8. Order allow,deny
  9. Allow from all
  10. Require all granted
  11. </Directory>
  12.  
  13. <IfModule mod_headers.c>
  14. Header always set Strict-Transport-Security "max-age=15552000; includeSubDomains"
  15. </IfModule>
  16.  
  17. RewriteEngine on
  18. # RewriteCond %{SERVER_NAME} =cloud.example.de
  19. RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
  20. </VirtualHost>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement