Unable to access magento site from anywhere but lo

2019-08-18 11:25发布

问题:

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.

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!

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

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?

回答1:

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.