diff options
author | Florian Dold <florian.dold@gmail.com> | 2016-03-01 23:32:25 +0100 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2016-03-01 23:32:25 +0100 |
commit | 8a1178cb9785495784ef200757e5b8a61772290a (patch) | |
tree | 763e5079bfa9f8948bd1fd217731329b24d2d0d3 /etc/nginx/apps/drupal/drupal_cron_update.conf | |
parent | b03a3623188e2f7e32ca226877f6f4a28d4471db (diff) | |
download | deployment-8a1178cb9785495784ef200757e5b8a61772290a.tar.gz deployment-8a1178cb9785495784ef200757e5b8a61772290a.tar.bz2 deployment-8a1178cb9785495784ef200757e5b8a61772290a.zip |
missing drupal stuff
Diffstat (limited to 'etc/nginx/apps/drupal/drupal_cron_update.conf')
-rw-r--r-- | etc/nginx/apps/drupal/drupal_cron_update.conf | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/etc/nginx/apps/drupal/drupal_cron_update.conf b/etc/nginx/apps/drupal/drupal_cron_update.conf new file mode 100644 index 0000000..55500e9 --- /dev/null +++ b/etc/nginx/apps/drupal/drupal_cron_update.conf @@ -0,0 +1,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 phpcgi; + # 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 phpcgi; + ## 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 phpcgi; + ## 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 phpcgi; + ## To use Apache for serving PHP uncomment the line bellow and + ## comment out the above. + #proxy_pass http://phpapache; +} |