Preview its web site before updating its DNS configuration

From EN Ikoula wiki
Revision as of 21:52, 7 December 2015 by Ikbot (talk | contribs) (Created page with "<br /> This article has been created by an automatic translation software. You can view the article source :fr:Prévisualiser son site web avant de mettre à jour sa config...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
⧼vector-jumptonavigation⧽ ⧼vector-jumptosearch⧽


This article has been created by an automatic translation software. You can view the article source here.




Introduction

I want to see my new website without changing the dns of my domain without having to not function $sitepreview\r Plesk.

Solution

The hosts file is a file used by the operating System of a computer when accessing the Internet. It contains the local IP address, and possibly the address of Serverweb s. When accessing a network device by domain name, this file is consulted before access to the Server DNS and allows the System to know the associated IP address to the domain name. This technology was originally developed for Arpanet, the predecessor of the Internet, but became insufficient against the increase in the size of the network. It remains however used for small local networks, as well as in certain special cases, for example for Web filtering.

Location

The location of the hosts file depends on the operating System . List of default locations under System :

  • Windows XP/Vista/2003/2008/7/8 : \Windows\system32\drivers \etc \hosts (%SystemRoot %\system32\drivers\etc\ )
  • Windows NT 4/2000 : \Winnt \system32\drivers\etc\hosts (%SystemRoot%\system32\drivers\etc\ )
  • Linux, Unix and Mac OS X : /etc/hosts

Modifying the hosts file

You can modify the hosts file by doing the following :

1. Locate the exact location of the hosts file (CF. )

2. Make a backup

3. Open it with a text editor such as Notepad or Nano

  • Example on Linux Ubuntu : sudo nano /etc/hosts
  • Example in Mac OS X : sudo pico /etc/hosts
  • Attention Windows versions > à 2008/Vista, please open the Notepad in administrator mode : Button start, tap 'Notepad', right-click on the line that appears, run as administrator.

4. Make sure that the following lines are present (These lines are indispensable ) :

127.0.0.1 localhost

5. Add the line of your hosting with Ip of your hosting and your domain.

ex : 213.246. xx.xx monsite.com!

6. Save the file

7. Restart (for Windows versions prior to XP essentially).


You are not allowed to post comments.