Walless pku隐藏blog怎么做到的
-
我也给自己的做一个
-
直接用 nginx 写规则就可以 了.
server { server_name ... listen ... charset utf-8; location = / { return 301 https://189854.xyz/verify; } location /blog { alias /root/blog/_site; } location ~ ^/(verify$|verify/$|clash|profile).* { proxy_pass http://127.0.0.1:9011; proxy_set_header Host $host; proxy_set_header X-real-ip $remote_addr; } location / { return 404; } }