Welcome! Log In Create A New Profile

Advanced

[Conf File]Name resolution set in the hosts file has priority

Posted by Takuya Furukawa 
[Conf File]Name resolution set in the hosts file has priority
June 25, 2018 12:51AM
than the redirect setting specified by [Location] on the conf file,
The setting in the hosts stored in the same server takes precedence and an unexpected redirect occurs.

① Is it that nginx's specification makes hosts settings take precedence over config file settings?
② Is there a way to avoid this phenomenon and prioritize the setting of the Conf file?

===========
Below, reference information (background)

Currently, in nginx's Conf file and hosts file in the same server,
Since there is a business requirement that it is necessary to set different IP addresses of the same server name,
It is not possible to delete the settings of the hosts file.
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 65
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready