30 lines
556 B
Plaintext
30 lines
556 B
Plaintext
|
#######
|
||
|
### 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;
|
||
|
}
|