Forum

Could I have some help to rewrite this nginx rule please?

Fred
3 November 2016, 00:46
Could I have some help to rewrite this nginx rule please?
My regex knowledge is none at the moment but learning it

location ~* /wp-content/plugins/versionpress/admin/public/.*$ {
allow all;
}

location ~* /wp-content/plugins/versionpress/.*$ {
deny all;
}

location ~* /wp-content/vpdb/.*$ {
deny all;
}

location ~* /wp-content/vpbackups/.*$ {
deny all;
}

location ~* /\.git/.*$ {
deny all;
}
Hugo Leisink
3 November 2016, 08:45
UrlToolkit {
ToolkitID = access
Match ^/wp-content/plugins/versionpress/admin/public/.* Return
Match ^/wp-content/plugins/versionpress/.* DenyAccess
Match ^/wp-content/vpdb/.* DenyAccess
Match ^/wp-content/vpbackups/.* DenyAccess
Match ^/\.git/.* DenyAccess
}
Fred
3 November 2016, 09:30
Thank you Hugo
This topic has been closed.