server listen 80 root home efog Bido server_name bido system charset u

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
server {
listen 80;
root /home/efog/Bido;
server_name bido.system;
charset utf8;
location / {
try_files $uri =404;
rewrite ^/reg/$ /user/reg.php;
rewrite ^/login/$ /user/auth.php;
rewrite ^/users/$ /user/users.php;
rewrite ^/users/p([0-9]+)/$ /user/users.php?p=$1;
rewrite ^/blog/p([0-9]+)/$ /blog/index.php?p=$1;
rewrite ^/blog/([0-9]+)/$ /blog/blog.php?id=$1;
rewrite ^/gbook/([0-9]+)$ /gbook/index.php?user=$1;
rewrite ^/blog/([0-9]+)/p([0-9]+)/$ /blog/blog.php?id=$1&p=$2;
rewrite ^/blog/user/([0-9]+)$ /blog/index.php?user=$1;
rewrite ^/blog/user/([0-9]+)/p([0-9]+)/$ /blog/index.php?user=$1&p=$2;
rewrite ^/exit/$ /user/exit.php;
rewrite ^/friends/$ /user/friends.php;
rewrite ^/friends/p([0-9]+)/$ /user/friends.php?p=$1;
rewrite ^/friends/([0-9]+)/$ /user/friends.php?id=$1;
rewrite ^/friends/([0-9]+)/p([0-9]+)/$ /user/friends.php?id=$1&p=$2;
rewrite ^/friends/([0-9]+)/remove/([0-9]+)/$ /user/friends.php?id=$1&delete=$2;
rewrite ^/followers/$ /user/followers.php;
rewrite ^/followers/p([0-9]+)/$ /user/followers.php?p=$1;
rewrite ^/followers/([0-9]+)/$ /user/followers.php?id=$1;
rewrite ^/followers/([0-9]+)/p([0-9]+)/$ /user/followers.php?id=$1&p=$2;
rewrite ^/favorite/$ /user/favorite.php;
rewrite ^/avatar/$ /user/avatar.php;
rewrite ^/online/$ /user/online.php;
rewrite ^/forum/file/([0-9]+)/download /forum/download.php?id=$1;
rewrite ^/comment/file/([0-9]+)/download /forum/download_comment.php?id=$1;
rewrite ^/blog/file/([0-9]+)/download /blog/download.php?id=$1;
rewrite ^/info/([0-9]+)$ /user/info.php?id=$1;
rewrite ^/info/$ /user/info.php;
rewrite ^/more/([0-9]+)$ /user/anketa.php?id=$1;
rewrite ^/forum/([0-9]+)/$ /forum/forum.php?id=$1;
rewrite ^/forum/([0-9]+)/([0-9]+)/$ /forum/topic.php?id=$2&fid=$1;
rewrite ^/forum/([0-9]+)/([0-9]+)/p([0-9]+)/$ /forum/topic.php?id=$2&fid=$1&p=$3;
rewrite ^/forum/$ /forum/forum.php;
rewrite ^/blog/repost/([0-9]+)$ /blog/index.php?repost=$1&repost_type=blog;
rewrite ^/forum/repost/([0-9]+)$ /blog/index.php?repost=$1&repost_type=topic;
rewrite ^/send-comment/([0-9]+)/$ /forum/topic.php?id=$1;
rewrite ^/contacts/$ /mail/contacts.php;
rewrite ^/newmail/$ /mail/newmail.php;
rewrite ^/answers/$ /bido/answers.php;
rewrite ^/feed/$ /bido/feed.php;
rewrite ^/feed/p([0-9]+)/$ /bido/feed.php?p=$1;
rewrite ^/go/(.*) /bido/go.php?link=$1;
rewrite ^/answers-new/$ /bido/new_answers.php;
rewrite ^/answers-new/p([0-9]+)$ /bido/new_answers.php?p=$1;
rewrite ^/answers/p([0-9]+)/$ /bido/answers.php?p=$1;
rewrite ^/contacts/p([0-9]+)/$ /mail/contacts.php?p=$1;
rewrite ^/mail/([0-9]+)$ /mail/mail.php?id=$1;
rewrite ^/mail/([0-9]+)/p([0-9]+)/$ /mail/mail.php?id=$1&p=$2;
rewrite ^/mail/delete/$ /mail/delete.php;
rewrite ^/heart/access-look/$ /heart/accessLook.php;
rewrite ^/heart/access-edit/$ /heart/accessEdit.php;
rewrite ^/heart/optimize-forum/$ /heart/forumOptimize.php;
rewrite ^/heart/global-replace/$ /heart/globalReplace.php;
rewrite ^/heart/clear-posts/$ /heart/clearPosts.php;
rewrite ^/heart/user-delete/$ /heart/userDelete.php;
rewrite ^/heart/temp-clear/$ /heart/tempClear.php;
rewrite ^/heart/watch-bans/$ /heart/watchBans.php;
rewrite ^/heart/user-edit/$ /heart/userEdit.php;
rewrite ^/heart/unblock/([0-9]+)$ /heart/watchBans.php?unblock=$1;
rewrite ^/heart/unban/([0-9]+)$ /heart/watchBans.php?unban=$1;
rewrite ^/ban/$ /user/block.php?r=ban;
rewrite ^/block/$ /user/block.php?r=block;
include common/php-fpm;
}
}