This repository has been archived by the owner on Oct 30, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathflowz.conf
112 lines (81 loc) · 2.36 KB
/
flowz.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
server {
listen 80;
server_name ~^(www\.)?(?<sname1>.+?)\.(?<sname2>.+?).flowz.com$;
root /var/www/html/websites/$sname1/$sname2/public;
index index.html index.htm index.php;
charset utf-8;
location / {
try_files $uri $uri/ /index.html?$query_string;
}
location ~* \.(jpg|jpeg|png|gif|ico|css|js|json)$ {
expires 365d;
}
location = /favicon.ico { access_log off; log_not_found off; }
location = /robots.txt { access_log off; log_not_found off; }
access_log /var/log/nginx/$sname1-access.log;
error_log /var/log/nginx/wildcard-error.log debug;
error_page 404 /index.html;
sendfile off;
location ~ /\.ht {
deny all;
}
}
server {
listen 80;
server_name ~^(www\.)?(?<sname1>.+?)\.(?<sname2>.+?).flowzdigital.com$;
root /var/www/html/websites/$sname1/$sname2/public;
index index.html index.htm index.php;
charset utf-8;
location / {
try_files $uri $uri/ /index.html?$query_string;
}
location ~* \.(jpg|jpeg|png|gif|ico|css|js|json)$ {
expires 365d;
}
location = /favicon.ico { access_log off; log_not_found off; }
location = /robots.txt { access_log off; log_not_found off; }
access_log /var/log/nginx/$sname1-access.log;
error_log /var/log/nginx/wildcard-error.log debug;
error_page 404 /index.html;
sendfile off;
location ~ /\.ht {
deny all;
}
}
server {
listen 80;
server_name ~^(www\.)?(?<sname1>.+?)\.(?<sname2>.+?).flowzstaging.tk$;
root /var/www/html/websites/$sname1/$sname2/public;
index index.html index.htm index.php;
charset utf-8;
location / {
try_files $uri $uri/ /index.html?$query_string;
}
location ~* \.(jpg|jpeg|png|gif|ico|css|js|json)$ {
expires 365d;
}
location = /favicon.ico { access_log off; log_not_found off; }
location = /robots.txt { access_log off; log_not_found off; }
access_log /var/log/nginx/$sname1-access.log;
error_log /var/log/nginx/wildcard-error.log debug;
error_page 404 /index.html;
sendfile off;
location ~ /\.ht {
deny all;
}
}
server {
listen 80 ;
server_name supplier.flowzdigital.com www.supplier.flowzdigital.com;
root /var/www/html/websites/5afc0a5f21c6d40015383616/94b9ef291f134f22bfeff63ce737529c/public/;
index index.html;
location / {
try_files $uri $uri/ =404;
}
#static file 404's aren't logged and expires header is set to
#maximum age
location ~* \.(jpg|jpeg|gif|css|png|js|ico|html)$ {
access_log off;
expires 30d;
}
}