Hello,

I'm trying to work with services module to make some desktop application for drupal.

I'm using REST server. I can make GET and POST requests but PUT and DELETE are not working for some reason. Could it be that on Barracuda those methods are forbiden or something ?

Comments

dmiric’s picture

Yeah I found it my self. Infact they are disabled.

If anyone else has this problem check:

/var/aegir/config/includes/nginx_advanced_include.conf

omega8cc’s picture

BOA allows only requests required by Drupal and supported in Nginx by default: GET, HEAD and POST.

If you need more, you will need to fork BOA to add this: http://wiki.nginx.org/HttpDavModule and also modify its Nginx configuration.

omega8cc’s picture

Title: Http request methods PUT DELETE » Nginx configuration denies HTTP request methods PUT DELETE and OPTIONS
Project: Barracuda » Provision
Version: » 6.x-1.x-dev
Component: Miscellaneous » HTTP Service
Assigned: Unassigned » omega8cc
Category: support » bug

I'm moving this over to the correct issue queue.

Also related: #1524738: CORS support in barracuda

omega8cc’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

  • Commit a0ad4ca on dev-drupal-8, dev-nginx-6.x-1.x, dev-ssl-ip-allocation-refactor, dev-1205458-move_sites_out_of_platforms, 7.x-3.x, dev-subdir-multiserver, 6.x-2.x-backports, dev-helmo-3.x by omega8cc:
    Issue #1472460 by dmiric and #1524738 by flexgrip - Nginx configuration...
  • Commit 37504d6 on dev-nginx-6.x-2.x, dev-ssl-ip-allocation-refactor, dev-1205458-move_sites_out_of_platforms, 7.x-3.x, dev-subdir-multiserver, 6.x-2.x-backports, dev-helmo-3.x by omega8cc:
    Issue #1472460 by dmiric and #1524738 by flexgrip - Nginx configuration...