Skip to content

Commit

Permalink
Ajout symfony template
Browse files Browse the repository at this point in the history
  • Loading branch information
HanXHX committed Dec 26, 2019
1 parent 1280a44 commit 2a612a5
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions templates/etc/nginx/sites-available/_symfony.j2
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{% extends "_php.j2" %}

{% block template_try_files %}
try_files $uri /index.php$is_args$args;
{% endblock %}

{% block template_upstream_location %}
location /bundles {
try_files $uri =404;
}

location ~ ^/index\.php(/|$) {
# {{ php_info }}
fastcgi_pass {{ php_upstream }};
fastcgi_index index.php;
{% if item.upstream_params is defined and item.upstream_params is iterable %}
{% for param in item.upstream_params %}
{{ param }}
{% endfor %}
{% endif %}
include fastcgi.conf;
internal;
}

location ~ \.php$ {
return 404;
}
{% endblock %}

0 comments on commit 2a612a5

Please sign in to comment.