Welcome! Log In Create A New Profile

Advanced

Re: .htaccess style support in existing nginx

Andre Jaenisch
October 25, 2012 05:50AM
2012/10/25 rahul286 <nginx-forum@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

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
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: 188
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