Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- location / {
- root /path/to/avarcade;
- index index.php;
- try_files /down.html $uri $uri/ @avarcade;
- }
- location @avarcade {
- rewrite ^/cat/([0-9]+)?/([0-9a-zA-Z'?-]+)/p([0-9]+) /index.php?task=category&id=$1&name=$2&page=$3 last;
- rewrite ^/cat/([0-9]+)?/([0-9a-zA-Z'?-]+)/([0-9a-zA-Z?-]+)/p([0-9]+) /index.php?task=category&id=$1&name=$2&sortby=$3&page=$4 last;
- rewrite ^/cat/([0-9]+)?/([0-9a-zA-Z'?-]+)/([0-9a-zA-Z?-]+)-([0-9]+) /index.php?task=category&id=$1&sortby=$3&page=$4 last;
- rewrite ^/cat/([0-9]+)?/([0-9a-zA-Z'?-]+) /index.php?task=category&id=$1&name=$2 last;
- rewrite ^/tag/([0-9a-zA-Z'?-]+) /index.php?task=tag&t=$1 last;
- rewrite ^/profile/([0-9]+)?/([0-9a-zA-Z?-]+) /index.php?task=profile&id=$1&name=$2 last;
- rewrite ^/profile/comments/([0-9]+)?/([0-9a-zA-Z?-]+) /index.php?task=users_comments&id=$1&name=$2 last;
- rewrite ^/page/([0-9]+) /index.php?task=view_page&id=$1 last;
- rewrite ^/task/register /index.php?task=register last;
- rewrite ^/task/lost-password /index.php?task=lost_pass last;
- rewrite ^/task/links /index.php?task=links last;
- rewrite ^/task/allnews/page([0-9]+) /index.php?task=news&page=$1 last;
- rewrite ^/task/allnews /index.php?task=news last;
- rewrite ^/task/members/([0-9a-zA-Z'?-]+)-([0-9a-zA-Z'?-]+)/page([0-9]+)? /index.php?task=member_list&sort=$1&order=$2&page=$3 last;
- rewrite ^/task/members /index.php?task=member_list last;
- rewrite ^/task/messages /index.php?task=messages last;
- rewrite ^/task/search /index.php?task=search last;
- rewrite ^/task/submit /index.php?task=submit last;
- rewrite ^/task/news/item/([0-9]+)/([0-9a-zA-Z?-]+) /index.php?task=news&id=$1 last;
- rewrite ^/task/messages /index.php?task=messages last;
- rewrite ^/r-([0-9]+)?-([0-9]+)? /go.php?id=$1&ref=$2 last;
- rewrite ^/r-([0-9]+)? /go.php?id=$1 last;
- rewrite ^/([0-9a-zA-Z'?-]+)/([0-9]+)/([0-9a-zA-Z'?-]+) /index.php?task=view&id=$2&name=$3 last;
- }
Add Comment
Please, Sign In to add comment