首页 > 代码库 > nginx环境下配置nagiosQL-关于nagiosql配置文件
nginx环境下配置nagiosQL-关于nagiosql配置文件
接上文:nginx环境下配置nagios-关于nginx.conf
nagiosql文件应该处于conf/domain/目录下
nagiosql配置如下:
1 server
2 {
3 listen 8088;
4 server_name 192.168.44.44;
5 index index.html index.htm index.php;
6 root /usr/local/nagios/nagiosql/;
7
8 location /nagiosql/
9 {
10 gzip off;
11 alias /usr/local/nagios/nagiosql/;
12 }
13 location ~ .*\.(php|php5)?$
14 {
15 fastcgi_pass 127.0.0.1:9000;
16 fastcgi_index index.php;
17 fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
18 include /export/servers/nginx/conf/fastcgi_params;
19 }
20
21
2 {
3 listen 8088;
4 server_name 192.168.44.44;
5 index index.html index.htm index.php;
6 root /usr/local/nagios/nagiosql/;
7
8 location /nagiosql/
9 {
10 gzip off;
11 alias /usr/local/nagios/nagiosql/;
12 }
13 location ~ .*\.(php|php5)?$
14 {
15 fastcgi_pass 127.0.0.1:9000;
16 fastcgi_index index.php;
17 fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
18 include /export/servers/nginx/conf/fastcgi_params;
19 }
20
21
22 }
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。