server {
listen 20080;
server_name up01dev.yohimg.com;
root /home/yohimg;
index index.php;
access_log /logs/$host.log new;
add_header servertag dev-srv01;
location ~ .*\.(php|php5|phtml?)?$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
include fcgi.conf;
fastcgi_connect_timeout 500;
fastcgi_send_timeout 500;
fastcgi_read_timeout 500;
fastcgi_buffer_size 32k;
fastcgi_buffers 8 32k;
}
}
server {
listen 20080;
server_name img01dev.yohimg.com;
root /home/yohimg;
index make.php;
access_log /logs/$host.log new;
add_header servertag dev-srv01;
location ~ .*\.(php|php5|phtml?)?$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index make.php;
include fcgi.conf;
fastcgi_connect_timeout 500;
fastcgi_send_timeout 500;
fastcgi_read_timeout 500;
fastcgi_buffer_size 32k;
fastcgi_buffers 8 32k;
}
location / {
if (!-e $request_filename) {
rewrite ^/(.*)$ /make.php last;
break;
}
}
location ~* ^.+.(xml|js|ico|gif|jpg|jpeg|pdf|png|css|swf|phtml)($|\?) {
expires 7d;
}
}
/usr/local/nginx/sbin/nginx -t
kill -HUP 2044 && tail -f /usr/local/nginx/logs/error.log
QA 环境 修改同上、完成修改
阅读(440) | 评论(0) | 转发(0) |