Skip to content

Can't register device when odm-web is running on nginx#24

Open
berrnd wants to merge 1 commit intoFmstrat:masterfrom
berrnd:master
Open

Can't register device when odm-web is running on nginx#24
berrnd wants to merge 1 commit intoFmstrat:masterfrom
berrnd:master

Conversation

@berrnd
Copy link
Copy Markdown

@berrnd berrnd commented Jun 1, 2014

Nginx doesn't support post requests without a Content-Length header...

@lluis
Copy link
Copy Markdown

lluis commented Nov 5, 2014

which nginx version? on changelog:

Changes with nginx 0.7.25                                        08 Dec 2008
    *) Change: now POSTs without "Content-Length" header line are allowed.

@berrnd
Copy link
Copy Markdown
Author

berrnd commented Nov 5, 2014

I had this problem with nginx 1.7.1 on a Ubuntu 12.04 x64 machine...

@lluis
Copy link
Copy Markdown

lluis commented Nov 5, 2014

I am running nginx 1.6.2-4 on Debian 7.7 but don't have that issue, here is my nginx conf:

location /odm {
  root /srv/odm-web;
  index index.php;
  auth_basic           "Restricted Area";
  auth_basic_user_file htpasswd;
  location ~ \.php$ {
    fastcgi_split_path_info ^(.+\.php)(/.+)$;
    fastcgi_pass unix:/var/run/php5-fpm.sock;
    fastcgi_index index.php;
    include fastcgi_params;
  }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants