Nginx location, return and rewrite directives

2013-12-06 Thread r004
I am having a hard time learning to do return and rewrite directives. the conditions are fuzzy for me. I am trying to learn by example, so I made one up. in the htdocs of my server we have this file and folders. ~:#>ls htdocs admin.php api (dir) api.php archiver (dir) config (dir) connect.php cp.

rewrite or return directives for discuz v3.1

2013-12-03 Thread r004
hello; I want to write a block to put in my VHOST config file. i want 1. if there is "/install/index.php/" in the link. it shouldbe removed from the link. 2. if the format is like /uc_server/blab.php/uc_server/blahblah ===it should change to===>/uc_server/blabal what should I put in my VHOST conf