nginx下面server配置
haomeiv配置
log_format www.haomeiv.com '$remote_addr - $remote_user [$time_local] "$request" ' '$status $body_bytes_sent "$http_referer" ' '"$http_user_agent" $http_x_forwarded_for'; server { listen 80; server_name www.haomeiv.com haomeiv.com; index index.html index.htm index.php default.html default.htm default.php; root /data/webroot/haomeiv; include rewrite/www_haomeiv_com; location ~ .*\.(php|php5)?$ { try_files $uri =404; fastcgi_pass unix:/tmp/php-cgi.sock; fastcgi_index index.php; include fcgi.conf; } location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$ { expires 30d; } location ~ .*\.(js|css)?$ { expires 12h; } access_log /data/logs/www.haomeiv.com.log www.haomeiv.com; error_log /data/logs/www.haomeiv.com.error_log; }
www.kong.cn配置
server { include port.conf; server_name www.kong.cn; root /data/webroot/pm; include rewrite/common.conf; include rewrite/www.kong.cn_rewrite.conf; include expires.conf; include php_app.conf; access_log /data/logs/nginx/access/curr/www.kong.cn.log main; error_log /data/logs/nginx/nginx_error_www.kong.cn.log; }
千里之行,始于足下。改变现在,就是改变未来。改变未来,从现在开始。
个人网站:http://www.wangkongming.cn