Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/apache/9.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/.htaccess/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
删除apache身份验证_Apache_.htaccess - Fatal编程技术网

删除apache身份验证

删除apache身份验证,apache,.htaccess,Apache,.htaccess,我需要从我的web服务器上删除Apache身份验证。有人把它交给我,我真的很喜欢apache和PHP。下面是配置文件: /etc/apache2/site available/testing.local.conf 大宗报价 服务器管理员admin@domain.com ServerName testing.local DocumentRoot /var/www/testing ServerAlias www.testing.local

我需要从我的web服务器上删除Apache身份验证。有人把它交给我,我真的很喜欢apache和PHP。下面是配置文件:

  • /etc/apache2/site available/testing.local.conf
大宗报价 服务器管理员admin@domain.com

        ServerName testing.local
        DocumentRoot /var/www/testing
        ServerAlias www.testing.local
        AcceptPathInfo On
        AddOutputFilterByType DEFLATE text/html text/plain text/xml
        <Directory />
                Options FollowSymLinks
                AllowOverride None
        </Directory>

        <Directory /var/www/testing>
                Options Indexes FollowSymLinks MultiViews
                AllowOverride All
                Order allow,deny
                allow from all
        </Directory>

        ErrorLog /var/log/apache2/testing.local_error.log

        # Possible values include: debug, info, notice, warn, error, crit,
        # alert, emerg.
        LogLevel warn
        CustomLog /var/log/apache2/testing.local_access.log combined
        ServerSignature On

</VirtualHost>
apache上启用了两个模块:

  • 重写
  • 作者文摘
我想在不输入用户名/密码的情况下直接进入主页。

更改

Require valid-user

然后重新启动web服务器

apache2ctl restart

(有其他方法可以重新启动服务器)

如果这还不够,请在以“Require”或“Auth”开头的行前面加一个“#”

Require valid-user

然后重新启动web服务器

apache2ctl restart

(有其他方法可以重新启动服务器)

如果这还不够,在以“Require”或“Auth”开头的行前面加一个“#”,只需注释掉Auth(任何内容)行,并要求使用有效的用户行即可。然后重新加载apache

顺便说一句。似乎您不是配置此服务器的人。

只需注释掉身份验证(任何内容)行,并要求使用有效的用户行即可。然后重新加载apache


顺便说一句,您似乎不是配置此服务器的人。

从htaccess中删除所有以
Auth…
开头的行和
Require…
行。然后开始阅读Apache文档,这样您至少可以得到您正在做的基本图形…从htaccess中删除所有以
Auth…
开头的行和
Require…
行。然后开始阅读Apache文档,这样您至少可以获得您正在做的基本图形…
apachectl configtest
apache2ctl restart
apachectl restart