![](/img/trans.png)
[英]Reverse proxy from Nginx to Dockerized Wordpress is causing an infinite redirect loop
[英]Apache reverse proxy and infinite loop
我有服務器A和B.服務器A托管主站點www.example.com,服務器B使用子域test.example.com托管另一個站點。 在服務器AI上設置反向代理,以便可以通過www.example.com/test訪問test.example.com上運行的Wordpress站點
現在,我希望子域test.example.com對用戶來說是“不可見的”,因此對test.example.com的請求將重定向到www.example.com/test。 顯然,這讓我陷入了無限循環。 我嘗試了不同的東西來打破循環無濟於事。 有沒有辦法做到這一點?
<VirtualHost *:80>
ServerName test.example.com
RedirectMatch permanent ^/(.*) www.example.com/test
</VirtualHost>
添加上面的apache conf並重啟apache。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.