我想通过例如 example.com/halo的方式去访问部署的halo,但是总是会有404的情况发生,即使是使用了nginx做反向代理也没用和重写/halo路径也没用
location /halo {
rewrite ^/halo(.*)$ \$1 break;
proxy_pass http://127.0.0.1:8080;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}