需要以下請:阿帕奇(80端口)和IIS(8080端口)
http://subdomain.test.co.uk/newsite --> redirect to apache port 80
http://subdomain.test.co.uk --> redirect to iis on port 8080
是否更改IIS上運行8080和兩個站點運行正常使用本地主機。
同時啓用在httpd.conf以下
LoadModule proxy_http_module modules/mod_proxy_http.so
LoadModule rewrite_module modules/mod_proxy.so
然後添加以下內容的httpd-vhosts.conf
<VirtualHost *:80>
ServerName subdomain.test.co.uk
ServerAlias *
ProxyPreserveHost On
ProxyPass/http://127.0.0.1:8080/
</VirtualHost>
但當轉到域沒有內容加載 - 請指教TQ
這對內容不加載意味着什麼?當然,你會得到一些HTTP錯誤和一些日誌條目。 – covener
目標和術語有點可疑。如果你想重定向'重定向'標記可能是有用的,但你似乎使用代理模塊...可能值得檢查Apache訪問/錯誤日誌。 –