.htaccess style support in existing nginx
Andre Jaenisch
andrejaenisch at googlemail.com
Thu Oct 25 09:49:56 UTC 2012
2012/10/25 rahul286 <nginx-forum at nginx.us>:
> Now, for a site lets put a ".nginxaccess" file to hold site specific configuration (file will be writable by PHp, etc so web-site can update it)
> [...]
> Whenever any changes are detected in "/var/www/path/to/site/.nginxaccess" we can test nginx config and reload it.
Be careful concerning safety.
I'm afraid about maleficient code entered this way.
PHP provides functions like htmlspecialchars [1] to avoid this. Just a
word of warning ;-)
Regards, Andre
[1] http://www.php.net/manual/en/function.htmlspecialchars.php
More information about the nginx
mailing list