Skip to content

Commit ee32a0d

Browse files
fix(nginx): remove subdomain server block causing redirect loop
The python.anyplot.ai server block was placed before the main server block. Since server_name _ is not a true catch-all, nginx used the subdomain block as the default server, causing all requests to redirect to /python/ in a loop. Remove the block entirely — DNS for the subdomain isn't configured yet. Add default_server to the main block to prevent this class of bug. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent fec16a7 commit ee32a0d

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

app/nginx.conf

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,8 @@ map $http_user_agent $is_bot {
3030
~*showyoubot 1;
3131
}
3232

33-
# Marketing subdomain: python.anyplot.ai → 301 to /python/
3433
server {
35-
listen 8080;
36-
server_name python.anyplot.ai;
37-
return 301 https://anyplot.ai/python$request_uri;
38-
}
39-
40-
server {
41-
listen 8080;
34+
listen 8080 default_server;
4235
server_name _;
4336

4437
# Use Google DNS for dynamic upstream resolution (prevents startup crash when domain not yet in DNS)

0 commit comments

Comments
 (0)