当前位置: 首页 > 工具软件 > NagiosQL > 使用案例 >

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

秦育
2023-12-01

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

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

nagiosql配置如下:

server
{
        listen       8088;
        server_name  192.168.44.44;
        index index.html index.htm index.php;
        root  /usr/local/nagios/nagiosql/;

        location /nagiosql/
        {
                gzip off;
                alias /usr/local/nagios/nagiosql/;
        }
        location ~ .*\.(php|php5)?$
        {
                fastcgi_pass  127.0.0.1:9000;
                fastcgi_index index.php;
                fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
                include /export/servers/nginx/conf/fastcgi_params;
        }


}



 类似资料: