Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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
share|improve this question

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

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

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

1 Answer 1

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
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.