-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix and improve tests/vhosts + php_index vhost
- Loading branch information
Emilien Mantel
committed
Nov 2, 2015
1 parent
c2644d4
commit 97c3d2e
Showing
4 changed files
with
41 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{% extends "_php.j2" %} | ||
|
||
{% block template_upstream_location %} | ||
location = /index.php { | ||
fastcgi_pass php; | ||
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 %} | ||
{% if nginx_version.stdout | version_compare('1.6.1', 'lt') %} | ||
include fastcgi_params; | ||
{% else %} | ||
include fastcgi.conf; | ||
{% endif %} | ||
} | ||
{% endblock %} | ||
|
||
{% block template_custom_location %} | ||
location ~ \.(php\d?|phtml)$ { | ||
return 403; | ||
} | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters