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 : 5163
Permalinkshttps://www.sweetrice.xyz/docs/Security-setting-for-Nginx/
Tag SweetRice Nginx Security
DigitalOcean Referral Badge

Total 1 User CommentsView All Comments

Your name * Remember Me
Verification Code *

Related Entry

Copyright © 2008 - 2024 SweetRice SweetRice rssfeed Follow us on Twitter