Welcome! Log In Create A New Profile

Advanced

Re: Site should not be accessed through IP

April 09, 2015 02:13PM
You could use an extra host config with a default_server, like so:

server {
listen 80 default_server;
server_name _;
return 444;
}

You can find this example on http://nginx.org/en/docs/http/server_names.html
Subject Author Posted

Site should not be accessed through IP

blason April 09, 2015 02:09PM

Re: Site should not be accessed through IP

FinalX April 09, 2015 02:13PM

Re: Site should not be accessed through IP

blason April 09, 2015 02:30PM

Re: Site should not be accessed through IP

Sebastian Stabbert April 09, 2015 02:14PM

Re: Site should not be accessed through IP

FinalX April 09, 2015 02:40PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 76
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready