Plesk NGINX Configuration für Wordpress

in #nginx6 years ago (edited)

Ich hatte das Problem mit NGINX und Wordpress, dass entweder die Permalinks nicht funktionieren und die Adminoberfläche funktioniert oder umgekehrt.

Nach etwas Recherche im Netz bin ich auf folgende Lösung gestoßen. Folgendes muss man in den Hostingeinstellung unter Zusätzliche Nginx-Anweisungen bei Plesk eintragen:

Source: https://www.websavers.org/how-to-speed-up-wordpress/

rewrite !.(js|ico|gif|jpg|png|css|pdf|mov|mp3|eot|svg|ttf|woff|otf|txt|swf)$ /index.php break;
rewrite /wp-admin/$ /wp-admin/index.php break;
rewrite /$ /index.php break;

enable gzip compression
gzip on;
gzip_min_length 1100;
gzip_buffers 4 32k;
gzip_types text/plain application/x-javascript text/xml text/css;
gzip_vary on;
end gzip configuration

location ~* ^/(.*.(js|css|png|jpg|jpeg|gif|ico))$ {
expires 2w;
log_not_found off;
}

Gefunden hab ich es hier: https://gist.github.com/lekkerduidelijk/8548548


Posted from my blog with SteemPress : https://wintux.de/plesk-nginx-configuration-fuer-wordpress/

Sort:  

Congratulations @wintux! You have completed some achievement on Steemit and have been rewarded with new badge(s) :

Award for the number of comments

Click on any badge to view your own Board of Honor on SteemitBoard.
For more information about SteemitBoard, click here

If you no longer want to receive notifications, reply to this comment with the word STOP

Upvote this notification to help all Steemit users. Learn why here!