Nginx allow only *.domain.ac.in for POST, DELETE, PUT requests -


how configure nginx server allow *.domain.ac.in domains post, delete , put requests methods basic authentication enabled. should accessible in world

try config:

if ($request_method != get) {     limit_except post delete put{         allow 192.168.1.0/32; #put network of *.domain.ac.in domains here         deny  all;     } } 

note allowing method makes head method allowed.


Comments

Popular posts from this blog

Sort a complex associative array in PHP -

vb.net - How to ignore if a cell is empty nothing -

recursion - Can every recursive algorithm be improved with dynamic programming? -