-
Notifications
You must be signed in to change notification settings - Fork 246
/
Copy pathdrupal_cron_update.conf
40 lines (36 loc) · 1.32 KB
/
drupal_cron_update.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# -*- mode: nginx; mode:autopair; mode: flyspell-prog; ispell-local-dictionary: "american" -*-
### Configuration file for Drupal if you're not using drush to update your site or run cron.
## XMLRPC. Comment out if not enabled.
location = /xmlrpc.php {
fastcgi_pass $custom_upstream;
# To use Apache for serving PHP uncomment the line bellow and
# comment out the above.
#proxy_pass http://phpapache;
}
## Restrict cron access to a specific host.
location = /cron.php {
## If not allowed to run cron then issue a 404 and redirect to the
## site root.
if ($not_allowed_cron) {
return 404 /;
}
fastcgi_pass $custom_upstream;
## To use Apache for serving PHP uncomment the line bellow and
## comment out the above.
#proxy_pass http://phpapache;
}
## Run the update from the web interface with Drupal 7.
location = /authorize.php {
fastcgi_pass $custom_upstream;
## To use Apache for serving PHP uncomment the line bellow and
## comment out the above.
#proxy_pass http://phpapache;
}
location = /update.php {
auth_basic "Restricted Access"; # auth realm
auth_basic_user_file .htpasswd-users; # htpasswd file
fastcgi_pass $custom_upstream;
## To use Apache for serving PHP uncomment the line bellow and
## comment out the above.
#proxy_pass http://phpapache;
}