我想设置反向代理,因此http://www.carolinatransparency.com/form用于提供在http://localhost.com:5000上运行的节点应用。
问题是似乎存在某种冲突,因为carolinatransparency.com的.conf文件也处理/ form路由并且不允许反向代理。有没有办法在carolinatransparency.com.conf
ServerName www.carolinatransparency.com
ServerAlias carolinatransparency.com
ServerAdmin yasin@generatedesign.com
DocumentRoot /var/www/carolinatransparency.com
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>
form.votetracker.com.conf
<VirtualHost *:80>
ProxyPreserveHost On
ProxyPass /form http://localhost:5000
ProxyPassReverse /form http://localhost:5000
ServerName http://www.carolinatransparency.com/form/
</VirtualHost>