This is a rather hard question to ask as I am not sure what is is called. Basically I own a license for a product, which is licensed to one of my domains (eg. www.mysite.com). The problem is I need to test things locally before I make changes on my public website but I can't install it on my localhost because its Zend encrypted and only works on one domain name. I basically want my localhost server to believe that "www.mysite.com" is located on my localhost instead of trying to connect to it on the internet. Is this possible? I know it was with Windows, but I can't seem to find how to do this with Linux.


  • Theyh don't offer a development license you can install? That would be very strange. Jan 20 '10 at 12:51

You could put a line in your /etc/hosts like this: www.mysite.com

If you are using Apache, you want to make a VirtualHost called "www.mysite.com" and then add "www.mysite.com" to /etc/hosts such as localhost www.mysite.com

Then hit http://www.mysite.com in your browser and the virual host should handle the request locally. See this Apache documentation for more details.


If I understand correctly, all you have to do is to edit /etc/hosts. You should add that line: mysite.com www.mysite.com

Then www.mysite.com will be resolved to which is your machine.


not sure about linux but try updating your hosts file to add to point to Your.Public.Domain.You.Want.ToSpoof


You could temporarily override the domain name in your /etc/hosts file on your linux box. If you assign the domain for the www.mysite.com to be your localhost IP, it would reroute all traffic.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy