11.nginx.conf 配置示例
来源:互联网 发布:乐视手机mac 编辑:程序博客网 时间:2024/05/21 09:50
nginx.conf :
user nobody nobody;worker_processes 3;error_log logs/error.log;#error_log logs/error.log notice;#error_log logs/error.log info;pid logs/nginx.pid;events { use epoll; worker_connections 1024;}http { autoindex off; include mime.types; default_type application/octet-stream; log_format main '$remote_addr - $remote_user [$time_local] "$request" ' '$status $body_bytes_sent "$http_referer" ' '"$http_user_agent" "$http_x_forwarded_for"'; sendfile on; keepalive_timeout 65; include vhosts/*.conf;}
server.conf
server { listen 192.168.0.106:80; server_name 192.168.0.106; access_log logs/host.access.log main; location / { root html; index index.html index.htm; } error_page 500 502 503 504 /50x.html; location = /50x.html { root html; } location ~ \.php$ { root html; fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; #fastcgi_param SCRIPT_FILENAME /usr/local/nginx/html/fpm/$fastcgi_script_name; fastcgi_param SCRIPT_FILENAME $document_root/fpm$fastcgi_script_name; include fastcgi_params; }}
阅读全文
0 0
- 11.nginx.conf 配置示例
- nginx.conf配置示例讲解
- Nginx nginx.conf虚拟主机配置(基于IP)示例
- Nginx conf/nginx.conf配置
- Nginx-配置-nginx.conf
- nginx nginx.conf 配置
- vsftp.conf配置示例
- nginx.conf配置说明
- nginx.conf配置详解
- Nginx配置conf
- Nginx.conf 配置小结
- nginx.conf 配置详解
- nginx配置www.conf
- nginx.conf配置说明
- nginx.conf配置
- nginx.conf配置参考
- nginx.conf的配置
- nginx中conf配置
- laravel图片上传
- 温习Android基础---Activity
- 两种使用python打印菱形的方法
- MySQL访问权限系统和访问控制
- blog项目登陆
- 11.nginx.conf 配置示例
- 数据库异常怎么办?
- 使用js获取input file的路径C:\fakepath\问题
- 棋盘游戏
- C#---xml带参数查询
- JavaScript学习笔记之JSON&Ajax
- 算法--冒泡排序原理
- Google 推出的 Java 编码规范
- Java卡应用开发其实并不难(4)-第一个Java卡应用的调试