October 25, 2012 08:51AM
Thanks for a really scary example! :D

By the way, I was NOT planning this for shared environment.

In fact for a wordpress blog-network which use our plugin http://wordpress.org/extend/plugins/nginx-helper/

Whenever users create new sites, the plugin add new sites id in map.conf file (simple key value pair table of domain-name and numeric-ids for efficient file-handling)

I was thinking to run a linux inotify based script to auto-reload nginx whenever changes are detected in map.conf file.

After your example, I can add some sed commands to my script so any chars like "{' and "}" will be stripped down!

At the end, you cannot guarantee security for anyone, no matter how safe codes you develop. :D

--
Rahul Bansal
EasyEngine - https://github.com/rtCamp/easyengine
Subject Author Posted

.htaccess style support in existing nginx

rahul286 October 25, 2012 02:08AM

Re: .htaccess style support in existing nginx

Andre Jaenisch October 25, 2012 05:50AM

Re: .htaccess style support in existing nginx

rahul286 October 25, 2012 06:02AM

Re: .htaccess style support in existing nginx

Jonathan Matthews October 25, 2012 07:58AM

Re: .htaccess style support in existing nginx

rahul286 October 25, 2012 08:51AM

Re: .htaccess style support in existing nginx

rahul286 October 25, 2012 08:57AM

Re: .htaccess style support in existing nginx

Andre Jaenisch October 26, 2012 04:22AM

Re: .htaccess style support in existing nginx

rahul286 October 26, 2012 04:38AM

Re: .htaccess style support in existing nginx

Jonathan Matthews October 26, 2012 06:02AM

Re: .htaccess style support in existing nginx

rahul286 October 26, 2012 07:43AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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