Advertisement
Guest User

Apache Server Config

a guest
Mar 11th, 2020
124
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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
RAW Paste Data Copied
Advertisement