Quantcast
Channel: Nginx Forum - How to...
Viewing all articles
Browse latest Browse all 4759

anonymous GET all others to be authentificated

$
0
0
Hi Guys I am stuck with an issue here, I have a web page that I need to allow anonymous views but not post/put/etc.
Is that posible with nginx ? could this be a webdav thing?

Currently I have this config, which is not really working, it is asking for a password all the time.

location /java/stable {
root /storage/docs/java/stable;
autoindex on;
dav_methods PUT DELETE MKCOL COPY MOVE;
dav_ext_methods PROPFIND OPTIONS;
create_full_put_path on;
dav_access group:rw all:r;
auth_basic "Restricted";
auth_basic_user_file /srv/.webdav_htpasswd;

Viewing all articles
Browse latest Browse all 4759

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>