SweetRice

Simple is beautiful - SweetRice Official website.

Security setting for Nginx

For enable URL rewrite on nginx server,you should put these code to nginx.conf

if (!-e $request_filename){
       rewrite ^/sweetrice_root/.+$ /sweetrice_root/index.php last;
     }

Note:sweetrice_root must be SweetRice root directory

and put these code to nginx.conf to protect SweetRice data file

     location ~* \.(db|txt)$ {
        if (-f $request_filename) {
        root sweetrice_root/inc/;
        break;
        }
    }

Note:sweetrice_root must be SweetRice root directory

Post Detail
Last UpdateApr,07,2011 Views : 2979
Permalinkshttp://www.basic-cms.org/docs/Security-setting-for-Nginx/
Tag SweetRice Nginx Security

TOTAL 1 User CommentsView All Comments

Your name * Remember Me
Verification Code *

Related Entry

Copyright © 2008 - 2018 SweetRice Powered By Basic CMS SweetRice Basic-cms.org rssfeed Follow us on Twitter