Welcome! Log In Create A New Profile

Advanced

Basic protection for different IPs

Ian Hobson
October 08, 2015 06:24AM
Hi All,

I want to keep casual visitors out of a test website, yet enable the
developers who come in via ssh to use it without entering a password,
and allow invited people to come in using a password.

In other words, how can I set up basic protection on my test website
when responding to the main IP of my server, and have no password prompt
when responding on localhost?

I tried using if (hostname = 'example.com') in spite of if-is-evil, and
could not get it to work.

Regards

Ian

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Basic protection for different IPs

Ian Hobson October 08, 2015 06:24AM

Re: Basic protection for different IPs

Manuel Thoenes October 08, 2015 06:34AM

Re: Basic protection for different IPs

Bill Ries-Knight October 08, 2015 11:38AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 300
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready