Include common_rules.conf works properly now. The problem was that the .conf file was also getting included in 'http' directive, so it was complaining about location directive being invalid. Thanks ! Posted at Nginx Forum: http://forum.nginx.org/read.php?2,231295,231304#msg-231304