想用 nginx 实现这一个功能,不管请求的路径是什么,始终使用 proxy_pass 指定的路径进行响应
但使用下面的配置时,nginx 会将请求的路径附加到 proxy_pass 中的路径之后
server {
listen 80;
server_name markdown.cnblogs.com;
location / {
proxy_pass http://api.markdown.cnblogs.com/markdown/tohtml;
}
}
相关问题
- How can I prevent my Shiny App from disconnecting
- Can't configure nginx as a proxy for tomcat wi
- How to set Nginx URI to fix empty URI in redirect
- why does connect domain to “Shopify” ask for eithe
- Nginx with Daphne gives 502 Bad Gateway
通过 rewrite + break 解决了