mirror of
https://github.com/HanXHX/ansible-nginx.git
synced 2026-04-09 12:42:10 +07:00
Minor changes in nginx
This commit is contained in:
@@ -22,9 +22,11 @@ server {
|
|||||||
index {{ item.index | default('index.html index.htm') }};
|
index {{ item.index | default('index.html index.htm') }};
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
|
location / {
|
||||||
{% block template_try_files %}
|
{% block template_try_files %}
|
||||||
try_files $uri $uri/ =404;
|
try_files $uri $uri/ =404;
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
}
|
||||||
|
|
||||||
{% block template_upstream_location %}
|
{% block template_upstream_location %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|||||||
@@ -18,11 +18,5 @@
|
|||||||
{% else %}
|
{% else %}
|
||||||
include fastcgi.conf;
|
include fastcgi.conf;
|
||||||
{% endif %}
|
{% 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 %}
|
{% endblock %}
|
||||||
|
|||||||
Reference in New Issue
Block a user