Control Web Panel

WebPanel => Installation => Topic started by: driftwood on August 01, 2019, 03:12:51 PM

Title: Viewing Web Content on Private IP
Post by: driftwood on August 01, 2019, 03:12:51 PM
My main server has served me well for 5 years now - I have ten wordpress sites on it.

I'm about to move house so thought it an ideal time to update the server. So I've copied all the data on to an new install of CWP on a new machine, I've imported the databases and create all the domains.

However I want to test the wordpress sites work before I switch the IP address to the public IP. I want everything right before I do this switch. So any advice on how I can view these site on the local network IP address?
Title: Re: Viewing Web Content on Private IP
Post by: Tcap on August 13, 2019, 05:14:20 PM
http://ipaddress/~username/
Title: Re: Viewing Web Content on Private IP
Post by: Igor S. on August 29, 2019, 11:55:42 AM
Hi.
You can use file hosts at your computer. 
Windows - %Windows%\system32\drivers\etc\hosts
Linux - /etc/hosts
MacOS - /etc/hosts
Just add to the file:
Code: [Select]
server_ip domain-name www.domain-namewhere server_ip is the server IP address and domain-name is the website name.