Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

berrnd
Copy link

@berrnd berrnd commented Jun 1, 2014

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

@lluis
Copy link

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
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

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