[英]Cannot access xampp htdocs folder from another PC over same network, but can access phpmyadmin
I have xampp installed on my PC. 我的电脑上安装了xampp。 I can access xampp dashboard and PHPmyadmin by entering 192.168.xx on another computer over same network.
我可以通过在同一网络的另一台计算机上输入192.168.xx来访问xampp仪表板和PHPmyadmin。 But when I type in 192.168.xx/folder_name/ where folder_name is folder in htdocs it redirects to localhost/foder_name hence showing object not found error.
但是,当我键入192.168.xx / folder_name /时 ,其中folder_name是htdocs中的文件夹,它将重定向到localhost / foder_name,因此显示未找到对象错误。
What is reason that it is redirecting to my ip to localhost on that computer? 它将我的IP重定向到该计算机上的localhost的原因是什么?
check your firewall for any input with incoming on port 80 ( or for the test turn off firewall ) 检查防火墙是否有端口80输入的任何输入(或测试关闭防火墙)
in xampp look for http.conf (configuraton file for apache) 在xampp中寻找http.conf(Apache的配置文件)
look for something like that : order deny,allow deny from all allow from 127.0.0.1 寻找类似的东西:从127.0.0.1开始,拒绝,允许全部拒绝
remove "deny from all" and reload apache 删除“全部拒绝”并重新加载apache
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.