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

I'm sad to have to ask this question, but I'm not even sure of what to call what I'm trying to do, so Google isn't much help.

I'm doing some work on a company website from outside the company's network. Some of the assets on the site are loaded from a domain that is only visible from inside the company's network (QA) but there is a mirror of those assets on a public domain. How can I mask or forward requests to this internal domain (e.g.: http://qa.example.com/image.png) to the mirroring external domain on my laptop? (e.g. http://www.example.com/image.png). This is similar to what can be done using the host file for IP addresses. The reason I want to do this is so that the images aren't broken as I work on the site outside the office, and changing all the references in the web files is not an option. I'm on OSX Lion.

Again, sorry, dummy question, please don't flame :S

Thanks!

share|improve this question

1 Answer 1

up vote 1 down vote accepted

Yes, if the mirror to qa.example.com has and Internet IP address, then a local host file entry on your machine will accomplish what you are seeking.

share|improve this answer
    
Wow.. much simpler problem than I thought it was. Thank you! –  Fo. Jul 24 '11 at 23:12
    
Not a problem. Glad you got what you need. –  user48838 Jul 25 '11 at 13:19

Your Answer

 
discard

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

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