更新时间:2023-02-22 18:43:07
httpd.conf
中除了 127.0.0.1
之外的地址禁止访问你的 Apache 服务器(Apache 的配置文件):
The access to your Apache server is forbidden from addresses other than 127.0.0.1
in httpd.conf
(Apache's config file) :
<Directory "c:/wamp/www/">
Options Indexes FollowSymLinks
AllowOverride all
Order Deny,Allow
Deny from all
Allow from 127.0.0.1
</Directory>
您的 PHPMyAdmin 访问也是如此,配置文件是 phpmyadmin.conf
:
The same goes for your PHPMyAdmin access, the config file is phpmyadmin.conf
:
<Directory "c:/wamp/apps/phpmyadmin3.4.5/">
Options Indexes FollowSymLinks MultiViews
AllowOverride all
Order Deny,Allow
Deny from all
Allow from 127.0.0.1
</Directory>
您可以将它们设置为允许来自所有 IP 地址的连接,如下所示:
You can set them to allow connections from all IP addresses like follows :
AllowOverride All
Order allow,deny
Allow from all