E
E
Edward2017-10-28 16:28:06
Nginx
Edward, 2017-10-28 16:28:06

How to allow WSL plugin to access its own folder in nginx?

Hello. The nginx config contains the line
location ~* /wp-content/.*\.(php|php3|php4|php5|php6|phps|phtml)$ {
deny all;
}
which prevents everyone from accessing php in the wp-content folder and because of this, the Wordpress Social Login plugin gives a 403 error when logging in through any social network. Question - how can I leave this line in the nginx config and at the same time allow the plugin to access its folder (or rather wp-content/plugins/wordpress-social-login/hybridauth/ ) ?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question