Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fcgiwrap doesn't like the default fastcgi_params #41

Open
bellaxie opened this issue May 24, 2017 · 0 comments
Open

fcgiwrap doesn't like the default fastcgi_params #41

bellaxie opened this issue May 24, 2017 · 0 comments

Comments

@bellaxie
Copy link

bellaxie commented May 24, 2017

Hi there,

This is how I configure the /cgi-bin/ location in the nginx configure file, it doesn't work if I include /etc/nginx/fastcgi_params, and it worked if I comment this line out. I'm assuming either fcgiwrap doesn't like some of the default fastcgi_params or the params I gave in the location block gets overwritten by the default params. could you advise?
`
location ~ ^/cgi-bin/nagios3/(..cgi.) {
include /etc/nginx/fastcgi_params;

fastcgi_pass  unix:/var/run/fcgiwrap.socket;
    auth_basic                         "Restricted";
    auth_basic_user_file               /etc/nagios3/htpasswd.users;
    fastcgi_param AUTH_USER            $remote_user;
    fastcgi_param REMOTE_USER          $remote_user;
    fastcgi_param REQUEST_METHOD       $request_method;
    fastcgi_param DOCUMENT_ROOT        /usr/lib/cgi-bin/nagios3;
    fastcgi_param SCRIPT_FILENAME      /usr/lib/cgi-bin/nagios3/$1;
    fastcgi_param SCRIPT_NAME          $1;
    fastcgi_param QUERY_STRING         $query_string;

}
`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant