所以我最终得到了我的域名重定向工作。将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>