Hi, I am trying to use nginx configuration to disable the admin panel from the internet so that it is only accessible on the LAN.
However, if I do this webmail stops working and I don’t know why. Turning off /rspamd works fine.
I do this.
location / {
try_files $uri $uri/ @strip-ext;
#Allow ip
allow 192.168.250.0/25;
#deny for everybody else
deny all;
}
And after this webmail /SOGo stop working.
In /rspamd I have this
` location /rspamd/ {
#Allow ip
allow 192.168.250.0/25;
#deny for everybody else
deny all;`
I thought that adding deny to / would affect the whole site so I tried removing deny from /rspamd and it worked after that. So rspamd was accessible from the internet but webmail and the admin panel was not.
Can someone please advise me?
Thank you very much