29 lines
983 B
Plaintext
29 lines
983 B
Plaintext
server {
|
|
listen 80;
|
|
server_name localhost;
|
|
root /var/www/web-statics;
|
|
index index.html;
|
|
charset utf-8;
|
|
autoindex off;
|
|
|
|
location = /jskcloud { return 301 /jskcloud/; }
|
|
location = /scck { return 301 /scck/; }
|
|
location = /jskcloud/404.html { internal; }
|
|
location = /scck/404.html { internal; }
|
|
|
|
location ~* ^/(jskcloud|scck)/(?:en/|zh-cn/|zh-hk/)?(?:console|clientarea|admin|cart|login|regist|register|signup|home|finance|account|security|ticket|logout|reset_password|forget_password|shoppingcar)(?:/|\.|$) { return 404; }
|
|
location ~* \.(?:php|htm)$ { return 404; }
|
|
location ~ /\.(?!well-known(?:/|$)) { return 404; }
|
|
location ~* /(?:DEPLOY\.md|nginx\.conf\.example)$ { return 404; }
|
|
|
|
location /jskcloud/ {
|
|
error_page 404 /jskcloud/404.html;
|
|
try_files $uri $uri/ =404;
|
|
}
|
|
location /scck/ {
|
|
error_page 404 /scck/404.html;
|
|
try_files $uri $uri/ =404;
|
|
}
|
|
location / { return 404; }
|
|
}
|