How does if condition work inside location block in nginx conf?
问题 I have read https://www.nginx.com/resources/wiki/start/topics/depth/ifisevil/ I want to check if my rails application has already added a header ( Access-Control-Allow-Origin ) and if it hasn't then add the header. The examples here have tried to explain the behaviour of if condition in nginx.conf http://agentzh.blogspot.in/2011/03/how-nginx-location-if-works.html But I have not understood it. One of the question I have is what is meant when they say a directive or phase directive? I have