38 lines
819 B
Django/Jinja
38 lines
819 B
Django/Jinja
{% extends 'vhost.j2' %}
|
|
|
|
{% block server_end %}
|
|
client_max_body_size 10m;
|
|
set_real_ip_from 10.1.1.247;
|
|
real_ip_header X-Forwarded-For;
|
|
real_ip_recursive on;
|
|
|
|
location = /favicon.ico {
|
|
access_log off;
|
|
log_not_found off;
|
|
}
|
|
|
|
location = /robots.txt {
|
|
access_log off;
|
|
log_not_found off;
|
|
}
|
|
|
|
|
|
location ~ /support {
|
|
auth_basic "mtinfo.dualinventive.com support scripts";
|
|
auth_basic_user_file /var/www/diweb/mtinfo.dualinventive.com/support_passwd;
|
|
|
|
include /etc/nginx/fastcgi.conf;
|
|
fastcgi_pass unix:/var/run/php-fpm53-diweb.sock;
|
|
}
|
|
|
|
location / {
|
|
try_files $uri $uri/ index.php;
|
|
}
|
|
|
|
location ~ \.php$ {
|
|
include /etc/nginx/fastcgi.conf;
|
|
fastcgi_pass unix:/var/run/php-fpm53-diweb.sock;
|
|
fastcgi_read_timeout 120;
|
|
}
|
|
{% endblock %}
|