Procházet zdrojové kódy

Serve robots.txt correctly in sandbox env.

I'm sick of getting the error emails.
master
David Winterbottom před 13 roky
rodič
revize
8ad8817caa

+ 3
- 0
sandbox/deploy/nginx/qa.conf Zobrazit soubor

14
 	location /media/ {
14
 	location /media/ {
15
 		root /var/www/oscar/builds/qa/sandbox/assets;
15
 		root /var/www/oscar/builds/qa/sandbox/assets;
16
 	}
16
 	}
17
+    location =/robots.txt {
18
+		root /var/www/oscar/builds/sandbox/sandbox/public;
19
+	}
17
 	location /static/ {
20
 	location /static/ {
18
 		root /var/www/oscar/builds/qa/sandbox/public;
21
 		root /var/www/oscar/builds/qa/sandbox/public;
19
 	}
22
 	}

+ 3
- 0
sandbox/deploy/nginx/sandbox.conf Zobrazit soubor

14
 	location /media/ {
14
 	location /media/ {
15
 		root /var/www/oscar/builds/sandbox/sandbox/assets;
15
 		root /var/www/oscar/builds/sandbox/sandbox/assets;
16
 	}
16
 	}
17
+    location =/robots.txt {
18
+		root /var/www/oscar/builds/sandbox/sandbox/public;
19
+	}
17
 	location /static/ {
20
 	location /static/ {
18
 		root /var/www/oscar/builds/sandbox/sandbox/public;
21
 		root /var/www/oscar/builds/sandbox/sandbox/public;
19
 	}
22
 	}

+ 0
- 0
sandbox/public/robots.txt Zobrazit soubor


Načítá se…
Zrušit
Uložit