# Additionally, comments (such as these) may be inserted on individual # lines or following the machine name denoted by a '#' symbol. # # For example: # # 102.54.94.97 rhino.acme.com # source server # 38.25.63.10 x.acme.c…
Linux ubuntu16 open the terminal, input the command: sudo -i gedit /etc/hosts file click enter key, then input your password, click enter key, the hosts file will be open, now you can edit it. Windows (win7/win8) C:\Windows\System32\driver\etc\hosts…
Difficulty: 2Time: 15 minutes Want to host websites on your server? Using Apache? Great. This article will show you how to do exactly that using Apache’s “virtual hosts.” In Apache, you can use virtual hosts to direct http traffic for a given domain…
/etc/hosts.allow和/etc/hosts.deny两个文件是控制远程访问设置的,通过他可以允许或者拒绝某个ip或者ip段的客户访问linux的某项服务. 比如SSH服务,我们通常只对管理员开放,那我们就可以禁用不必要的IP,而只开放管理员可能使用到的IP段. 使用: 修改/etc/hosts.allow文件 # # hosts.allow This file describes the names of the hosts which are # allowed to use th…