ordering issue on re-write rules

This commit is contained in:
Kevin Fenzi 2018-11-11 21:46:41 +00:00
parent 13d12ecb32
commit bacf3cbafd

View file

@ -22,9 +22,9 @@ Listen 443
# We can't do this until virt-install can handle https # We can't do this until virt-install can handle https
RewriteEngine on RewriteEngine on
RewriteRule ^/\.well-known/(.*) "http://fedoraproject.org/\.well-known/$1" [L,R=301,NE]
RewriteCond %{SERVER_PORT} !^443$ RewriteCond %{SERVER_PORT} !^443$
RewriteRule ^/(.*) https://%{HTTP_HOST}/$1 [L,R] RewriteRule ^/(.*) https://%{HTTP_HOST}/$1 [L,R]
RewriteRule ^/\.well-known/(.*) "http://fedoraproject.org/\.well-known/$1" [L,R=301,NE]
# robots location # robots location
Alias /robots.txt /srv/web/robots.txt.infinote Alias /robots.txt /srv/web/robots.txt.infinote