这是 nginx 配置文件中的一些简单信息, nginx.conf 文件
- user nginx;
- error_log /var/log/nginx/error.log info;
- worker_processes 1;
- events {
- worker_connections 1024;
- }
- http {
- include mime.types;
- default_type application/octet-stream;
- sendfile on;
- keepalive_timeout 65;
- tcp_nopush on;
- tcp_nodelay on;
- gzip on;
- server {
- listen 80;
- server_name xiaomi.liubo.com;
- root /data/web;
- location / {
- index index.PHP index.html index.htm;
- }
- location ~ \.PHP$ {
- fastcgi_pass 127.0.0.1:9000;
- fastcgi_index index.PHP;
- fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
- include fastcgi_params;
- }
- error_page 500 502 503 504 /50x.HTML;
- location = /50x.HTML {
- root HTML;
- }
- }
- include vhost/*.conf;
- }
来源: http://www.jianshu.com/p/6af9ba015613