Probably a newbie question but I can't find an answer in the documentation or forum. Inspired by https://docs.wordops.net/how-to/post-install-wp/ I created an html site repository.mydomain.com.au using WordOps. I placed the theme file I want to install on all my WP sites in there as a zip. But when I try to retrieve the file I get 403 Forbidden back from nginx. I read this article also:https://docs.wordops.net/how-to/allow-zip-gzip-files-download/ but that describes how to allow download for all sites, whereas I want to only allow it from this specific site.
I have tried creating an 'allow-zip.conf' file in the /home/www/repository.mydomain.com.au/conf/nginx folder with the following content
# Specify an allow rule to permit download of zip files from this site (which is it's entire purpose(!)
location ~* "\.zip$" {
allow all;
}
on the theory that it would load after the locations-wo.conf and override the deny from that file. But it doesn't work. I also tried extracting the location line from locations-wo.conf, removing 'zip' from the list of extensions and pasting that in the file but that doesn't do the job either.
Can anybody advise the correct way to achieve what I'm trying to do here? Am I missing something fundamental about nginx, I'm new to hosting in a *nix environment so I've a lot to learn? Have I just made a dumb typo that I cannot spot?! Any advice gratefully accepted.
TIA,
Graham