-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnginx.conf
More file actions
executable file
·158 lines (134 loc) · 7.44 KB
/
nginx.conf
File metadata and controls
executable file
·158 lines (134 loc) · 7.44 KB
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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
#if ($http_host ~ "^[a-z0-9-]+.zzcms.net$"){
#set $rule_0 1$rule_0;
#}
#if ($http_host !~ "^zzcms.net$"){
#set $rule_0 2$rule_0;
#}
#if ($rule_0 = "21"){
#rewrite ^/?$ /$http_host;
#}
rewrite /index.htm$ /index.php;
rewrite /zs/index.htm$ /zs/index.php;
#rewrite ^/([a-z0-9-]+).zzcms.net/?$ /zt/show.php?editor=$1;
rewrite /zs/index.htm$ /zs/index.php;
rewrite /zs/order.htm$ /zs/order.php;
rewrite /dl/index.htm$ /dl/index.php;
rewrite /company/index.htm$ /company/index.php;
rewrite /zh/index.htm$ /zh/index.php;
rewrite /wangkan/index.htm$ /wangkan/index.php;
rewrite /zx/index.htm$ /zx/index.php;
rewrite /special/index.htm$ /special/index.php;
rewrite /pp/index.htm$ /pp/index.php;
rewrite /job/index.htm$ /job/index.php;
rewrite /area/([0-9,a-z]*).htm$ /area/show.php?province=$1;
rewrite /zsclass/([0-9,a-z]*).htm$ /zsclass/class.php?b=$1;
rewrite /zsclass/index.htm$ /zsclass/index.php;
rewrite /zsclass/([0-9,a-z]*)/([0-9,a-z]*).htm$ /zsclass/zsclass.php?b=$1&page=$2;
rewrite /zs/index.htm$ /zs/zs.php;
rewrite /zs/([0-9,a-z]*).htm$ /zs/zs.php?page=$1;
rewrite /zs/([0-9,a-z]*).html$ /zs/zs.php?b=$1;
rewrite /zs/sx-([0-9,a-z]*).htm$ /zs/zs_list.php?sx=$1;
rewrite /zs/([0-9,a-z]*)/([0-9,a-z]*).htm$ /zs/zs.php?b=$1&page=$2;
rewrite /zs/([0-9,a-z]*)/([0-9,a-z]*).html$ /zs/zs.php?b=$1&s=$2;
rewrite /zs/([0-9,a-z]*)/([0-9,a-z]*)/([0-9,a-z]*).htm$ /zs/zs.php?b=$1&s=$2&page=$3;
rewrite /zs/show-([0-9,a-z]*).htm$ /zs/show.php?id=$1;
rewrite /sell/zsshow-([0-9,a-z]*).htm$ /zt/zsshow.php?cpid=$1;
#虚拟目录系统不会自动加/,这样在打开展示页是会回到根目录下,导致链接错,所以展厅导航的虚拟目录后都加了/
rewrite /sell$ /zt/zs.php;
rewrite /sell/zs-([0-9,a-z]*).htm$ /zt/zs.php?id=$1;
rewrite /sell/zs-([0-9,a-z]*)-([0-9,a-z,A-Z]*).htm$ /zt/zs.php?id=$1&bigclass=$2;
rewrite /sell/zs-([0-9,a-z]*)-([0-9,a-z,A-Z]*)-([0-9,a-z,A-Z]*).htm$ /zt/zs.php?id=$1&bigclass=$2&smallclass=$3;
rewrite /sell/zs-([0-9,a-z]*)-([0-9,a-z,A-Z]*)-([0-9,a-z,A-Z]*)-([0-9,a-z]*).htm$ /zt/zs.php?id=$1&bigclass=$2&smallclass=$3&page=$4;
rewrite /dl/dl.htm$ /dl/dl.php;
rewrite /dl/([0-9,a-z]*).htm$ /dl/dl.php?page=$1;
rewrite /dl/([0-9,a-z]*).html$ /dl/dl.php?b=$1;
rewrite /dl/([0-9,a-z]*)/([0-9,a-z]*).htm$ /dl/dl.php?b=$1&page=$2;
rewrite /dl/show-([0-9,a-z]*).htm$ /dl/show.php?id=$1;
rewrite /pp/pp.html$ /pp/pp.php;
rewrite /pp/([0-9,a-z]*).htm$ /pp/pp.php?page=$1;
rewrite /pp/([0-9,a-z]*).html$ /pp/pp.php?b=$1;
rewrite /pp/([0-9,a-z]*)/([0-9,a-z]*).htm$ /pp/pp.php?b=$1&page=$2;
rewrite /pp/([0-9,a-z]*)/([0-9,a-z]*).htm$ /pp/pp.php?b=$1&s=$2;
rewrite /pp/([0-9,a-z]*)/([0-9,a-z]*)/([0-9,a-z]*).htm$ /pp/pp.php?b=$1&s=$2&page=$3;
rewrite /pp/show-([0-9,a-z]*).htm$ /pp/show.php?id=$1;
rewrite /brand$ /zt/pp.php;
rewrite /brand/ppshow-([0-9,a-z]*).htm$ /zt/ppshow.php?cpid=$1;
rewrite /brand/pp-([0-9,a-z]*).htm$ /zt/pp.php?id=$1;
rewrite /brand/pp-([0-9,a-z]*)-([0-9,a-z]*).htm$ /zt/pp.php?id=$1&page=$2;
rewrite /job/job.htm$ /job/job.php;
rewrite /job/([0-9,a-z]*).htm$ /job/job.php?page=$1;
rewrite /job/([0-9,a-z]*).html$ /job/job.php?b=$1;
rewrite /job/([0-9,a-z]*)/([0-9,a-z]*).htm$ /job/job.php?b=$1&page=$2;
rewrite /job/([0-9,a-z]*)/([0-9,a-z]*).html$ /job/job.php?b=$1&s=$2;
rewrite /job/([0-9,a-z]*)/([0-9,a-z]*)/([0-9,a-z]*).htm$ /job/job.php?b=$1&s=$2&page=$3;
rewrite /job/show-([0-9,a-z]*).htm$ /job/show.php?id=$1;
rewrite /jobs$ /zt/job.php;
rewrite /jobs/jobshow-([0-9,a-z]*).htm$ /zt/jobshow.php?cpid=$1;
rewrite /jobs/job-([0-9,a-z]*).htm$ /zt/job.php?id=$1;
rewrite /jobs/job-([0-9,a-z]*)-([0-9,a-z]*).htm$ /zt/job.php?id=$1&page=$2;
rewrite /company/company.htm$ /company/company.php;
rewrite /company/([0-9,a-z]*).htm$ /company/company.php?page=$1;
rewrite /company/([0-9,a-z]*).html$ /company/company.php?b=$1;
rewrite /company/([0-9,a-z]*)/([0-9,a-z]*).htm$ /company/company.php?b=$1&page=$2;
rewrite /introduce$ /zt/companyshow.php;
rewrite /introduce/companyshow-([0-9,a-z]*).htm$ /zt/companyshow.php?id=$1;
rewrite /contact$ /zt/contact.php?id=$1;
rewrite /contact/contact-([0-9,a-z]*).htm$ /zt/contact.php?id=$1;
rewrite /zh/zh.htm$ /zh/zh.php;
rewrite /zh/([0-9,a-z]*).htm$ /zh/zh.php?page=$1;
rewrite /zh/([0-9,a-z]*).html$ /zh/zh.php?b=$1;
rewrite /zh/([0-9,a-z]*)/([0-9,a-z]*).htm$ /zh/zh.php?b=$1&page=$2;
rewrite /zh/show-([0-9,a-z]*).htm$ /zh/show.php?id=$1;
rewrite /wangkan/wangkan.htm$ /wangkan/wangkan.php;
rewrite /wangkan/([0-9,a-z]*).htm$ /wangkan/wangkan.php?page=$1;
rewrite /wangkan/([0-9,a-z]*).html$ /wangkan/wangkan.php?b=$1;
rewrite /wangkan/([0-9,a-z]*)/([0-9,a-z]*).htm$ /wangkan/wangkan.php?b=$1&page=$2;
rewrite /wangkan/show-([0-9,a-z]*).htm$ /wangkan/show.php?id=$1;
rewrite /zx/zx.htm$ /zx/zx.php;
rewrite /zx/([0-9,a-z]*).htm$ /zx/zx.php?page=$1;
rewrite /zx/([0-9,a-z]*).html$ /zx/zx.php?b=$1;
rewrite /zx/class/([0-9,a-z]*)$ /zx/class.php?b=$1;
rewrite /zx/([0-9,a-z]*)/([0-9,a-z]*).htm$ /zx/zx.php?b=$1&page=$2;
rewrite /zx/([0-9,a-z]*)/([0-9,a-z]*).html$ /zx/zx.php?b=$1&s=$2;
rewrite /zx/([0-9,a-z]*)/([0-9,a-z]*)/([0-9,a-z]*).htm$ /zx/zx.php?b=$1&s=$2&page=$3;
rewrite /zx/show-([0-9,a-z]*).htm$ /zx/show.php?id=$1;
rewrite /zx/show-([0-9,a-z]*)-([0-9,a-z]*).htm$ /zx/show.php?id=$1&page=$2;
rewrite /special/zt.htm$ /special/zt.php;
rewrite /special/([0-9,a-z]*).htm$ /special/zt.php?page=$1;
rewrite /special/([0-9,a-z]*).html$ /special/zt.php?b=$1;
rewrite /special/class/([0-9,a-z]*)$ /special/class.php?b=$1;
rewrite /special/([0-9,a-z]*)/([0-9,a-z]*).htm$ /special/zt.php?b=$1&page=$2;
rewrite /special/([0-9,a-z]*)/([0-9,a-z]*).html$ /special/zt.php?b=$1&s=$2;
rewrite /special/([0-9,a-z]*)/([0-9,a-z]*)/([0-9,a-z]*).htm$ /special/zt.php?b=$1&s=$2&page=$3;
rewrite /special/show-([0-9,a-z]*).htm$ /special/show.php?id=$1;
rewrite /special/show-([0-9,a-z]*)-([0-9,a-z]*).htm$ /special/show.php?id=$1&page=$2;
rewrite /licence$ /zt/licence.php;
rewrite /licence/licence-([0-9,a-z]*).htm$ /zt/licence.php?id=$1;
rewrite /guestbook$ /zt/liuyan.php;
rewrite /guestbook/liuyan-([0-9,a-z]*).htm$ /zt/liuyan.php?id=$1;
rewrite /zt/show.htm$ /zt/show.php;
rewrite /zt/show-([0-9,a-z]*).htm$ /zt/show.php?id=$1;
rewrite /news$ /zt/news.php;
rewrite /news/$ /zt/news.php;
rewrite /news/news-([0-9,a-z]*).htm$ /zt/news.php?id=$1;
rewrite /news/news-([0-9,a-z]*)-([0-9,a-z]*).htm$ /zt/news.php?id=$1&page=$2;
rewrite /news/newsshow-([0-9,a-z]*).htm$ /zt/newsshow.php?newsid=$1;
rewrite /help.htm$ /one/help.php;
rewrite /link.htm$ /one/link.php;
rewrite /siteinfo-([0-9,a-z]*).htm$ /one/siteinfo.php?id=$1;
rewrite /reg/userreg.htm$ /reg/userreg.php;
rewrite /user/login.htm$ /user/login.php;
location /bbs {
rewrite ^([^\.]*)/topic-(.+)\.html$ $1/portal.php?mod=topic&topic=$2 last;
rewrite ^([^\.]*)/article-([0-9]+)-([0-9]+)\.html$ $1/portal.php?mod=view&aid=$2&page=$3 last;
rewrite ^([^\.]*)/forum-(\w+)-([0-9]+)\.html$ $1/forum.php?mod=forumdisplay&fid=$2&page=$3 last;
rewrite ^([^\.]*)/thread-([0-9]+)-([0-9]+)-([0-9]+)\.html$ $1/forum.php?mod=viewthread&tid=$2&extra=page%3D$4&page=$3 last;
rewrite ^([^\.]*)/group-([0-9]+)-([0-9]+)\.html$ $1/forum.php?mod=group&fid=$2&page=$3 last;
rewrite ^([^\.]*)/space-(username|uid)-(.+)\.html$ $1/home.php?mod=space&$2=$3 last;
rewrite ^([^\.]*)/blog-([0-9]+)-([0-9]+)\.html$ $1/home.php?mod=space&uid=$2&do=blog&id=$3 last;
rewrite ^([^\.]*)/(fid|tid)-([0-9]+)\.html$ $1/index.php?action=$2&value=$3 last;
rewrite ^([^\.]*)/([a-z]+[a-z0-9_]*)-([a-z0-9_\-]+)\.html$ $1/plugin.php?id=$2:$3 last;
if (!-e $request_filename) {
return 404;
}
}