0

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.

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).

Is it 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.

Linger
  • 251
  • 3
  • 9
  • 25
theonlylos
  • 121
  • 4

1 Answers1

2

Just add a line to your hosts file. If you're on a Unix-y system, that file is /etc/hosts. If your server IP was 10.0.0.10 and the client domain name is example.com, then you'd add this line:

10.0.0.10 example.com

If you're on windows, the location is %SystemRoot%\system32\drivers\etc\hosts.

EEAA
  • 109,363
  • 18
  • 175
  • 245