Welcome! Log In Create A New Profile

Advanced

Get file with DAV instead of execution result

Posted by ylavoie 
Get file with DAV instead of execution result
November 12, 2015 08:28PM
HI,

How do I prevent file execution when using DAV?
I need to get the source of a PERL file for remote edition, but NGINX only serves the result of the execution through FCGI. I have attached a small example for demonstration with pertinent data only.

The site runs well, I just want to be able to edit the files.

Looking into the log files, it is obvious that the perl handler is called, even though DAV should serve the file source only.

2015/11/12 19:55:40 [error] 29735#29735: *56776 FastCGI sent in stderr: "Cannot get script name, are DOCUMENT_ROOT and SCRIPT_NAME (or SCRIPT_FILENAME) set and is the script executable?" while reading response header from upstream, client: 192.168.0.67, server: local11, request: "GET /reports.pl HTTP/1.0", upstream: "fastcgi://unix:/var/run/fcgiwrap.socket:"

I do not get error messages when using the site, so the fcgi and upstream are well configured.
Thanks,

Yves
Attachments:
open | download - nginx.conf (279 bytes)
open | download - default (521 bytes)
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 165
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready