Authored by hf

do add huodong nginx and apache config

  1 +<VirtualHost *:8080>
  2 + ServerAdmin root@localhost
  3 + #CustomLog "/Data/logs/apache/access.guang.test.yoho.cn.log" combined
  4 + ErrorLog "/Data/logs/apache/error.huodong.m.yohobuy.com.log"
  5 + ServerName huodong.m.yohobuy.com
  6 + DocumentRoot "/Data/PE/yohobuy/yohobuy/huodong.m.yohobuy.com/public"
  7 + RewriteEngine on
  8 + RewriteCond %{REQUEST_FILENAME} !-f
  9 + RewriteCond %{REQUEST_FILENAME} !-d
  10 + RewriteCond %{REQUEST_URI} !^.*(\.css|\.js|\.gif|\.png|\.jpg|\.jpeg|\.svg|\.woff|\.eot|\.ttf)$
  11 + RewriteCond %{QUERY_STRING} ^(.*)$
  12 + RewriteRule ^/(.+)$ /index.php [L]
  13 + <Directory />
  14 + LimitRequestBody 10485760
  15 + Options FollowSymLinks
  16 + AllowOverride None
  17 + Order allow,deny
  18 + Allow from all
  19 + Require all granted
  20 + </Directory>
  21 +</VirtualHost>
1 22
2 <VirtualHost *:8080> 23 <VirtualHost *:8080>
3 ServerAdmin root@localhost 24 ServerAdmin root@localhost
@@ -32,7 +53,6 @@ @@ -32,7 +53,6 @@
32 RewriteCond %{REQUEST_FILENAME} !-d 53 RewriteCond %{REQUEST_FILENAME} !-d
33 RewriteCond %{REQUEST_URI} !^.*(\.css|\.js|\.gif|\.png|\.jpg|\.jpeg|\.svg|\.woff|\.eot|\.ttf)$ 54 RewriteCond %{REQUEST_URI} !^.*(\.css|\.js|\.gif|\.png|\.jpg|\.jpeg|\.svg|\.woff|\.eot|\.ttf)$
34 RewriteCond %{QUERY_STRING} ^(.*)$ 55 RewriteCond %{QUERY_STRING} ^(.*)$
35 - RewriteRule / /index.php/guang/list/index?%1 [L]  
36 RewriteRule ^/(.+)$ /index-test.php [L] 56 RewriteRule ^/(.+)$ /index-test.php [L]
37 <Directory /> 57 <Directory />
38 LimitRequestBody 10485760 58 LimitRequestBody 10485760
@@ -346,4 +346,32 @@ server @@ -346,4 +346,32 @@ server
346 proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; 346 proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
347 proxy_set_header Accept-Encoding "gzip"; 347 proxy_set_header Accept-Encoding "gzip";
348 } 348 }
  349 +}
  350 +
  351 +server
  352 +{
  353 + listen 80;
  354 + server_name huodong.m.yohobuy.com;
  355 + root /Data/PE/yohobuy/yohobuy/huodong.m.yohobuy.com/public;
  356 + location / {
  357 + proxy_redirect off;
  358 + proxy_pass http://yohobuy;
  359 + proxy_set_header Host $host;
  360 + proxy_set_header X-Real-IP $remote_addr;
  361 + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  362 + proxy_set_header Accept-Encoding "gzip";
  363 + }
  364 +
  365 + location ~* \.(ico|woff|svg|eot|ttf|otf)$ {
  366 + expires 30d;
  367 + }
  368 + location =/crossdomain.xml {
  369 + expires 30d;
  370 + }
  371 + location =/sitemap.xml {
  372 + expires 1d;
  373 + }
  374 + location =/robots.txt {
  375 + expires 1d;
  376 + }
349 } 377 }