crans_bcfg2/Python/etc/nginx/sites-available/status
2015-05-14 07:19:56 +02:00

20 lines
341 B
Python

# -*- mode: python; encoding: utf-8 -*-
info["owner"] = "root"
info["group"] = "root"
info["mode"] = 0644
comment_start = "#"
out("""server {
listen 127.0.0.1;
server_name localhost;
location /nginx_status {
stub_status on;
access_log off;
allow 127.0.0.1;
deny all;
}""")
if has("php"):
@ include "snippets/php.conf";
@}