nginx rejects or allows the specified IP, using the module HTTP access control module (HTTP Access). The control rules are checked in the order in which they are declared, and the first access rule that matches the IP is enabled.
location /{ deny 192.168.1.1; allow 192.168.1.0/24; allow 10.1.1.0/16; deny all;}
The above example only allows 192.168.1.0/24 and 10.1.1.0/16 networks The segment accesses this location field, but 192.168.1.1 is an exception. Pay attention to the order in which the rules are matched. If you have used apache, you may think that you can control the order of the rules at will and they can work normally, but they can't. The following example will reject all connections:
location /{ #This will always output a 403 error. Deny all; # These instructions will not be enabled because the connection reached has been rejected in the first line deny 192.168.1.1; allow 192.168.1.0/24; allow 10.1.1.0/1}
It is quite cumbersome to add and remove programs in Linux. The installation of th
In different Linux distributions, there will be different GUI programs that can display various syst
The original use of Tomcat in Linux does not use the newly created user created by the non-ROOT perm
1. Nothing to teach, teach you to look at the system version first (fatly remember the first time to
Linux system old kernel method
Linux use cpulimit limit process cpu usage rate
Two common startup failure resolution methods for Linux operation
Forgot your password solution under liunx
IIS server does not support ASP.NET solution
Who is the most popular Linux web server
Method for binding a socket to a network device under Linux
Introduction to three commonly used network security tools under Linux system
What should I do if the XP system desktop IE icon is missing? How does the IE icon disappear?
A good way to use the registry to shut down the computer
Installing XP, 2003 system method under Vista
Win7 free combination! System log storage is up to you
Three steps to get the DLL file error when the XP system is booting
WinXP system installation IE8 failure processing method [Graphic tutorial]
Modifying the library in the Win7 taskbar to a computer
How to split win10? How to use win10 split screen shortcuts
Win7 system cpu overclocking blue screen how to solve
Create a file overspeed decompression environment to improve decompression efficiency