只需一步,快速开始
举报
SunnyV 发表于 2013-1-9 20:26 100分帮你
server { listen 80; server_name 94425.com *.94425.com; index index.html index.htm index.php default.html default.htm default.php; root /home/wwwroot/94425.com; if ($uri ~* "/(.*)/(.*)/(.*)\.html") { rewrite "^/(.*)/(.*)/(.*)\.html$" /$1/$2/$3.html last; } if ($host ~* "([^www].*)\.94425\.com") { set $subdomain $1; rewrite "^/(.*)$" /$subdomain/$1 last; } location ~ .*\.(gif|jpg|jpeg|png|bmp|swf|ico|cur)$ { expires 30d; } location ~ .*\.(js|css)?$ { expires 7d; } location / { include uwsgi_params; uwsgi_pass 127.0.0.1:9090; uwsgi_param UWSGI_PYHOME /usr; uwsgi_param UWSGI_CHDIR /home/wwwroot/94425.com; uwsgi_param UWSGI_SCRIPT app; uwsgi_param SCRIPT_NAME /; uwsgi_param SERVER_NAME 94425.com; } access_log off; }
本版积分规则 发表回复 回帖后跳转到最后一页
Archiver|手机版|小黑屋|全球主机交流论坛
GMT+8, 2025-9-26 00:44 , Processed in 0.069226 second(s), 12 queries , Gzip On, MemCache On.
Powered by Discuz! X3.4
© 2001-2023 Discuz! Team.