nginx

Fixing Gutenberg error “The editor has encountered an unexpected error”

After update to WP 5, I’ve faced with next issue, I’ve couldn’t add new post or edit existed. Looks like error happens because of misconfigured nginx and when new ‘Gutenberg’ editor is active (which is true by default for wordpress 5.0 and above). Earlier I had nginx location / configured in next manner: location / […]

Tags: , ,

Posted in Linux related, Web related | No Comments »

Password protected access to “/wp-admin” on nginx

Here i found advice how to make wordpress more securely, idea is to protect access to “/wp-admin” by http auth, but “/wp-admin/admin-ajax.php” must stay available for everyone, same is true for some .css files. I spend some time to research solution, it was a bit complicated: location /wp-admin { location ~ /wp-admin/admin-ajax.php$ { # Php […]

Tags: , , ,

Posted in Web related | No Comments »

Forbid access to php into “wp-content”.

I expected in few articles an advice to disable direct access to php scripts into “/wp-content/uploads” i done small research and observed, than .php placed into “/wp-content” and into subdirs was newer directly accessed thru web. So i just completely disabled direct access to php scripts placed into that dir and subdirs. Looks more securely. […]

Tags: , , ,

Posted in Web related | No Comments »


Powered by WordPress. Designed by Försäkra Online.