nginx多站点
# HTTPS server # server { listen 80; server_name 59cw.com www.59cw.com; fastcgi_buffers 8 128k; # ssl on; # ssl_certificate cert.pem; # ssl_certificate_key cert.key; # ssl_session_timeout 5m; # ssl_protocols SSLv2 SSLv3 TLSv1; # ssl_ciphers HIGH:!aNULL:!MD5; # ssl_prefer_server_ciphers on; location ~ \.php$ { fastcgi_pass 127.0.0.1:9888; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME /data/web/www.tutucha.cn$fastcgi_script_name; include fastcgi_params; fastcgi_param PHP_VALUE "open_basedir=/data/web/www.tutucha.cn/:/tmp/"; } location / { location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$ { expires 30d; access_log off; } location ~ .*\.(js|css|ico)?$ { expires 1d; access_log off; } root /data/web/www.tutucha.cn; index index.php index.html index.htm; } access_log off; }