Commit d65a1257 authored by omega8cc's avatar omega8cc

Nginx: Drupal 8 with clean urls enabled should use /cron/ URI.

parent 7dfd6c00
......@@ -224,22 +224,13 @@ location = /cron.php {
### Allow local access to support wget method in Aegir settings
### for running sites cron in Drupal 8.
###
location = /core/cron.php {
tcp_nopush off;
keepalive_requests 0;
location = /cron/ {
access_log off;
<?php if ($satellite_mode == 'boa'): ?>
allow 127.0.0.1;
deny all;
<?php endif; ?>
try_files $uri =404;
<?php if ($satellite_mode == 'boa'): ?>
fastcgi_pass unix:/var/run/www53.fpm.socket;
<?php elseif ($phpfpm_mode == 'port'): ?>
fastcgi_pass 127.0.0.1:9000;
<?php else: ?>
fastcgi_pass unix:/var/run/php5-fpm.sock;
<?php endif; ?>
try_files $uri @drupal;
}
###
......
......@@ -242,6 +242,19 @@ location ^~ /<?php print $subdir; ?> {
<?php endif; ?>
}
###
### Allow local access to support wget method in Aegir settings
### for running sites cron in Drupal 8.
###
location = /<?php print $subdir; ?>/cron/ {
<?php if ($satellite_mode == 'boa'): ?>
access_log off;
allow 127.0.0.1;
deny all;
<?php endif; ?>
try_files $uri @drupal_<?php print $subdir; ?>;
}
###
### Send search to php-fpm early so searching for node.js will work.
### Deny bots on search uri.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment