server { listen 80; server_name scck.net www.scck.net; root /var/www/scck; index index.html; charset utf-8; autoindex off; error_page 404 /404.html; location = /404.html { internal; } location ~* ^/(?:en/|zh-cn/|zh-hk/)?(?:console|clientarea|admin|cart)(?:/|\.|$) { return 404; } location ~* ^/(?:en/|zh-cn/|zh-hk/)?(?: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 / { try_files $uri $uri/ =404; } }