basic test pages including php

This commit is contained in:
Asif Bacchus 2019-01-04 03:57:34 -07:00
parent 36acebd803
commit 800aafe82f
2 changed files with 62 additions and 0 deletions

View File

@ -0,0 +1,30 @@
#######
### 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;
}
location /phptest {
try_files $uri $uri/ =404;
}
# process PHP files
location ~ \.php$ {
try_files $uri =404;
include /etc/nginx/snippets/php.conf;
}
# error pages
include /etc/nginx/snippets/error_pages.conf;
}

View File

@ -0,0 +1,32 @@
#######
### 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;
}
location /phptest {
try_files $uri $uri/ =404;
}
# process PHP files
location ~ \.php$ {
try_files $uri =404;
include /etc/nginx/snippets/php.conf;
}
# error pages
include /etc/nginx/snippets/error_pages.conf;
}