[英]How should nested routes leading to another nested route be structured in Angular? UI.Router
[英]Meteor, Angular routes, Nginx and SSL - how to route /path to another server with rewrite
我有:
如何“重寫”doma.in/blog到博客,但使用相同的URL? (沒有重定向)。
試試這個nginx配置:
location ^/blog {
rewrite /blog(.*) $1 break; #cut the /blog path
proxy_pass http://blog.com:8000; #then pass it to the blog domain/port
proxy_redirect off; #without redirecting
proxy_buffering off; #or buffering
}
至於角度,它僅僅需要避免/跳過路線,如所討論這里對SO
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.