about Nginx setting
Ubuntu 關閉 response headers 裡 server tag 會吐出 Server 版本 修改 /etc/nginx/nginx.conf 將 #server_tokens off; 改成 server_tokens off; use url rewrite to remove slash of last url add this setting rewrite ^/(.*)/$ /$1 permanent; put it into server { rewrite ^/(.*)/$ /$1 permanent; }