Welcome! Log In Create A New Profile

Advanced

Re: Protect against php files being send as static files

Francis Daly
March 05, 2019 07:00PM
On Tue, Mar 05, 2019 at 06:50:54AM -0500, Olaf van der Spek wrote:

Hi there,

> Is there a way to protect against php files being send as static files /
> source due to some php specific configuration being missed (by accident)?
> Another web server has this by default: static-file.exclude-extensions = (
> ".php", ".pl", ".fcgi" )

I don't think that stock-nginx has a configuration directive for this.

"Not putting files that you don't want sent, into a directory that nginx
has been told to send files from", would probably be the safest way to
avoid external misconfiguration.

f
--
Francis Daly francis@daoine.org
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Protect against php files being send as static files

Olaf van der Spek March 05, 2019 06:50AM

Re: Protect against php files being send as static files

Francis Daly March 05, 2019 07:00PM

Re: Protect against php files being send as static files

Olaf van der Spek March 12, 2019 04:45AM

Re: Protect against php files being send as static files

Ian Hobson March 06, 2019 07:02AM

Re: Protect against php files being send as static files

Olaf van der Spek March 12, 2019 04:53AM

Re: Protect against php files being send as static files

Ian Hobson March 12, 2019 04:56PM

Re: Protect against php files being send as static files

Olaf van der Spek March 26, 2019 10:50AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 314
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