File tree Expand file tree Collapse file tree 3 files changed +7
-27
lines changed
provision/roles/boilerplate-main/templates/nginx Expand file tree Collapse file tree 3 files changed +7
-27
lines changed Original file line number Diff line number Diff line change 11PHP Docker Boilerplate Changelog
22==================================
33
4+ 5.1.3 - 2016-05-25
5+ ------------------
6+ - Fix nginx vhost configuration (modular WebDevOps image design)
7+
485.1.2 - 2016-05-25
59------------------
610- Fix typo in Docker image names (duplicate -dev)
Original file line number Diff line number Diff line change 11# Dockerized PHP web project boilerplate
22
3- [ ![ latest v5.1.2 ] ( https://img.shields.io/badge/latest-v5.1.2 -green.svg?style=flat )] ( https://github.com/webdevops/php-docker-boilerplate/releases/tag/5.1.2 )
3+ [ ![ latest v5.1.3 ] ( https://img.shields.io/badge/latest-v5.1.3 -green.svg?style=flat )] ( https://github.com/webdevops/php-docker-boilerplate/releases/tag/5.1.3 )
44![ License MIT] ( https://img.shields.io/badge/license-MIT-blue.svg?style=flat )
55[ ![ Average time to resolve an issue] ( http://isitmaintained.com/badge/resolution/mblaschke/php-docker-boilerplate.svg )] ( http://isitmaintained.com/project/mblaschke/php-docker-boilerplate " Average time to resolve an issue ")
66[ ![ Percentage of issues still open] ( http://isitmaintained.com/badge/open/mblaschke/php-docker-boilerplate.svg )] ( http://isitmaintained.com/project/mblaschke/php-docker-boilerplate " Percentage of issues still open ")
Original file line number Diff line number Diff line change 99 listen 80;
1010
1111 server_name {{ vhost.serverName }} {{ vhost.serverAlias }};
12+
1213 access_log /dev/stdout;
1314 error_log /dev/stdout info;
1415
@@ -17,19 +18,6 @@ server {
1718
1819 client_max_body_size 50m;
1920
20- location / {
21- try_files $uri $uri/ /{{ vhost.documentIndex|default('<DOCUMENT_INDEX>') }}?$query_string;
22- }
23-
24- location ~ \.php$ {
25- fastcgi_split_path_info ^(.+\.php)(/.+)$;
26- fastcgi_pass php;
27- include fastcgi_params;
28-
29- fastcgi_param SCRIPT_FILENAME $request_filename;
30- fastcgi_read_timeout 1000;
31- }
32-
3321 include /opt/docker/etc/nginx/vhost.common.d/*.conf;
3422}
3523
@@ -41,6 +29,7 @@ server {
4129 listen 443;
4230
4331 server_name {{ vhost.serverName }} {{ vhost.serverAlias }};
32+
4433 access_log /dev/stdout;
4534 error_log /dev/stdout info;
4635
@@ -49,19 +38,6 @@ server {
4938
5039 client_max_body_size 50m;
5140
52- location / {
53- try_files $uri $uri/ /{{ vhost.documentIndex|default('<DOCUMENT_INDEX>') }}?$query_string;
54- }
55-
56- location ~ \.php$ {
57- fastcgi_split_path_info ^(.+\.php)(/.+)$;
58- fastcgi_pass php;
59- include fastcgi_params;
60-
61- fastcgi_param SCRIPT_FILENAME $request_filename;
62- fastcgi_read_timeout 1000;
63- }
64-
6541 include /opt/docker/etc/nginx/vhost.common.d/*.conf;
6642 include /opt/docker/etc/nginx/vhost.ssl.conf;
6743}
You can’t perform that action at this time.
0 commit comments