Skip to content

Commit

Permalink
[BUGFIX] Boucle infinie Nginx sur les 404 pix.org
Browse files Browse the repository at this point in the history
  • Loading branch information
pix-service-auto-merge authored Dec 14, 2021
2 parents 9b503cc + b21d4be commit 520cc93
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions servers.conf.erb
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@ server {
}

if ($host ~ \.org) {
rewrite ^/(?!fr)(?!en-gb)(?!_assets)(?!_nuxt)(?!documents)(?!images)(?!scripts)(?!apple-touch-icon)(?!favicon)(?!robots\.txt) $scheme://$host/fr$request_uri permanent;
rewrite ^/(?!404.html)(?!fr)(?!en-gb)(?!_assets)(?!_nuxt)(?!documents)(?!images)(?!scripts)(?!apple-touch-icon)(?!favicon)(?!robots\.txt) $scheme://$host/fr$request_uri permanent;
}

if ($http_x_forwarded_host ~ \.org) {
rewrite ^/(?!fr)(?!en-gb)(?!_assets)(?!_nuxt)(?!documents)(?!images)(?!scripts)(?!apple-touch-icon)(?!favicon)(?!robots\.txt) $http_x_forwarded_proto://$http_x_forwarded_host/fr$request_uri permanent;
rewrite ^/(?!404.html)(?!fr)(?!en-gb)(?!_assets)(?!_nuxt)(?!documents)(?!images)(?!scripts)(?!apple-touch-icon)(?!favicon)(?!robots\.txt) $http_x_forwarded_proto://$http_x_forwarded_host/fr$request_uri permanent;
}
}

0 comments on commit 520cc93

Please sign in to comment.