@@ -60,14 +60,13 @@ server {
6060 proxy_http_version 1.1; # keep alive to the Apache upstream
6161 { % endif %}
6262
63-
64- { %- if not nginx_drupal_use_boost %}
65- { %- if not nginx_drupal_escape_uri %}
63+ { % if not nginx_drupal_use_boost -%}
64+ { % if not nginx_drupal_escape_uri -%}
6665 ################################################################
6766 ### Generic configuration: for most Drupal 7 sites.
6867 ################################################################
6968 include apps/drupal/drupal.conf;
70- { %- else %}
69+ { % else %}
7170 ################################################################
7271 ### Configuration for Drupal 7 sites to serve URIs that need
7372 ### to be **escaped**
@@ -105,24 +104,24 @@ server {
105104 ### line below and comment out after installation. Note that
106105 ### there's a basic auth in front as secondary ligne of defense.
107106 ################################################################
108- { %- if nginx_drupal_allow_install %}
107+ { % if nginx_drupal_allow_install - %}
109108 include apps/drupal/drupal_install.conf;
110- { %- else %}
109+ { % else - %}
111110 #include apps/drupal/drupal_install.conf;
112- { %- endif - %}
111+ { %- endif %}
113112
114- { %- if nginx_drupal_upload_progress %}
113+ { % if nginx_drupal_upload_progress - %}
115114 #################################################################
116115 ### Support for upload progress bar. Configurations differ for
117116 ### Drupal 6 and Drupal 7.
118117 #################################################################
119118 include apps/drupal/drupal_upload_progress.conf;
120- { %- endif - %}
119+ { %- endif %}
121120
122121 { %- if nginx_drupal_php_handling == 'proxy' %}
123122 ## Including the php-fpm status and ping pages config.
124123 include php_fpm_status_vhost.conf;
125- { %- endif - %}
124+ { %- endif %}
126125
127126 ## Including the Nginx stub status page for having stats about
128127 ## Nginx activity: http://wiki.nginx.org/HttpStubStatusModule.
@@ -231,8 +230,8 @@ server {
231230 return 405 ;
232231 }
233232
234- { % if not nginx_drupal_use_boost %}
235- { % if not nginx_drupal_escape_uri %}
233+ { % if not nginx_drupal_use_boost - %}
234+ { % if not nginx_drupal_escape_uri - %}
236235 ################################################################
237236 ### Generic configuration: for most Drupal 7 sites.
238237 ################################################################
@@ -243,30 +242,30 @@ server {
243242 ### to be **escaped**
244243 ################################################################
245244 include apps/drupal/drupal_escaped.conf;
246- { % endif %}
247- { % else %}
248- { % if not nginx_drupal_escape_uri %}
245+ { %- endif - %}
246+ { %- else %}
247+ { %- if not nginx_drupal_escape_uri %}
249248 #################################################################
250249 ### Configuration for Drupal 7 sites that use boost.
251250 #################################################################
252251 include apps/drupal/drupal_boost.conf;
253- { % else %}
252+ { %- else %}
254253 #################################################################
255254 ### Configuration for Drupal 7 sites that use boost if having
256255 ### to serve URIs that need to be **escaped**
257256 #################################################################
258257 include apps/drupal/drupal_boost_escaped.conf;
259- { % endif %}
260- { % endif %}
258+ { %- endif - %}
259+ { %- endif - %}
261260
262- { % if not nginx_drupal_use_drush %}
261+ { %- if not nginx_drupal_use_drush %}
263262 #################################################################
264263 ### Configuration for updating the site via update.php and running
265264 ### cron externally. If you don't use drush for running cron use
266265 ### the configuration below.
267266 #################################################################
268267 include apps/drupal/drupal_cron_update.conf;
269- { % endif %}
268+ { %- endif - %}
270269
271270 ################################################################
272271 ### Installation handling. This should be commented out after
@@ -275,24 +274,24 @@ server {
275274 ### line below and comment out after installation. Note that
276275 ### there's a basic auth in front as secondary ligne of defense.
277276 ################################################################
278- { % if nginx_drupal_allow_install %}
277+ { % if nginx_drupal_allow_install - %}
279278 include apps/drupal/drupal_install.conf;
280- { % else %}
279+ { % else - %}
281280 #include apps/drupal/drupal_install.conf;
282- { % endif %}
281+ { %- endif %}
283282
284- { %- if nginx_drupal_upload_progress %}
283+ { % if nginx_drupal_upload_progress - %}
285284 #################################################################
286285 ### Support for upload progress bar. Configurations differ for
287286 ### Drupal 6 and Drupal 7.
288287 #################################################################
289288 include apps/drupal/drupal_upload_progress.conf;
290- { %- endif - %}
289+ { %- endif %}
291290
292- { % if nginx_drupal_php_handling == 'proxy' %}
291+ { %- if nginx_drupal_php_handling == 'proxy' %}
293292 ## Including the php-fpm status and ping pages config.
294293 include php_fpm_status_vhost.conf;
295- { % endif %}
294+ { %- endif %}
296295
297296 ## Including the Nginx stub status page for having stats about
298297 ## Nginx activity: http://wiki.nginx.org/HttpStubStatusModule.
0 commit comments