commit
This commit is contained in:
38
nginx.conf
Normal file
38
nginx.conf
Normal file
@@ -0,0 +1,38 @@
|
||||
server {
|
||||
listen 6070;
|
||||
server_name _;
|
||||
|
||||
root /usr/share/nginx/html;
|
||||
index index.html;
|
||||
charset utf-8;
|
||||
|
||||
add_header X-Content-Type-Options "nosniff" always;
|
||||
|
||||
location = / {
|
||||
try_files /www.mewedding.vn/index.html =404;
|
||||
}
|
||||
|
||||
location = /index.html {
|
||||
try_files /www.mewedding.vn/index.html =404;
|
||||
}
|
||||
|
||||
location /w.ladicdn.com/ {
|
||||
try_files $uri =404;
|
||||
expires 30d;
|
||||
add_header Cache-Control "public, max-age=2592000, immutable";
|
||||
}
|
||||
|
||||
location /www.mewedding.vn/source/ {
|
||||
try_files $uri =404;
|
||||
expires 30d;
|
||||
add_header Cache-Control "public, max-age=2592000, immutable";
|
||||
}
|
||||
|
||||
location /www.mewedding.vn/ {
|
||||
try_files $uri $uri/ /www.mewedding.vn/index.html;
|
||||
}
|
||||
|
||||
location / {
|
||||
try_files $uri $uri/ /www.mewedding.vn/index.html;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user