Server refusing access from every host except itself

Posted by mezamashiman on Server Fault See other posts from Server Fault or by mezamashiman
Published on 2010-05-18T02:27:35Z Indexed on 2010/05/18 2:31 UTC
Read the original article Hit count: 239

Filed under:
|

I have media content on a hosted server that I want to be accessed by another domain.

In the configuration file, even if I "Allow from all," all hosts except itself will fetch the hosting company's generic landing page, which puzzles me.

I test it with curl, with the command:

curl -H "Host: anything.com" http://mydomain.com

and it just shows the hosting company's page.

If I do:

curl -H "Host: mydomain.com" http://mydomain.com

it will show my content.

How do I allow other hosts to access my content? I thought it would work with "Allow" in .htaccess, but it doesn't.

© Server Fault or respective owner

Related posts about server

Related posts about hosts