Bonjour, pour commencer à utiliser Crook connecte toi !

Fichier de config NGINX pour Wordpress sur un VPS

Installer Wordpress sur VPS avec NGINX


server {
    listen 80;
    root /var/www/html/wordpress;
    index index.php index.html index.htm;
    server_name example.com;

    access_log /var/log/nginx/wordpress_access.log;
    error_log /var/log/nginx/wordpress_error.log;

    client_max_body_size 64M;

    location / {
        try_files $uri $uri/ /index.php?$args;
        }

    location ~ \.php$ {
        try_files $uri =404;
        include /etc/nginx/fastcgi_params;
        fastcgi_read_timeout 3600s;
        fastcgi_buffer_size 128k;
        fastcgi_buffers 4 128k;
        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
        fastcgi_pass unix:/run/php/php7.3-fpm.sock;
        fastcgi_index index.php;
            }

        }

 

À propos
logo
image de profil

Frvaillant