小编use*_*200的帖子

删除apache认证

我需要从我的 Web 服务器中删除 Apache 身份验证。有人把它交给我,而我对 apache 和 PHP 实在是菜鸟。这里是配置文件:

  • /etc/apache2/site-available/testing.local.conf

Blockquote ServerAdmin 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>
Run Code Online (Sandbox Code Playgroud)
  • .htaccess
RewriteEngine On
RewriteRule ^([^.]+)$ index.php/$1
AuthType Digest
AuthName "ggdev" …
Run Code Online (Sandbox Code Playgroud)

apache .htaccess

2
推荐指数
1
解决办法
9624
查看次数

标签 统计

.htaccess ×1

apache ×1