I followed these instructions and added the include to my sites-avaliable/example.com server block, but it still does not seem to be working.
The wlm_file_protect_nginx.conf contains the following:
# BEGIN WishList Member Attachment Protection for example.com
location ~ /wp-content/uploads/.+?\.(jpg|jpeg|png|gif|bmp|css|js)$ {}
location /wp-content/uploads/ {
rewrite ^(.*)$ https://example.com/index.php?wlmfile=$1 break;
}
# END WishList Member Attachment Protection for example.com
# BEGIN WishList Member Folder Protection
location /docs {
rewrite ^/docs/(.+?)/(.+)$ https://example.com?wlmfolder=$1&restoffolder=$2 break;
}
# END WishList Member Folder Protection
I have tried:
- Adding that code to my locations-wo.conf
- Moving it above and below the other includes in the block
- Adding it to a custom.conf file
Any suggestions would be appreciated!