Quantcast
Channel: Nginx Forum - How to...
Viewing all articles
Browse latest Browse all 4759

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

$
0
0
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.

Viewing all articles
Browse latest Browse all 4759

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>