MediaTemple DV Server: 403 Forbidden from Curl
I just upgraded to Mediatemple DV and set everything up–so the websites are working. However, from the command line, using curl or wget, I would get 403 errors and the apache CentOS “test page.” Turns out that the fix is a small change to /etc/hosts:
127.0.0.1 localhost localhost.localdomain
205.186.145.203 elliottback.com elliottback
Previously, it was mapping the main domain to localhost, and for whatever reason, that made the access from the server try to access the default root at /var/www/html.
| This entry was posted on Saturday, May 1st, 2010 at 8:12 pm and is tagged with apache centos, test page, localhost, hosts. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback. |
