ChinaUnix.net
相关文章推荐:

nginx 配置文件 字符串替换

配置文件位由编译参数--conf-path指定,这里位于/etc/nginx/目录下. 1. http服务配置文件: user www www; worker_processes 5; error_log /var/nginx/logs/error.log; #error_log logs/error.log notice; #error_log logs/error.log info; pid /var/nginx/nginx.pid; events { use epoll; worker_connections 1024; } http { include mime.types; default_type application/octet-stream; root /var/ww...

by billianne - Linux文档专区 - 2009-08-25 15:26:36 阅读(1454) 回复(0)

相关讨论

本帖最后由 laihuchun 于 2013-06-19 17:17 编辑 nginx报错 location / { root /usr/local/nginx/html; fastcgi_pass 127.0.0.1:9000; index index.php; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; include fastcgi_params; } error.log error] 1889#0: *1 FastCGI sent in stderr: "Primary script unkno...

by laihuchun - PHP - 2013-06-21 09:17:07 阅读(1625) 回复(1)

nginx配置说明---------------------------- #运行用户 user nobody nobody; #启动进程 worker_processes 2; #全局错误日志及PID文件 error_log logs/error.log notice; pid logs/nginx.pid; #工作模式及连接数上限 events { use epoll; worker_connections 1024; } #设定http服务器,利用它的反向代理功能提供负载均衡支持 http { #设定mime类型 include conf/mime.types; default_type application/octet-...

by limtzone - Linux文档专区 - 2010-02-03 11:12:21 阅读(1110) 回复(0)

文件: nginx_conf.rar 大小: 0KB 下载: 下载 本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/23251/showart_2043795.html

by linux6 - Linux文档专区 - 2009-09-02 13:08:46 阅读(991) 回复(0)

1.请问nginx配置文件语法在哪里有文档,google过实在找不到 2.判断一个变量值是否为空怎样写 if (-X $http_YYYY) { // 这里的X选项应该是什么? }

by Sam1860 - 服务器应用 - 2008-12-20 18:43:26 阅读(3664) 回复(1)

本帖最后由 mxiaohua1768 于 2011-10-20 09:04 编辑 attachimg]510774[/attachimg] 现在服务都跑起来了,还是不能访问网页,这咋回事,数据库已导入到mysql里了,我进网站的目录里看了,有index.html和index.php文件~ 我访问时怎么出这个玩意

by mxiaohua1768 - Linux系统管理 - 2011-10-20 09:55:47 阅读(2965) 回复(18)

location / { root /cygdrive/d/phpdoc/; index index.html index.htm index.php; 如果你网站文件目录是 到d:/phpdoc/ 要将配置文件写成 root /cygdrive/d/phpdoc/;

by unixyeah - PHP - 2008-12-28 20:11:46 阅读(4376) 回复(3)

nginx配置说明---------------------------- #运行用户 user nobody nobody; #启动进程 worker_processes 2; #全局错误日志及PID文件 error_log logs/error.log notice; pid logs/nginx.pid; #工作模式及连接数上限 events { use epoll; worker_connections 1024; } #设定http服务器,利用它的反向代理功能提供负载均衡支持 http { #设定mime类型 include conf/mime.types; default_type application/octet-s...

by jakback - Linux文档专区 - 2008-04-05 11:53:50 阅读(1524) 回复(0)

一个比较详细的nginx配置文件 研究nginx有段时间了,下面帖个比较详细的nginx配置文件,大家参考下吧,也许有不足。 user nobody; worker_processes 8; #error_log logs/error.log; #error_log logs/error.log notice; error_log /var/log/nginx/error.log info; pid /var/log/nginx/nginx.pid; worker_rlimit_nofile 65535; events { use epoll; worker_connections 30000; } h...

by tang560128 - Linux文档专区 - 2008-11-17 14:21:29 阅读(560) 回复(0)

研究nginx有段时间了,下面帖个比较详细的nginx配置文件,大家参考下吧,也许有不足。 user nobody; worker_processes 8; #error_log logs/error.log; #error_log logs/error.log notice; error_log /var/log/nginx/error.log info; pid /var/log/nginx/nginx.pid; worker_rlimit_nofile 65535; events { use epoll; worker_connections 30000; } http { include /etc/...

by wcqniuniu - Linux文档专区 - 2008-10-26 19:01:31 阅读(564) 回复(0)

最近给公司搭建nagios是在nginx下,小弟经验不足不知道如何在nginx配置文件里添加nagios支持,网上看了好多,但是都差不多,我看Apache配置只需要在最后添加几行代码就可以完全搞定,可是看nginx比较复杂,另外公司是一个服务器上好多虚拟主机,我想问的是,难道我需要在这每一个虚拟主机的server{}代码里面添加nagios支持么?还是我只需要在http{}段里添加nagios支持就可以了?

by zhixf_0501 - Linux系统管理 - 2013-10-17 16:53:27 阅读(1061) 回复(3)