Guest User

Untitled

a guest
Oct 18th, 2017
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. <IfModule mod_alias.c>
  2. Alias /.well-known/acme-challenge /var/www/letsencrypt/challenges/
  3.  
  4. <Directory "/var/www/letsencrypt/challenges/">
  5. Options -Indexes
  6. </Directory>
  7. </IfModule>
  8.  
  9. <IfModule mod_rewrite.c>
  10. #Redirect before other rewrite rules
  11. RewriteCond %{REQUEST_URI} /.well-known/acme-challenge/
  12. RewriteRule (.*) /.well-known/acme-challenge/$1 [L,QSA]
  13. </IfModule>
  14.  
  15. <IfModule mod_alias.c>
  16. <VirtualHost f.haeder.net:80>
  17. ServerName f.haeder.net
  18. ServerAlias f.haeder.net
  19. RedirectMatch permanent ^(?!/.well-known/acme-challenge/).* https://f.haeder.net/
  20. </VirtualHost>
  21. </IfModule>
Add Comment
Please, Sign In to add comment