Meine nginx Konfiguration für diesen Blog (blog.mbeck.org).

Bitte folgenden Artikel mit beachten: nginx – Verzeichnis Struktur und Configs

 

server {
    listen 85.14.203.9:80;
    server_name blog.mbeck.org;

    access_log /var/www/mbeck/blog.mbeck.org/logs/access.log;
    error_log /var/www/mbeck/blog.mbeck.org/logs/error.log;

    root /var/www/mbeck/blog.mbeck.org/htdocs/public;
    index index.php index.html;

    location / {
        # Überprüfen ob $uri oder $uri/ auf dem Server vorhanden ist, ansonsten /index.php aufrufen
        try_files $uri $uri/ /index.php;
    }

    location ~ \.php$ {
        fastcgi_split_path_info ^(.+\.php)(/.+)$;
        #NOTE: You should have "cgi.fix_pathinfo = 0;" in php.ini

        include php.conf;

        fastcgi_intercept_errors on;
        fastcgi_pass php-fpm_mbeck.org;

        fastcgi_param TMP /var/www/mbeck/blog.mbeck.org/tmp;
        fastcgi_param TMPDIR  /var/www/mbeck/blog.mbeck.org/tmp;
        fastcgi_param TEMP  /var/www/mbeck/blog.mbeck.org/tmp;

        fastcgi_param PHP_ADMIN_VALUE "error_log=/var/www/mbeck/blog.mbeck.org/logs/fpm-php.error.log
                                        upload_tmp_dir=/var/www/mbeck/blog.mbeck.org/tmp
                                        session.save_path=/var/www/mbeck/blog.mbeck.org/sessions"
;

        fastcgi_param PHP_ADMIN_FLAT "log_errors=on";

        fastcgi_param PHP_FLAG "display_errors=off";
    }

    location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ {
        expires max;
        log_not_found off;
    }

    include drop.conf;

}

Die Kommentarfunktion ist geschlossen.