added simple server test configurations
This commit is contained in:
parent
00b5b4d0c1
commit
2406bf28c8
19
etc/nginx/availableSites/testing_nonsecure.conf
Normal file
19
etc/nginx/availableSites/testing_nonsecure.conf
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
#######
|
||||||
|
### NGINX server configuration
|
||||||
|
### Basic HTTP test setup using default NGINX index page
|
||||||
|
#######
|
||||||
|
|
||||||
|
server {
|
||||||
|
listen 80;
|
||||||
|
listen [::]:80;
|
||||||
|
|
||||||
|
# specify server name(s)
|
||||||
|
include /etc/nginx/snippets/server_names.conf;
|
||||||
|
|
||||||
|
location / {
|
||||||
|
try_files $uri $uri/ =404;
|
||||||
|
}
|
||||||
|
|
||||||
|
# error pages
|
||||||
|
include /etc/nginx/snippets/error_pages.conf;
|
||||||
|
}
|
22
etc/nginx/availableSites/testing_secure.conf
Normal file
22
etc/nginx/availableSites/testing_secure.conf
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
#######
|
||||||
|
### NGINX server configuration
|
||||||
|
### Basic HTTPS test setup using default NGINX index page
|
||||||
|
#######
|
||||||
|
|
||||||
|
server {
|
||||||
|
listen 443 ssl http2;
|
||||||
|
listen [::]:443 ssl http2;
|
||||||
|
|
||||||
|
# specify server name(s)
|
||||||
|
include /etc/nginx/snippets/server_names.conf;
|
||||||
|
|
||||||
|
# SSL certificates for this server
|
||||||
|
include /etc/nginx/snippets/ssl/ssl_certs.conf;
|
||||||
|
|
||||||
|
location / {
|
||||||
|
try_files $uri $uri/ =404;
|
||||||
|
}
|
||||||
|
|
||||||
|
# error pages
|
||||||
|
include /etc/nginx/snippets/error_pages.conf;
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user