crans_bcfg2/Python/etc/nginx/sites-available/status
2013-07-25 17:50:26 +02:00

20 lines
357 B
Python

# -*- mode: python; encoding: utf-8 -*-
info["owner"] = "root"
info["group"] = "root"
info["perms"] = 0644
comment_start = "#"
print """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"):
print ' include "snippets/php.conf";'
print "}"