33 lines
808 B
Plaintext
33 lines
808 B
Plaintext
server {
|
|
listen 80;
|
|
listen [::]:80;
|
|
server_name localhost;
|
|
|
|
root /usr/share/nginx/html;
|
|
|
|
location / {
|
|
index index.html index.htm;
|
|
try_files $uri $uri/ /index.html =404;
|
|
}
|
|
|
|
# added example, any shell script in content root will be executable
|
|
location ~ \.sh$ {
|
|
gzip off;
|
|
fastcgi_pass unix:/var/run/fcgiwrap.socket;
|
|
include /etc/nginx/fastcgi_params;
|
|
}
|
|
|
|
location ~ ^/azure/(.+)/notify$ {
|
|
gzip off;
|
|
fastcgi_pass unix:/var/run/fcgiwrap.socket;
|
|
include /etc/nginx/fastcgi_params;
|
|
fastcgi_param PROJECT $1;
|
|
fastcgi_param SCRIPT_FILENAME /usr/share/nginx/html/azure.sh;
|
|
}
|
|
|
|
error_page 500 502 503 504 /50x.html;
|
|
location = /50x.html {
|
|
root /usr/share/nginx/html;
|
|
}
|
|
|
|
} |