Fix robots.txt for live
Prior to this commit, the node's robots.txt was written, not the owner's
@@ -91,6 +91,12 @@ http {
proxy_set_header Connection "upgrade";
}
+ location = /robots.txt {
+ add_header Content-Type text/plain;
+ allow all;
+ return 200 "User-agent: *\nSitemap: https://matchat.org/owner/sitemap.xml";
+ }
+
location / {
# here we do a redirect to /owner uri prefix since we want the owner application to be the default
# application on this server. We didn't figure out how to use proxy_cookie_path exactly to handle
@@ -159,12 +165,6 @@ http {
proxy_set_header Host $host;
}
- location = /robots.txt {
- add_header Content-Type text/plain;
- allow all;
- return 200 "User-agent: *\nSitemap: https://matchat.org/owner/sitemap.xml";
- }
-
location / {
return 301 https://$server_name/won$request_uri;
}
