Answers for "nginx only allow from ip address"

1

nginx allow only one ip

server {
    listen 80;
    server_name www.foo.bar;

    location / {
      root /path/to/rails/public/;
      passenger_enabled on;

      allow   my.public.ip.here;
      deny    all;
    }
  }
Posted by: Guest on June-15-2020

Browse Popular Code Answers by Language