Skip to content

当有两个域名反向代理时,site_url如何设定? #6927

Answered by Simonzhang8
liaoyungchun asked this question in Q&A
Discussion options

You must be logged in to vote

已经成功复现你的情况了,问题就是反代时没有传递正确的host
参考:#726 如果你用的是nginx proxy manager的话需要加上这一句,否则host传递不生效

proxy_set_header X-Forwarded-Host $http_host; 

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
5 replies
@liaoyungchun
Comment options

@Simonzhang8
Comment options

@liaoyungchun
Comment options

@Simonzhang8
Comment options

Answer selected by liaoyungchun
@liaoyungchun
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants