【发布时间】:2019-02-16 13:19:51
【问题描述】:
我在我的 apache 中定义了一个代理,有任何方法可以禁用子路径的安全性。
在配置中我有/app pointing 到端口localhost:8000,我希望/app/public 指向localhost:8000/public。
这是我的配置文件(所有路径都具有安全性):
<VirtualHost *:80>
ProxyPreserveHost On
ProxyPass /app http://localhost:8000
ProxyPassReverse /app http://localhost:8000
ServerName example.com
<Proxy *>
Order deny,allow
Allow from all
Authtype Basic
Authname "Password Required"
AuthUserFile /etc/apache2/.htpasswd
Require valid-user
</Proxy>
</VirtualHost>
【问题讨论】:
标签: apache proxy apache2 reverse-proxy configuration-files