OPNsense Forum

Archive => 18.7 Legacy Series => Topic started by: AndyX90 on September 13, 2018, 08:06:18 AM

Title: Nginx as Webserver for Lightsquid-Reports
Post by: AndyX90 on September 13, 2018, 08:06:18 AM
Hi ho,

i recently tried to use the nginx plugin for serving Lightsquid-reports.
I created one HTTPS-Server and a location with the option " Pass Request To Local PHP Interpreter / Threat Upstream As FastCGI".
But it doesn't work. I get the following error in nginx error logs:
Quote*1 FastCGI sent in stderr: "Access to the script '/usr/local/web/lightsquid/index.cgi' has been denied (see security.limit_extensions)" while reading response header from upstream, client: xxxx, server: webserver, request: "GET /index.cgi HTTP/2.0", upstream: "fastcgi://unix:/var/run/php-www.socket:", host: "xxxx:xxxx"
And in the Browser i get the message
QuoteAccess denied.
Has someone already got this working?

Thx.
Title: Re: Nginx as Webserver for Lightsquid-Reports
Post by: fabian on September 13, 2018, 06:09:36 PM
This is not a FastCGI, but CGI. It will never work.
Title: Re: Nginx as Webserver for Lightsquid-Reports
Post by: AndyX90 on September 13, 2018, 07:10:20 PM
Oh okay, thanks!

Gesendet von meinem Pixel 2 XL mit Tapatalk