Apache反向代理服务节点

时间:2018-02-25 18:52:25

标签: apache reverse-proxy httpd.conf mod-proxy proxypass

我想设置反向代理,因此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>

0 个答案:

没有答案