Custom Query (2297 matches)
Results (58 - 60 of 2297)
Ticket | Resolution | Summary | Owner | Reporter |
---|---|---|---|---|
#817 | invalid | Wrong or undocumented srever resolving | ||
Description |
I you mix listen <ip_name>:80 and listen 80 Than servers with listen 80 ignored and default (first) server {...} section always win Example: conf file server {
} server {
} $ wget -O- -S --header 'Host: name2' 'http://10.253.55.22/name2' --2015-10-20 00:40:02-- http://10.253.55.22/name2 Connecting to 10.253.55.22:80... connected. HTTP request sent, awaiting response...
Authorization failed. 401 returned, server name1 But server name2 (and code 402) expected |
|||
#978 | invalid | Wrong link header concatenation | ||
Description |
Nginx combines multiple link headers in a wrong way when being used as a HTTP reverse proxy. Multiple link headers are concatenated to a single link header, separated with a ";". However, multiple link header values must be concatenated with ",". |
|||
#733 | duplicate | wrong internal redirect using alias and try_files | ||
Description |
Hey guys I just discovered a very strange bug ( or so i think ) Config looks like this: server { listen 80; server_name mydomain.com; root /home/mydomain.com/public; index index.php; charset utf-8; location ^~ /app1 { alias /home/mydomain.com/app1/public; try_files $uri $uri/ /app1/index.php?$query_string; location ~ \.php$ { fastcgi_split_path_info ^(.+\.php)(/.+)$; fastcgi_pass unix:/var/run/php5-fpm.sock; fastcgi_param SCRIPT_FILENAME $request_filename; fastcgi_index index.php; include fastcgi_params; } } location ^~ /app2 { alias /home/mydomain.com/app2/public; try_files $uri $uri/ /app2/index.php?$query_string; location ~ \.php$ { fastcgi_split_path_info ^(.+\.php)(/.+)$; fastcgi_pass unix:/var/run/php5-fpm.sock; fastcgi_param SCRIPT_FILENAME $request_filename; fastcgi_index index.php; include fastcgi_params; } } location / { try_files $uri $uri/ /index.php?$query_string; location ~ \.php$ { fastcgi_split_path_info ^(.+\.php)(/.+)$; fastcgi_pass unix:/var/run/php5-fpm.sock; fastcgi_index index.php; include fastcgi_params; fastcgi_param SCRIPT_FILENAME $request_filename; } } A request to mydomain.com/test?x=1 will FAIL and go to mydomain.com/index.php?x=1 Debug log: 2015/03/15 07:01:36 [debug] 21909#0: *1 generic phase: 0 2015/03/15 07:01:36 [debug] 21909#0: *1 rewrite phase: 1 2015/03/15 07:01:36 [debug] 21909#0: *1 test location: "/" 2015/03/15 07:01:36 [debug] 21909#0: *1 test location: "favicon.ico" 2015/03/15 07:01:36 [debug] 21909#0: *1 test location: "app2" 2015/03/15 07:01:36 [debug] 21909#0: *1 test location: "app1" 2015/03/15 07:01:36 [debug] 21909#0: *1 test location: ~ "\.php$" 2015/03/15 07:01:36 [debug] 21909#0: *1 using configuration "/app1" 2015/03/15 07:01:36 [debug] 21909#0: *1 http cl:-1 max:1048576 2015/03/15 07:01:36 [debug] 21909#0: *1 rewrite phase: 3 2015/03/15 07:01:36 [debug] 21909#0: *1 post rewrite phase: 4 2015/03/15 07:01:36 [debug] 21909#0: *1 generic phase: 5 2015/03/15 07:01:36 [debug] 21909#0: *1 generic phase: 6 2015/03/15 07:01:36 [debug] 21909#0: *1 generic phase: 7 2015/03/15 07:01:36 [debug] 21909#0: *1 generic phase: 8 2015/03/15 07:01:36 [debug] 21909#0: *1 access phase: 9 2015/03/15 07:01:36 [debug] 21909#0: *1 access phase: 10 2015/03/15 07:01:36 [debug] 21909#0: *1 post access phase: 11 2015/03/15 07:01:36 [debug] 21909#0: *1 try files phase: 12 2015/03/15 07:01:36 [debug] 21909#0: *1 http script var: "/app1/test" 2015/03/15 07:01:36 [debug] 21909#0: *1 trying to use file: "/test" "/home/mydomain.com/app1/public/test" 2015/03/15 07:01:36 [debug] 21909#0: *1 http script var: "/app1/test" 2015/03/15 07:01:36 [debug] 21909#0: *1 trying to use dir: "/test" "/home/mydomain.com/app1/public/test" 2015/03/15 07:01:36 [debug] 21909#0: *1 http script copy: "/app1/index.php?" 2015/03/15 07:01:36 [debug] 21909#0: *1 http script var: "a=1" 2015/03/15 07:01:36 [debug] 21909#0: *1 trying to use file: "/index.php?a=1" "/home/mydomain.com/app1/public/index.php?a=1" 2015/03/15 07:01:36 [debug] 21909#0: *1 internal redirect: "/index.php?a=1" 2015/03/15 07:01:36 [debug] 21909#0: *1 rewrite phase: 1 2015/03/15 07:01:36 [debug] 21909#0: *1 test location: "/" 2015/03/15 07:01:36 [debug] 21909#0: *1 test location: "favicon.ico" 2015/03/15 07:01:36 [debug] 21909#0: *1 test location: "robots.txt" 2015/03/15 07:01:36 [debug] 21909#0: *1 test location: ~ "\.php$" 2015/03/15 07:01:36 [debug] 21909#0: *1 using configuration "\.php$" 2015/03/15 07:01:36 [debug] 21909#0: *1 http cl:-1 max:1048576 2015/03/15 07:01:36 [debug] 21909#0: *1 rewrite phase: 3 2015/03/15 07:01:36 [debug] 21909#0: *1 post rewrite phase: 4 2015/03/15 07:01:36 [debug] 21909#0: *1 generic phase: 5 2015/03/15 07:01:36 [debug] 21909#0: *1 generic phase: 6 2015/03/15 07:01:36 [debug] 21909#0: *1 generic phase: 7 2015/03/15 07:01:36 [debug] 21909#0: *1 generic phase: 8 2015/03/15 07:01:36 [debug] 21909#0: *1 access phase: 9 2015/03/15 07:01:36 [debug] 21909#0: *1 access phase: 10 2015/03/15 07:01:36 [debug] 21909#0: *1 post access phase: 11 2015/03/15 07:01:36 [debug] 21909#0: *1 try files phase: 12 2015/03/15 07:01:36 [debug] 21909#0: *1 posix_memalign: 0000000000E780E0:4096 @16 2015/03/15 07:01:36 [debug] 21909#0: *1 http init upstream, client timer: 0 .... As you can see, it founded the file, but the internal redirect stripped the path. As a workaround i had to add try_files $uri $uri/ /app1/app1/index.php?$query_string; This ... works ! /app1 is stripped once => valid path :) I've tested this on nginx1.0.15 centos 6 x64 i manually compiled 1.7.10 and latest stable 1.6.2 from nginx repo All 3 had the same behaviour Thanks |