Skip to content

Nginx with Modsecurity: POST request gives 500 error #582

Closed
@pijnack

Description

@pijnack

Nginx with Modsecurity gives 500 errors after a POST request.

In error.log:

2013/10/23 13:21:07 [alert] 29432#0: *4 no upstream configuration, client: 88.159.16.136, server: test.huygenscollege.nl, request: "POST /proefwerk/prog/index.php?day=28&month=10&year=2013&klas=2 HTTP/1.1", host: "test.huygenscollege.nl", referrer: "http://test.huygenscollege.nl/proefwerk/prog/index.php?day=4&month=11&year=2013&klas=2"

In nginx.conf:

upstream smoothrac {
server 88.159.13.153;
}
server {
listen 80;
server_name test.huygenscollege.nl;
location / {
ModSecurityEnabled on;
ModSecurityConfig modsecurity.conf;
proxy_pass http://smoothrac/;
proxy_set_header Host test.huygenscollege.nl;
proxy_read_timeout 150s;
}
}

After changing ModSecurityEnabled on to off, the problem is gone.
I guess something is missing in my upstream configuration?

Piet Pijnacker,
Eindhoven, Netherlands

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions