Welcome! Log In Create A New Profile

Advanced

Alias regex use causing core dump as of nginx 1.7.1

July 26, 2015 10:25AM
Hi, after upgrading from the v1.6.3 to v1.8.0 stable branch an alias I used for Roundcubemail no longer works.
I traced the issue back to a probable change made in nginx v1.7.1:
"Bugfix: the "alias" directive used inside a location given by a regular expression worked incorrectly if the "if" or "limit_except" directives were used."

In version 1.6.3 and 1.7.0 the following works fine:
## Roundcubemail for Remi repository
location ~ ^/mail/(.+\.php)$ {
alias /usr/share/roundcubemail/$1;
client_max_body_size 5M;
fastcgi_pass _php;
}
location ~ /mail {
alias /usr/share/roundcubemail/;
client_max_body_size 5M;
try_files $uri $uri/ /index.php;
}

But in v1.7.1 it causes nginx to core dump if I visit the url domain.com/mail and if I visit domain.com/mail/ I get taken to the front page.

[notice] 26221#0: signal 17 (SIGCHLD) received
[alert] 26221#0: worker process 26223 exited on signal 11 (core dumped)
[notice] 26221#0: start worker process 26231
[notice] 26221#0: signal 29 (SIGIO) received
Subject Author Posted

Alias regex use causing core dump as of nginx 1.7.1

Per Hansson July 26, 2015 10:25AM

Re: Alias regex use causing core dump as of nginx 1.7.1

Maxim Dounin July 27, 2015 01:48AM

Re: Alias regex use causing core dump as of nginx 1.7.1

Per Hansson July 27, 2015 07:26AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 272
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready