Quantcast
Channel: Nginx Forum - How to...
Viewing all articles
Browse latest Browse all 4759

Get file with DAV instead of execution result

$
0
0
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

Viewing all articles
Browse latest Browse all 4759

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>