10 Nov

How to access a site temporarily without the Tide (~) sign or pointing nameserver?

As we have mod_userdir protection for a few servers, clients hosted on those servers will not be view website using tide(~) sign. So, this knowledgebase will guide a secondary method to view the site without the tide(~) sign. mod_userdir protection is enabled for security reason.

Browse the following directory in your C Drive >> Windows >> System32 >> Drivers >> Etc >> Edit the file named “hosts” with a notepad.

By default, there should be a line like this:

“127.0.0.1 localhost”

Go to the next line and add this:

104.156.55.184 aptcom.info
104.156.55.184 www.aptcom.info

Now note, replace aptcom.info with your own domain and change 104.156.55.184 with the IP allocated for your account. To find which IP is allocated for your account, login to your cPanel, and from the left or right menu, find “Shared IP address” or “Dedicated IP address”. Another way, you can find this out by going to WHM >> List Accounts >> Search yourdomain.com and the IP listed.

Save the file and try pinging your domain. It should point to the IP you listed in hosts file. And if you try to browse your site now, it should go to our server or the IP you listed in hosts file.

Here is how you can do this on most common OS;

Windows 10, Windows 8, Windows 7, and Windows Vista use User Account Control (UAC), so Notepad must be run as Administrator.

For Windows 10 and 8

Press the Windows key.
Type Notepad in the search field.
In the search results, right-click Notepad and select Run as administrator.
From Notepad, open the following file: c:\Windows\System32\Drivers\etc\hosts
Make the necessary changes to the file.
Click File > Save to save your changes.

For Windows 7 and Vista

Click Start > All Programs > Accessories.
Right-click Notepad and select Run as administrator.
Click Continue on the Windows needs your permission UAC window.
When Notepad opens, click File > Open.
In the File name field, type C:\Windows\System32\Drivers\etc\hosts.
Click Open.
Make the necessary changes to the file.
Click File > Save to save your changes.

Windows NT, Windows 2000, and Windows XP

Click Start > All Programs > Accessories > Notepad.
Click File > Open.
In the File name field, type C:\Windows\System32\Drivers\etc\hosts.
Click Open.
Make the necessary changes to the file.
Click File > Save to save your changes.

Linux

Open a terminal window.
Open the hosts file in a text editor (you can use any text editor) by typing the following line:

sudo nano /etc/hosts
Enter your domain user password.
Make the necessary changes to the file.
Press Control-x.
When asked if you want to save your changes, answer y.

Share this

Leave a reply