Apache http服务器允许,拒绝


0

我使用apache http server 2.4.4进行负载均衡以及tomcat 7.0。

我在我的tomcat下托管了2个应用程序,例如app1和app2。

我想要实现的是app1我想只允许来自内部网的某些ips访问它。

我将以下代码添加到我的httpd.conf文件中。

DocumentRoot "C:\Program Files\Apache Software Foundation\Tomcat 7.0\webapps\scm"
<Directory "C:\Program Files\Apache Software Foundation\Tomcat 7.0\webapps\app1">
    Order Deny,Allow
    Deny from some_ip
</Directory>

我仍然无法限制访问。我启用了模块mod_authz_host。请指导我。

Answers:


By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.