mirror of https://gitlab.com/tildes/tildes.git
Browse Source
This redirect being first in the file meant that if someone tried to access a dev version through any method except using "localhost" (such as via the IP address), no server block would be matched, which causes nginx to use the first one. That resulted in a 301 redirect to tildes.net, which definitely shouldn't happen for a dev version. This change both moves the redirect to the bottom, as well as only adding it if it's the "prod" environment, since it's not needed in the dev environment at all.merge-requests/68/head
Deimos
6 years ago
1 changed files with 12 additions and 10 deletions
Loading…
Reference in new issue