server {
listen 80;
server_name www.xxxxxx.com xxxxxx.com;
index index.html index.htm index.php;
root /opt/www/xxxxxx;
autoindex on;
error_page 404 /404.html;
error_page 500 502 503 504 /busy.html;
location ~ .*\.(php|php5)?$ {
fastcgi_pass 127.0.0.1:9000;
include /opt/nginx/conf/fastcgi_params;
}
log_format access_myl '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" $http_x_forwarded_for';
access_log /opt/nginx/logs/access.log access_myl;
}
listen 80;
server_name www.xxxxxx.com xxxxxx.com;
index index.html index.htm index.php;
root /opt/www/xxxxxx;
autoindex on;
error_page 404 /404.html;
error_page 500 502 503 504 /busy.html;
location ~ .*\.(php|php5)?$ {
fastcgi_pass 127.0.0.1:9000;
include /opt/nginx/conf/fastcgi_params;
}
log_format access_myl '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" $http_x_forwarded_for';
access_log /opt/nginx/logs/access.log access_myl;
}