所以我最終得到了我的域名重定向工作。將domain.com/path重定向到另一臺Apache服務器
我目前有3個Apache VM。一個是「網絡服務器」其他有實際的網站和其他主機zoneminder
如果您訪問的domain.com你的網站,並可以瀏覽左右,但...
如果我手動型domain.com/zm試圖訪問zoneminder
它redirecets domain.com/zm在我的遠程瀏覽器http://192.168.1.42:443/media
我環顧四周,但民族問題似乎無論是複雜或不夠複雜。
CONFIGS:
網絡服務器(Apache的):
<VirtualHost *:80>
ServerName www.domain.com
RedirectPermanent/http://domain.com
</VirtualHost>
<VirtualHost *:80>
ServerName domain.com
ProxyRequests Off
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
ProxyPass/http://192.168.1.42:80/
ProxyPassReverse/http://192.168.1.42:80/
<Location />
Order allow,deny
Allow from all
</Location>
</VirtualHost>
網站(阿帕奇):
<VirtualHost *:80>
ServerName domain.com
DocumentRoot /var/www/html
LogLevel warn
ErrorLog ${APACHE_LOG_DIR}/fishingparty.log
CustomLog ${APACHE_LOG_DIR}/fishingparty-access.log combined
</VirtualHost>