How can I test a site that uses one or more static domains for serving images locally?

e.g.

  • domain.tld with images servered from static.domain.tld
  • Local working copy of the site on WAMP checked out from SVN: URLs will be pointing at static.domain.tld rather than static.domain.local
link|improve this question

80% accept rate
Looks a question for Server Fault serverfault.com – Travis G Apr 9 '10 at 11:30
1  
Belongs on ServerFault. The basic idea is to use your hosts file to map all the domains to 127.0.0.1, then use name-based VirtualHosts (httpd.apache.org/docs/2.2/vhosts/name-based.html) to distinguish in Apache. – Matthew Flaschen Apr 9 '10 at 11:31
What is a static domain actually? – Dercsár Apr 9 '10 at 11:41
feedback

migrated from stackoverflow.com Apr 9 '10 at 11:46

This question came from our site for professional and enthusiast programmers.

1 Answer

up vote 2 down vote accepted

I'm not exactly sure what you're asking, but you could always put entries in your hosts file if it's a question of resolving static.domain.tld, domain.tld, etc.

%systemroot%\system32\drivers\etc\hosts:

static.domain.tld   127.0.0.1
someotherstatic.domain.tld   127.0.0.1
link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.