Skip to content

Commit abc42d7

Browse files
committed
Merge pull request #7 from TallerWebSolutions/master
if not using drush, needs access for cron.php file
2 parents 70243cb + 98fee87 commit abc42d7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

templates/nginx.j2

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,10 +211,12 @@ http {
211211
## Include the Nginx stub status allowed hosts configuration block.
212212
include nginx_status_allowed_hosts.conf;
213213

214+
{%- if not nginx_drupal_use_drush %}
214215
## If you want to run cron using Drupal cron.php. i.e., you're not
215216
## using drush then uncomment the line below. Specify in
216217
## cron_allowed_hosts.conf which hosts can invole cron.
217-
# include apps/drupal/cron_allowed_hosts.conf;
218+
include apps/drupal/cron_allowed_hosts.conf;
219+
{%- endif -%}
218220

219221
## Include blacklist for bad bot and referer blocking.
220222
include blacklist.conf;

0 commit comments

Comments
 (0)