Found the issue. It is a typo. I left off a ";". This line is missing the semicolon: ... allow 4.5.6.7 ... Should be: ... allow 4.5.6.7; ...by jeffshead - How to...
I'm trying to limit access to a location. I want to use both basic auth and allow only certain IP's. I have Nginx Proxy Manager (NPM) facing the Internet (reverse proxy) and a Nginx instance behind it. I guess both are acting as reverse proxies. Everything is Docker. I got the basic auth working but when I try to restrict IP's, I get 502 gateway errors. I'm guessing it has something to do withby jeffshead - How to...
After lots of testing, this seems to work but I would like to know if this is the most efficient solution: … location / { #### MY NEW RULE ### location ~ /(my_files/uploads/files|dir1|dir2) { #deny all; #return 404; proxy_pass http://192.168.1.5:8181; include proxy.inc; } #### MY NEW RULE ### location ~.*\.(3gp|gif|jpg|jpeg|png|ico|wmv|avi|asf|asx|mpg|mpeg|mp4|pby jeffshead - How to...
The server is set up with Nginx -> Varnish -> Apache. The following nginx vhost conf rule block is essentially causing .htaccess files to be ignored: … location / { location ~.*\.(3gp|gif|jpg|jpeg|png|ico|wmv|avi|asf|asx|mpg|mpeg|mp4|pls|mp3|mid|wav|swf|flv|html|htm|txt|js|css|exe|zip|tar|rar|gz|tgz|bz2|uha|7z|doc|docx|xls|xlsx|pdf|iso|woff|ttf|svg|eot|sh)$ {by jeffshead - How to...