我需要从我的 Web 服务器中删除 Apache 身份验证。有人把它交给我,而我对 apache 和 PHP 实在是菜鸟。这里是配置文件:
Blockquote ServerAdmin admin@domain.com
Run Code Online (Sandbox Code Playgroud)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)RewriteEngine On RewriteRule ^([^.]+)$ index.php/$1 AuthType Digest AuthName "ggdev" …