Skip to content

Commit f1ef60e

Browse files
committed
Wire nginx to 8.1 PHP version
1 parent 134daa8 commit f1ef60e

File tree

2 files changed

+57
-0
lines changed

2 files changed

+57
-0
lines changed

servers/nginx/sites-enabled/8.1

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
server {
2+
set $serverName "8.1.local";
3+
set $version "8.1";
4+
set $socket "8.1.williamdes.local:9000";
5+
set $folder "/mnt/Dev/";
6+
listen 443 ssl http2;
7+
listen 80;
8+
client_header_buffer_size 64k;
9+
proxy_buffer_size 64k; # this is for header and first body part
10+
proxy_buffers 8 64k;
11+
access_log /var/log/nginx/access_localhost.8.1.log;
12+
error_log /var/log/nginx/error_localhost.8.1.log error;
13+
server_name 8.1.local;
14+
index index.php index.html;
15+
root $folder;
16+
server_tokens off;
17+
ssl_certificate /etc/nginx/nginx-selfsigned.crt;
18+
ssl_certificate_key /etc/nginx/nginx-selfsigned.key;
19+
location /robots.txt {
20+
return 200 "User-agent: *\nDisallow: /";
21+
}
22+
location / {
23+
index index.php;
24+
try_files $uri $uri/ =404;
25+
}
26+
location ~ \.php$ {
27+
include snippets/fastcgi-php.conf;
28+
fastcgi_pass $socket;
29+
}
30+
}

servers/nginx/sites-enabled/pma.8.1

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
server {
2+
set $serverName "pma.8.1.local";
3+
set $version "8.1";
4+
set $socket "8.1.williamdes.local:9000";
5+
set $folder "/mnt/Dev/phpmyadmintest";
6+
listen 443 ssl http2;
7+
listen 80;
8+
access_log /var/log/nginx/access_localhost.8.1.log;
9+
error_log /var/log/nginx/error_localhost.8.1.log error;
10+
server_name pma.8.1.local;
11+
index index.php index.html;
12+
root $folder;
13+
server_tokens off;
14+
ssl_certificate /etc/nginx/nginx-selfsigned.crt;
15+
ssl_certificate_key /etc/nginx/nginx-selfsigned.key;
16+
location /robots.txt {
17+
return 200 "User-agent: *\nDisallow: /";
18+
}
19+
location / {
20+
index index.php;
21+
try_files $uri $uri/ =404;
22+
}
23+
location ~ \.php$ {
24+
include snippets/fastcgi-php.conf;
25+
fastcgi_pass $socket;
26+
}
27+
}

0 commit comments

Comments
 (0)