linux:nginx
This is an old revision of the document!
Nginx
Whitelist certain IP's
Add the following directives with your desire IP inside the server section.
/etc/nginx/sites-available
server {
allow 192.168.0.0; # here goes the IP you want to allow
deny all;
# ...
}
You can also write the directives inside the http section to apply it to multiple virtual hosts.
http {
allow 192.168.0.0; # here goes the IP you want to allow
deny all;
server {
server_name page1.rackspace.com;
# ...
}
server {
server_name page2.rackspace.com;
# ...
}
}
linux/nginx.1754898574.txt.gz · Last modified: 2025/08/11 08:49 by srohr_admin
