toby/environment/prod/nginx.conf
2022-03-15 11:41:27 +01:00

11 lines
207 B
Nginx Configuration File

if ($http_x_forwarded_proto != 'https') {
rewrite ^ https://$host$request_uri? permanent;
}
location / {
try_files $uri @rewriteapp;
}
location @rewriteapp {
rewrite ^(.*)$ /index.php$1 last;
}