Benutzer-Werkzeuge

Webseiten-Werkzeuge


nginx

Anbindung nginx / php-fpm

    location /benno {
        index index.php;
        alias /srv/benno/bennoweb/htdocs;
        autoindex off;

        location ~ \.php$ {
            fastcgi_split_path_info ^(.+\.php)(/.+)$;
            fastcgi_pass unix:/var/run/php/php7.3-fpm.sock;
            fastcgi_index index.php;
            include fastcgi_params;
            fastcgi_param SCRIPT_FILENAME $request_filename;
        }

        # Plugin API (>= benno-web 2.8.7)
        location ~ rest.php(/.*)$ {
            fastcgi_split_path_info ^(.+\.php)(/.+)$;
            fastcgi_pass unix:/var/run/php/php7.3-fpm.sock;
            include fastcgi_params;
            fastcgi_param SCRIPT_FILENAME $request_filename;
            fastcgi_param PATH_INFO $fastcgi_path_info;
        }
    }
nginx.txt · Zuletzt geändert: 2020/09/09 15:37 von lwsystems