无法从本地主机以外的任何地方访问magento网站 [英] Unable to access magento site from anywhere but localhost

查看:103
本文介绍了无法从本地主机以外的任何地方访问magento网站的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在本地主机上有两个应用程序"myapp"和"magento",分别位于192.168.1.110/myapps(A)和192.168.1.110/magento(B). (A)是我编写的一个应用程序,可以被我们局域网上的任何计算机访问.但是,除了我的计算机localhost之外,任何人都无法访问(B).

I have two applications "myapp" and "magento" on my localhost at 192.168.1.110/myapps (A) and 192.168.1.110/magento (B). (A) is an app that I wrote and can be accessed by any computer on our LAN. However, (B) cannot be accessed by anyone except on my computer, localhost.

我没有对Apache或Magento进行任何特殊的端口打开或阻塞操作,因此对此感到困惑.有人对什么地方可能出问题以及我应该去哪里有任何见识吗? TIA!

I haven't done any special port-opening or blocking on Apache or Magento, so I'm puzzled by this. Does anybody have any insight on what might be wrong and where I should look? TIA!

在Internet Explorer中,该错误只是一条普通消息,显示无法显示此网页",好像它甚至无法识别该地址.

in Internet Explorer, the error is just a generic message that says "cannot display this webpage" as if it cannot even recognize the address.

我按照建议尝试了Firebug.这就是我在网络"标签下看到的内容. URL下的"GET Magento",状态下的"ABORTED".但是,当我用鼠标悬停时,它显示 http://127.0.0.1/magento ,即本地主机地址..这是否是 http://192.168.1.110/magento 重新路由到

EDIT 2: I tried Firebug as suggested. This is what I'm seeing under the Net tab. "GET Magento" under URL and "ABORTED" under status. When I hover over with mouse cursor, however, it displays http://127.0.0.1/magento, which is the localhost address.. Is this being http://192.168.1.110/magento being rerouted to http://127.0.0.1/magento?

推荐答案

检查Magento中的基本URL设置.听起来您的基本URL设置为 http://127.0.0.1/magento .当您转到 http://192.168.1.110/magento 时,将调用Magento,但它将重定向到 http://127.0.0.1/magento 在远程计算机上不起作用.您应该将Magento中的基本URL更改为 http://192.168.1.110/magento .

Check the base URL settings in Magento. It sounds like your base URL is set to http://127.0.0.1/magento. When you go to http://192.168.1.110/magento Magento will be called, but it will redirect to http://127.0.0.1/magento which does not work on the remote machine. You should change the base URL in Magento to http://192.168.1.110/magento.

这篇关于无法从本地主机以外的任何地方访问magento网站的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆