nginx下面server配置
生活随笔
收集整理的這篇文章主要介紹了
nginx下面server配置
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
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; }?
總結
以上是生活随笔為你收集整理的nginx下面server配置的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 迷你世界地心人吃什么
- 下一篇: IT应聘者的简历应该是怎么样的?