我遇到了绑定问题。如果我想解析区域文件中的任何域名。它工作正常。但是,当我尝试解析不属于区域文件的任何内容时。我知道正在转发的实际 DNS 服务器工作正常。但不知何故 bind9 无法使用它们。/etc/bind/named.conf.options 的内容是:
options {
directory "/var/cache/bind";
forwarders {
131.181.127.32;
131.181.59.48;
};
dnssec-validation auto;
auth-nxdomain no; # conform to RFC1035
listen-on-v6 { any; };
};
Run Code Online (Sandbox Code Playgroud)
我也尝试过只使用一个 IP 地址,但它仍然不起作用。/etc/bind/named.conf 的内容也是:
include "/etc/bind/named.conf.options";
include "/etc/bind/named.conf.local";
include "/etc/bind/named.conf.default-zones";
Run Code Online (Sandbox Code Playgroud)
所以包含选项文件没有问题。有什么建议可以解决这个问题吗?
我正在使用 Ubuntu 12.04 并尝试在带有 apache2 服务器的页面上使用 .htaccess。我的 .htaccess 文件如下所示:
AuthType Basic
AuthName "Password Required"
AuthBasicProvider file
AuthUserFile /home/janeb/.htpasswd
require valid-user
Run Code Online (Sandbox Code Playgroud)
/home/janeb/.htpasswd 文件是:
inb351:$apr1$Ya4tzYvr$KCs3eyK1O2/c7Q9zRcwn..
Run Code Online (Sandbox Code Playgroud)
和 /etc/apache2/sites-available/default 文件是:
UserDir public_html
<Directory ~ "public_html/.*">
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>
Run Code Online (Sandbox Code Playgroud)
我重新启动了apache。我尝试更改require valid-user为require user inb351. 仍然没有运气。我也试过AllowOverride用AuthConfig和AuthConfig Indexes。所以我不知道还能做什么,是的,我尝试过的每一步都重新启动了 apache。
编辑:确切的默认文件是:
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /var/www
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews …Run Code Online (Sandbox Code Playgroud)