The hosts file is reset
Posted by: madlight (113.90.239.---)
Date: April 25, 2018 01:13PM

Every time I restart wampserver3 it will reset the contents of the hosts file。
system: windows10 1709 wampserver3.1.3

Options: ReplyQuote
Re: The hosts file is reset
Posted by: RiggsFolly (Moderator)
Date: April 25, 2018 01:17PM

I dont think so.

I would look at your Firewall software or Virus Checker as they are the most likely culprits for this activity


When you say reset, can you say what the changes are that are being made.

---------------------------------------------------------------------------------------------
(Windows 10 Pro 64bit) (Wampserver 3.3.4 64bit) Aestan Tray Menu 3.2.5.4
<Apache versions MULTIPE> <PHP versions MULTIPLE> <MySQL Versions MULTIPLE>
<MariaDB versions MULTIPLE> <phpMyAdmin versions MULTIPLE> <MySQL Workbench 8.0.23>

Read The Manuals Apache -- MySQL -- PHP -- phpMyAdmin
Get your Apache/MySQL/mariaDB/PHP ADDONs here from the WAMPServer alternate Repo
-X-X-X- Backup your databases regularly Here is How dont regret it later! Yes even when developing -X-X-X-

Options: ReplyQuote
Re: The hosts file is reset
Posted by: madlight (113.90.239.---)
Date: April 25, 2018 01:25PM

This is my hosts content:

# Copyright (c) 1993-2009 Microsoft Corp.
#
# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
#
# This file contains the mappings of IP addresses to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column followed by the corresponding host name.
# The IP address and the host name should be separated by at least one
# space.
#
# 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.com # x client host

# localhost name resolution is handled within DNS itself.
# 127.0.0.1 localhost
# ::1 localhost

127.0.0.1 api.com
::1 api.com


When I started wampserver it became like this:

#
127.0.0.1 localhost
::1 localhost

Options: ReplyQuote
Re: The hosts file is reset
Posted by: RiggsFolly (Moderator)
Date: April 25, 2018 01:48PM

You need to leave the localhost stuff in there and add your stuff to it, so host file should be

127.0.0.1 localhost
::1 localhost

127.0.0.1 api.com
::1 api.com

---------------------------------------------------------------------------------------------
(Windows 10 Pro 64bit) (Wampserver 3.3.4 64bit) Aestan Tray Menu 3.2.5.4
<Apache versions MULTIPE> <PHP versions MULTIPLE> <MySQL Versions MULTIPLE>
<MariaDB versions MULTIPLE> <phpMyAdmin versions MULTIPLE> <MySQL Workbench 8.0.23>

Read The Manuals Apache -- MySQL -- PHP -- phpMyAdmin
Get your Apache/MySQL/mariaDB/PHP ADDONs here from the WAMPServer alternate Repo
-X-X-X- Backup your databases regularly Here is How dont regret it later! Yes even when developing -X-X-X-

Options: ReplyQuote
Re: The hosts file is reset
Posted by: madlight (113.90.239.---)
Date: April 25, 2018 02:23PM

Thank you very much,it is working well now。

Options: ReplyQuote


Sorry, only registered users may post in this forum.