How to emulate a domain name - Webmin Setup
        Posted  
        
            by 
                theonlylos
            
        on Server Fault
        
        See other posts from Server Fault
        
            or by theonlylos
        
        
        
        Published on 2012-03-20T22:54:50Z
        Indexed on 
            2012/03/20
            23:32 UTC
        
        
        Read the original article
        Hit count: 263
        
I am currently working on a client project where they are using a custom CMS which relies on having the specific domains configured for it to work properly.
So in English, that means that when I try running the site on my test environment, the entire website fails because it isn't located on the primary domain (and I'm pretty sure the domain is hard coded since there's no control panel to adjust the file locations).
Anyway what I wanted to ask is whether it is possible to use my test environment URL but have Apache and the DNS emulate my clients website URL locally, rather than calling the actual name servers.
Right now I have a virtual host setup in Apache but I am not sure where to go from there.
Any assistance is greatly appreciated.
© Server Fault or respective owner