Answers for "nginx allow only one ip to connect"

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

Code answers related to "nginx allow only one ip to connect"

Browse Popular Code Answers by Language