Skip to content
GitLab
About GitLab
GitLab: the DevOps platform
Explore GitLab
Install GitLab
How GitLab compares
Get started
GitLab docs
GitLab Learn
Pricing
Talk to an expert
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Projects
Groups
Snippets
Sign up now
Login
Sign in
Toggle navigation
Menu
Open sidebar
project
provision
Commits
d65a1257
Commit
d65a1257
authored
Dec 23, 2014
by
Grazyna Jaworska
Browse files
Nginx: Drupal 8 with clean urls enabled should use /cron/ URI.
parent
7dfd6c00
Changes
2
Hide whitespace changes
Inline
Side-by-side
http/Provision/Config/Nginx/Inc/vhost_include.tpl.php
View file @
d65a1257
...
...
@@ -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;
}
###
...
...
http/Provision/Config/Nginx/subdir.tpl.php
View file @
d65a1257
...
...
@@ -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.
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment