0
我已经密码在使用的Apache2与mod_auth_form在/etc/apache2/apache2.conf中配置保护我在Linux Mint的网页:只允许访问登陆页面目录阿帕奇
<Directory "/var/www/html">
AuthFormProvider file
AuthType form
AuthName "Reserved Area"
Session On
SessionCookieName session path=/
require valid-user
AuthFormLoginRequiredLocation "http://localhost/login.php"
# This is the login page
ErrorDocument 401 /login.php
# This is the file containing users login data
AuthUserFile /var/www/html/users/users
</Directory>
当未经授权的用户试图在他将被重定向到登录页面“的login.php”网页访问的东西,但他将不能访问此页面要么让我尝试添加:
<Location /var/www/html/login.php>
Order Allow,Deny
Allow from all
</Location>
但问题依然存在,它只是试图无限重定向到登录页面。什么使用户只能访问登录页面,而不能访问网站上的其他内容?