Skip to content

Commit 7035d4f

Browse files
committed
add location block to HTTP->HTTPS redirect
thanks to feedback per E-Mail
1 parent ba3fcfa commit 7035d4f

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

sites-available/matomo.conf

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@ server {
33
listen 80;
44
server_name matomo.example.com;
55
# Redirect all HTTP requests to HTTPS with a 301 Moved Permanently response.
6-
return 301 https://$host$request_uri;
6+
location / {
7+
return 301 https://$host$request_uri;
8+
}
79
}
810
server {
911
listen [::]:443 ssl http2; # remove this if you don't want Matomo to be reachable from IPv6

0 commit comments

Comments
 (0)