Minor changes in nginx

pull/2/head 1.0.0
Emilien Mantel 2015-08-28 09:54:43 +02:00
parent d75ae9b396
commit 3ee3c3acb9
3 changed files with 5 additions and 9 deletions

View File

@ -22,9 +22,11 @@ server {
index {{ item.index | default('index.html index.htm') }};
{% endblock %}
location / {
{% block template_try_files %}
try_files $uri $uri/ =404;
try_files $uri $uri/ =404;
{% endblock %}
}
{% block template_upstream_location %}
{% endblock %}

View File

@ -5,7 +5,7 @@
{% endblock %}
{% block template_try_files %}
try_files $uri $uri/ @dokuwiki =404;
try_files $uri $uri/ @dokuwiki =404;
{% endblock %}
{% block template_custom_location %}

View File

@ -4,7 +4,7 @@
{% endblock %}
{% block template_try_files %}
try_files $uri $uri/ /index.php;
try_files $uri $uri/ /index.php;
{% endblock %}
{% block template_upstream_location %}
@ -18,11 +18,5 @@
{% else %}
include fastcgi.conf;
{% endif %}
# TODO...
# Newrelic custom header: https://docs.newrelic.com/docs/apm/other-features/request-queueing/request-queue-server-configuration-examples
#fastcgi_param HTTP_X_REQUEST_START "t=${msec}";
# Newrelic custom PHP appname: https://docs.newrelic.com/docs/agents/php-agent/configuration/php-directory-ini-settings#perdir-nginx
#fastcgi_param PHP_VALUE "newrelic.appname=${host}";
}
{% endblock %}