mirror of
https://github.com/joglomedia/LEMPer.git
synced 2026-04-06 20:59:08 +00:00
Add PHP 8.0 directive
This commit is contained in:
@@ -27,7 +27,7 @@ server {
|
||||
location ~ ^/(status|ping)$ {
|
||||
include /etc/nginx/fastcgi_params;
|
||||
|
||||
fastcgi_pass unix:/run/php/php7.3-fpm.sock;
|
||||
fastcgi_pass unix:/run/php/php7.4-fpm.sock;
|
||||
fastcgi_param SCRIPT_FILENAME $fastcgi_script_name;
|
||||
|
||||
allow all;
|
||||
@@ -35,7 +35,7 @@ server {
|
||||
auth_basic_user_file /srv/.htpasswd;
|
||||
}
|
||||
|
||||
location ~ \.(php|php73)$ {
|
||||
location ~ \.(php|php74)$ {
|
||||
try_files $uri =404;
|
||||
|
||||
fastcgi_split_path_info ^(.+\.php)(/.+)$;
|
||||
@@ -47,17 +47,27 @@ server {
|
||||
# Uncomment to Enable PHP FastCGI cache.
|
||||
#include /etc/nginx/includes/fastcgi_cache.conf;
|
||||
|
||||
fastcgi_pass unix:/run/php/php7.3-fpm.sock;
|
||||
fastcgi_pass unix:/run/php/php7.4-fpm.sock;
|
||||
}
|
||||
|
||||
location ~ \.php74$ {
|
||||
location ~ \.php80$ {
|
||||
try_files $uri =404;
|
||||
fastcgi_split_path_info ^(.+\.php)(/.+)$;
|
||||
fastcgi_index index.php;
|
||||
include /etc/nginx/fastcgi_params;
|
||||
include /etc/nginx/includes/fastcgi.conf;
|
||||
#include /etc/nginx/includes/fastcgi_cache.conf;
|
||||
fastcgi_pass unix:/run/php/php7.4-fpm.sock;
|
||||
fastcgi_pass unix:/run/php/php8.0-fpm.sock;
|
||||
}
|
||||
|
||||
location ~ \.php73$ {
|
||||
try_files $uri =404;
|
||||
fastcgi_split_path_info ^(.+\.php)(/.+)$;
|
||||
fastcgi_index index.php;
|
||||
include /etc/nginx/fastcgi_params;
|
||||
include /etc/nginx/includes/fastcgi.conf;
|
||||
#include /etc/nginx/includes/fastcgi_cache.conf;
|
||||
fastcgi_pass unix:/run/php/php7.3-fpm.sock;
|
||||
}
|
||||
|
||||
location ~ \.php72$ {
|
||||
@@ -152,7 +162,7 @@ server {
|
||||
|
||||
# Pass the PHP scripts to FastCGI server listening on Unix socket.
|
||||
#
|
||||
location ~ \.(php|php73)$ {
|
||||
location ~ \.(php|php74)$ {
|
||||
try_files $uri =404;
|
||||
|
||||
fastcgi_split_path_info ^(.+\.php)(/.+)$;
|
||||
@@ -164,17 +174,27 @@ server {
|
||||
# Uncomment to Enable PHP FastCGI cache.
|
||||
#include /etc/nginx/includes/fastcgi_cache.conf;
|
||||
|
||||
fastcgi_pass unix:/run/php/php7.3-fpm.sock;
|
||||
fastcgi_pass unix:/run/php/php7.4-fpm.sock;
|
||||
}
|
||||
|
||||
location ~ \.php74$ {
|
||||
location ~ \.php80$ {
|
||||
try_files $uri =404;
|
||||
fastcgi_split_path_info ^(.+\.php)(/.+)$;
|
||||
fastcgi_index index.php;
|
||||
include /etc/nginx/fastcgi_params;
|
||||
include /etc/nginx/includes/fastcgi.conf;
|
||||
#include /etc/nginx/includes/fastcgi_cache.conf;
|
||||
fastcgi_pass unix:/run/php/php7.4-fpm.sock;
|
||||
fastcgi_pass unix:/run/php/php8.0-fpm.sock;
|
||||
}
|
||||
|
||||
location ~ \.php73$ {
|
||||
try_files $uri =404;
|
||||
fastcgi_split_path_info ^(.+\.php)(/.+)$;
|
||||
fastcgi_index index.php;
|
||||
include /etc/nginx/fastcgi_params;
|
||||
include /etc/nginx/includes/fastcgi.conf;
|
||||
#include /etc/nginx/includes/fastcgi_cache.conf;
|
||||
fastcgi_pass unix:/run/php/php7.3-fpm.sock;
|
||||
}
|
||||
|
||||
location ~ \.php72$ {
|
||||
|
||||
Reference in New Issue
Block a user