php - Magento only responding from public network. Local network gives 404 -


when run curl www.example.com outside web server, goes fine. when internal server shell, receive 404 (the domain not resolving locally).

this problem affecting api too.

how can solve this? server ubuntu 12.04, apache 2.2, php 5.3.10, vitualmin latest version.

edit: test , full output:

curl http://www.example.com/index.php/api/v2_soap?wsdl=1

output:

<!doctype html public "-//ietf//dtd html 2.0//en">

<html><head>

<title>404 not found</title>

</head><body>

<h1>not found</h1>

<p>the requested url /index.php/api/v2_soap not found on server.</p>

</body></html>

i guess can not ping domain within shell?

if dns problem , domain doesn't resolve correctly localhost simplest way solve problem add line like

127.0.0.1       www.example.com 

to local hosts file in /etc/hosts.


Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

Python ctypes access violation with const pointer arguments -