瀏覽代碼

Serve robots.txt correctly in sandbox env.

I'm sick of getting the error emails.
master
David Winterbottom 13 年之前
父節點
當前提交
8ad8817caa
共有 3 個檔案被更改,包括 6 行新增0 行删除
  1. 3
    0
      sandbox/deploy/nginx/qa.conf
  2. 3
    0
      sandbox/deploy/nginx/sandbox.conf
  3. 0
    0
      sandbox/public/robots.txt

+ 3
- 0
sandbox/deploy/nginx/qa.conf 查看文件

@@ -14,6 +14,9 @@ server {
14 14
 	location /media/ {
15 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 20
 	location /static/ {
18 21
 		root /var/www/oscar/builds/qa/sandbox/public;
19 22
 	}

+ 3
- 0
sandbox/deploy/nginx/sandbox.conf 查看文件

@@ -14,6 +14,9 @@ server {
14 14
 	location /media/ {
15 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 20
 	location /static/ {
18 21
 		root /var/www/oscar/builds/sandbox/sandbox/public;
19 22
 	}

+ 0
- 0
sandbox/public/robots.txt 查看文件


Loading…
取消
儲存