do add yohobuy guang code
Showing
2 changed files
with
9 additions
and
1 deletions
@@ -217,6 +217,14 @@ server | @@ -217,6 +217,14 @@ server | ||
217 | proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | 217 | proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; |
218 | proxy_set_header Accept-Encoding "gzip"; | 218 | proxy_set_header Accept-Encoding "gzip"; |
219 | } | 219 | } |
220 | + location ^~ /rss { | ||
221 | + proxy_redirect off; | ||
222 | + proxy_pass http://yohobuy; | ||
223 | + proxy_set_header Host $host; | ||
224 | + proxy_set_header X-Real-IP $remote_addr; | ||
225 | + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
226 | + proxy_set_header Accept-Encoding "gzip"; | ||
227 | + } | ||
220 | 228 | ||
221 | # 搜索相关 | 229 | # 搜索相关 |
222 | location ^~ /search { | 230 | location ^~ /search { |
@@ -29,7 +29,7 @@ class RssController extends AbstractAction | @@ -29,7 +29,7 @@ class RssController extends AbstractAction | ||
29 | <?xml version="1.0" encoding="UTF-8"?> | 29 | <?xml version="1.0" encoding="UTF-8"?> |
30 | <rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"> | 30 | <rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"> |
31 | <channel> | 31 | <channel> |
32 | -<title>有货逛</title> | 32 | +<title>有货·逛</title> |
33 | <link>http://yohobuy.com</link> | 33 | <link>http://yohobuy.com</link> |
34 | <generator>http://m.yohobuy.com</generator> | 34 | <generator>http://m.yohobuy.com</generator> |
35 | <description>Yoho!Buy有货 | 年轻人潮流购物中心</description> | 35 | <description>Yoho!Buy有货 | 年轻人潮流购物中心</description> |
-
Please register or login to post a comment