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.