-
Notifications
You must be signed in to change notification settings - Fork 17
/
nginx-vhosts.conf
189 lines (149 loc) · 4.27 KB
/
nginx-vhosts.conf
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
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
# egift.org
server {
listen 8080;
listen 127.0.0.10:8080;
# server_name www.egift.org www.egift.net;
server_name ~^www\.egift\.(io|net|org)$;
rewrite ^(.*) http://egift.org$1 permanent;
}
server {
listen 8080;
listen 127.0.0.10:8080;
# server_name egift.org egift.net;
server_name ~^egift\.(io|net|org)$;
# root directive should be global
root c:/wamp/www/egift/app/webroot;
access_log logs/egift-access.log main;
error_log logs/egift-error.log;
location / {
try_files $uri $uri/ /index.php?$uri&$args;
}
# location ~ \.php$ {
# proxy_pass http://127.0.0.1:80;
# }
location ~ \.php$ {
try_files $uri = 404;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
}
# cakesky.tn
server {
listen 8080;
listen 127.0.0.15:8080;
# server_name www.cakerfid.org www.egift.net;
server_name ~^www\.cakesky\.(io|tn|net|org)$;
rewrite ^(.*) http://cakesky.tn$1 permanent;
}
server {
listen 8080;
listen 127.0.0.15:8080;
# server_name cakerfid.org cakerfid.net;
server_name ~^cakesky\.(io|tn|net|org)$;
# root directive should be global
root c:/wamp/wwww/cakesky/app/webroot;
access_log logs/pma-access.log main;
error_log logs/pma-error.log;
location / {
try_files $uri $uri/ /index.php?$uri&$args;
}
# location ~ \.php$ {
# proxy_pass http://127.0.0.1:80;
# }
location ~ \.php$ {
include fastcgi_params;
try_files $uri = 404;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}
}
# cakerfid.tn
server {
listen 8080;
listen 127.0.0.15:8080;
# server_name www.cakerfid.org www.egift.net;
server_name ~^www\.cakerfid\.(io|tn|net|org)$;
rewrite ^(.*) http://cakerfid.tn$1 permanent;
}
server {
listen 8080;
listen 127.0.0.15:8080;
# server_name cakerfid.org cakerfid.net;
server_name ~^cakerfid\.(io|tn|net|org)$;
# root directive should be global
root h:/cakephp/htdocs/cakerfid/app/webroot;
access_log logs/cakerfid-access.log main;
error_log logs/cakerfid-error.log;
location / {
try_files $uri $uri/ /index.php?$uri&$args;
}
# location ~ \.php$ {
# proxy_pass http://127.0.0.1:80;
# }
location ~ \.php$ {
try_files $uri = 404;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
}
# cakecms.tn
server {
listen 8080;
listen 127.0.0.14:8080;
server_name "~^((www|\\w{1,3})\.)?cakecms\.(io|tn|net|org)$";
# root directive should be global
root h:/cakephp/htdocs;
access_log logs/cakecms-access.log main;
error_log logs/cakecms-error.log;
location / {
try_files $uri $uri/ /index.php?$uri&$args;
autoindex on; ## enable 'file browser' mode
}
# Limiting the Bandwidth
#
large_client_header_buffers 4 20k;
location /download {
alias c:/Downloads;
autoindex on; ## enable 'file browser' mode
limit_rate_after 100k;
limit_rate 20k;
}
# location ~ \.php$ {
# proxy_pass http://127.0.0.1:80;
# }
location ~ \.php$ {
include fastcgi_params;
try_files $uri = 404;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}
}
# pma.tn
server {
listen 8080;
listen 127.0.0.12:8080;
server_name "~^((www|\\w{1,3})\.)?pma\.(io|tn|net|org)$";
# root directive should be global
root c:/wamp/www/3g/phpMyAdmin-4.4.4-all-languages;
access_log logs/pma-access.log main;
error_log logs/pma-error.log;
location / {
try_files $uri $uri/ /index.php?$uri&$args;
}
# location ~ \.php$ {
# proxy_pass http://127.0.0.1:80;
# }
location ~ \.php$ {
include fastcgi_params;
try_files $uri = 404;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}
}