Switch to the newest syntax

This commit is contained in:
Léo Colombaro 2023-07-23 11:57:47 +02:00
parent eb9f95293a
commit b29addf7bb
4 changed files with 13 additions and 13 deletions

2
.gitignore vendored
View File

@ -3,4 +3,4 @@ conf.d/*.conf
!conf.d/.default.conf
!conf.d/no-ssl.default.conf
test/*
!test/vhosts/
!test/vhosts

View File

@ -12,8 +12,8 @@
server {
listen [::]:443 quic reuseport;
listen 443 quic reuseport;
listen [::]:443 ssl http2;
listen 443 ssl http2;
listen [::]:443 ssl;
listen 443 ssl;
server_name www.example.com;
@ -28,10 +28,10 @@ server {
server {
listen [::]:443 quic reuseport;
listen 443 quic reuseport;
# listen [::]:443 ssl http2 accept_filter=dataready; # for FreeBSD
# listen 443 ssl http2 accept_filter=dataready; # for FreeBSD
listen [::]:443 ssl http2;
listen 443 ssl http2;
# listen [::]:443 ssl accept_filter=dataready; # for FreeBSD
# listen 443 ssl accept_filter=dataready; # for FreeBSD
listen [::]:443 ssl;
listen 443 ssl;
# The host name to respond to
server_name example.com;

View File

@ -11,8 +11,8 @@ server {
server {
listen [::]:443 quic reuseport;
listen 443 quic reuseport;
listen [::]:443 ssl http2 default_server;
listen 443 ssl http2 default_server;
listen [::]:443 ssl default_server;
listen 443 ssl default_server;
server_name _;

View File

@ -1,8 +1,8 @@
server {
listen [::]:443 quic reuseport;
listen 443 quic reuseport;
listen [::]:443 ssl http2;
listen 443 ssl http2;
listen [::]:443 ssl;
listen 443 ssl;
server_name www.secure.server.localhost;
@ -16,8 +16,8 @@ server {
server {
listen [::]:443 quic reuseport;
listen 443 quic reuseport;
listen [::]:443 ssl http2;
listen 443 ssl http2;
listen [::]:443 ssl;
listen 443 ssl;
server_name secure.server.localhost;