从网络中的另一台计算机连接到本地主机 [英] Connect to localhost from another computer in network
问题描述
我已经在一台计算机上安装了 WAMP,我想从另一台计算机连接到 phpmyadmin.当我在浏览器中输入 192.168.1.2/localhost 时,我收到以下消息:
I have installed WAMP on one computer, and I want to connect to the phpmyadmin from another one. When I type, in a browser, 192.168.1.2/localhost i got following message:
禁止您无权访问此服务器上的/localhost.
Forbidden You don't have permission to access /localhost on this server.
我在 Apache 中更改了这一行:
I have changed this line in Apache:
<Directory />
Options FollowSymLinks
AllowOverride None
Order deny,allow
Allow from all * from deny from all
</Directory>
我该如何解决这个问题?
How can I fix this?
推荐答案
你应该在没有 localhost
的情况下尝试.因此,如果您在本地主机上以 localhost:8080/phpmyadmin
身份访问 phpmyadmin,那么您应该执行 192.168.1.2:8080/phpmyadmin
You should try it without localhost
. So if you access phpmyadmin on localhost as localhost:8080/phpmyadmin
then you should do 192.168.1.2:8080/phpmyadmin
更新:
更改文件内容
c:\wamp\alias\phpmyadmin.conf
以下:
<Directory "c:/wamp/apps/phpmyadmin3.4.5/">
Options Indexes FollowSymLinks MultiViews
AllowOverride all
Order Deny,Allow
Allow from all
</Directory>
这篇关于从网络中的另一台计算机连接到本地主机的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!