nginx环境下配置nagiosQL-关于nagiosql配置文件

接上文:nginx环境下配置nagios-关于nginx.conf

nagiosql文件应该处于conf/domain/目录下

nagiosql配置如下:

 1 server
 2 {
 3         listen       ;
 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         {
                 gzip off;
                 alias /usr/local/nagios/nagiosql/;
         }
         location ~ .*\.(php|php5)?$
         {
                 fastcgi_pass  127.0.0.1:;
                 fastcgi_index index.php;
                 fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
                 include /export/servers/nginx/conf/fastcgi_params;
         }
 
 

22 }

上一篇:模板函数(template function)出现编译链接错误(link error)之解析


下一篇:Linux 下的各种环境安装