I am have a problem
I am very confused. There is an extra "?" added to the end of the
rewrite. I have no idea why, I look at the logs, and is magically appears.
I want to reload the login page, but nothing happens, any ideas?
location /login/ {
if ($args) {
set $lin 1;
rewrite ^/login/login(.*)$ /auth$1;
}
alias /var/www/login/;
}
location /hzc/ws {
if ($http_cookie !~* 'hzc') {
rewrite ^/hzc(.*)$ /login/;
}
proxy_redirect off;
proxy_buffering off;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Real-Port $remote_port;
proxy_set_header X-Forwarded-For
$proxy_add_x_forwarded_for;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_http_version 1.1;
proxy_pass_request_headers on;
proxy_pass http://gofw;
}
2013/09/29 23:42:00 [debug] 3386#0: *1 test location: "hzc"
2013/09/29 23:42:00 [debug] 3386#0: *1 test location: "/ws"
2013/09/29 23:42:00 [debug] 3386#0: *1 using configuration "/hzc/ws"
2013/09/29 23:42:00 [debug] 3386#0: *1 http cl:-1 max:1048576
2013/09/29 23:42:00 [debug] 3386#0: *1 rewrite phase: 3
2013/09/29 23:42:00 [debug] 3386#0: *1 rewrite phase: 4
2013/09/29 23:42:00 [debug] 3386#0: *1 http script var
2013/09/29 23:42:00 [debug] 3386#0: *1 http script regex: "hzc"
2013/09/29 23:42:00 [notice] 3386#0: *1 "hzc" does not match "", client: ::ffff:127.0.0.1, server: localhost, request: "GET /hzc/ws HTTP/1.1", host: "localhost"
2013/09/29 23:42:00 [debug] 3386#0: *1 http script if
2013/09/29 23:42:00 [debug] 3386#0: *1 http script regex: "^/hzc(.*)$"
2013/09/29 23:42:00 [notice] 3386#0: *1 "^/hzc(.*)$" matches "/hzc/ws", client: ::ffff:127.0.0.1, server: localhost, request: "GET /hzc/ws HTTP/1.1", host: "localhost"
2013/09/29 23:42:00 [debug] 3386#0: *1 http script copy: "/login/"
2013/09/29 23:42:00 [debug] 3386#0: *1 http script regex end
2013/09/29 23:42:00 [notice] 3386#0: *1 rewritten data: "/login/", args: "", client: ::ffff:127.0.0.1, server: localhost, request: "GET /hzc/ws HTTP/1.1", host: "localhost"
2013/09/29 23:42:00 [debug] 3386#0: *1 post rewrite phase: 5
2013/09/29 23:42:00 [debug] 3386#0: *1 uri changes: 11
2013/09/29 23:42:00 [debug] 3386#0: *1 test location: "/"
2013/09/29 23:42:00 [debug] 3386#0: *1 test location: "gofw"
2013/09/29 23:42:00 [debug] 3386#0: *1 test location: "status"
2013/09/29 23:42:00 [debug] 3386#0: *1 test location: "login/"
2013/09/29 23:42:00 [debug] 3386#0: *1 using configuration "/login/"
2013/09/29 23:42:00 [debug] 3386#0: *1 http cl:-1 max:1048576
2013/09/29 23:42:00 [debug] 3386#0: *1 rewrite phase: 3
2013/09/29 23:42:00 [debug] 3386#0: *1 rewrite phase: 4
2013/09/29 23:42:00 [debug] 3386#0: *1 http script var
2013/09/29 23:42:00 [debug] 3386#0: *1 http script if
2013/09/29 23:42:00 [debug] 3386#0: *1 http script if: false
2013/09/29 23:42:00 [debug] 3386#0: *1 post rewrite phase: 5
2013/09/29 23:42:00 [debug] 3386#0: *1 generic phase: 6
2013/09/29 23:42:00 [debug] 3386#0: *1 generic phase: 7
2013/09/29 23:42:00 [debug] 3386#0: *1 generic phase: 8
2013/09/29 23:42:00 [debug] 3386#0: *1 access phase: 9
2013/09/29 23:42:00 [debug] 3386#0: *1 access phase: 10
2013/09/29 23:42:00 [debug] 3386#0: *1 access: 0100007F FFFFFFFF 0100007F
2013/09/29 23:42:00 [debug] 3386#0: *1 try files phase: 13
2013/09/29 23:42:00 [debug] 3386#0: *1 content phase: 14
2013/09/29 23:42:00 [debug] 3386#0: *1 content phase: 15
2013/09/29 23:42:00 [debug] 3386#0: *1 content phase: 16
2013/09/29 23:42:00 [debug] 3386#0: *1 open index "/var/www/login/index.html"
2013/09/29 23:42:00 [debug] 3386#0: *1 internal redirect: "/login/index.html?"
2013/09/29 23:42:00 [debug] 3386#0: *1 rewrite phase: 1
2013/09/29 23:42:00 [debug] 3386#0: *1 test location: "/"
2013/09/29 23:42:00 [debug] 3386#0: *1 test location: "gofw"
2013/09/29 23:42:00 [debug] 3386#0: *1 test location: "status"
2013/09/29 23:42:00 [debug] 3386#0: *1 test location: "login/"
2013/09/29 23:42:00 [debug] 3386#0: *1 test location: "regst"
2013/09/29 23:42:00 [debug] 3386#0: *1 test location: "forgot"
2013/09/29 23:42:00 [debug] 3386#0: *1 using configuration "/login/"
2013/09/29 23:42:00 [debug] 3386#0: *1 http cl:-1 max:1048576
2013/09/29 23:42:00 [debug] 3386#0: *1 rewrite phase: 3
2013/09/29 23:42:00 [debug] 3386#0: *1 rewrite phase: 4
2013/09/29 23:42:00 [debug] 3386#0: *1 http script var
2013/09/29 23:42:00 [debug] 3386#0: *1 http script if
2013/09/29 23:42:00 [debug] 3386#0: *1 http script if: false
2013/09/29 23:42:00 [debug] 3386#0: *1 post rewrite phase: 5
2013/09/29 23:42:00 [debug] 3386#0: *1 generic phase: 6
2013/09/29 23:42:00 [debug] 3386#0: *1 generic phase: 7
2013/09/29 23:42:00 [debug] 3386#0: *1 generic phase: 8
2013/09/29 23:42:00 [debug] 3386#0: *1 access phase: 9
2013/09/29 23:42:00 [debug] 3386#0: *1 access phase: 10
2013/09/29 23:42:00 [debug] 3386#0: *1 access: 0100007F FFFFFFFF 0100007F
2013/09/29 23:42:00 [debug] 3386#0: *1 try files phase: 13
2013/09/29 23:42:00 [debug] 3386#0: *1 content phase: 14
2013/09/29 23:42:00 [debug] 3386#0: *1 content phase: 15
2013/09/29 23:42:00 [debug] 3386#0: *1 content phase: 16
2013/09/29 23:42:00 [debug] 3386#0: *1 content phase: 17
2013/09/29 23:42:00 [debug] 3386#0: *1 content phase: 18
2013/09/29 23:42:00 [debug] 3386#0: *1 content phase: 19
2013/09/29 23:42:00 [debug] 3386#0: *1 content phase: 20
2013/09/29 23:42:00 [debug] 3386#0: *1 content phase: 21
2013/09/29 23:42:00 [debug] 3386#0: *1 http filename: "/var/www/login/index.html"
2013/09/29 23:42:00 [debug] 3386#0: *1 add cleanup: 0000000000A487D8
2013/09/29 23:42:00 [debug] 3386#0: *1 http static fd: 21
2013/09/29 23:42:00 [debug] 3386#0: *1 http set discard body
2013/09/29 23:42:00 [debug] 3386#0: *1 uploadprogress error-tracker error: 0
2013/09/29 23:42:00 [debug] 3386#0: *1 xslt filter header
2013/09/29 23:42:00 [debug] 3386#0: *1 HTTP/1.1 200 OK
Server: nginx/1.4.1
Date: Mon, 30 Sep 2013 06:42:00 GMT
Content-Type: text/html
Content-Length: 8516
Last-Modified: Sun, 29 Sep 2013 10:00:06 GMT
Connection: keep-alive
ETag: "5247fa26-2143"
Accept-Ranges: bytes
2013/09/29 23:42:00 [debug] 3386#0: *1 write new buf t:1 f:0 0000000000A3EA28, pos 0000000000A3EA28, size: 239 file: 0, size: 0
2013/09/29 23:42:00 [debug] 3386#0: *1 http write filter: l:0 f:0 s:239
2013/09/29 23:42:00 [debug] 3386#0: *1 http output filter "/login/index.html?"
2013/09/29 23:42:00 [debug] 3386#0: *1 http copy filter: "/login/index.html?"
2013/09/29 23:42:00 [debug] 3386#0: *1 image filter
2013/09/29 23:42:00 [debug] 3386#0: *1 xslt filter body
2013/09/29 23:42:00 [debug] 3386#0: *1 http postpone filter "/login/index.html?" 00007FFF970FC630
2013/09/29 23:42:00 [debug] 3386#0: *1 write old buf t:1 f:0 0000000000A3EA28, pos 0000000000A3EA28, size: 239 file: 0, size: 0
2013/09/29 23:42:00 [debug] 3386#0: *1 write new buf t:0 f:1 0000000000000000, pos 0000000000000000, size: 0 file: 0, size: 8515
2013/09/29 23:42:00 [debug] 3386#0: *1 http write filter: l:1 f:0 s:8754
2013/09/29 23:42:00 [debug] 3386#0: *1 http write filter limit 0
2013/09/29 23:42:00 [debug] 3386#0: *1 tcp_nopush
2013/09/29 23:42:00 [debug] 3386#0: *1 writev: 239
2013/09/29 23:42:00 [debug] 3386#0: *1 sendfile: @0 8515
2013/09/29 23:42:00 [debug] 3386#0: *1 sendfile: 8515, @0 8515:8515
2013/09/29 23:42:00 [debug] 3386#0: *1 http write filter 0000000000000000
2013/09/29 23:42:00 [debug] 3386#0: *1 http copy filter: 0 "/login/index.html?"
2013/09/29 23:42:00 [debug] 3386#0: *1 http finalize request: 0, "/login/index.html?" a:1, c:2
2013/09/29 23:42:00 [debug] 3386#0: *1 http request count:2 blk:0
2013/09/29 23:42:00 [debug] 3386#0: *1 http finalize request: -4, "/login/index.html?" a:1, c:1
2013/09/29 23:42:00 [debug] 3386#0: *1 set http keepalive handler
2013/09/29 23:42:00 [debug] 3386#0: *1 http close request
2013/09/29 23:42:00 [debug] 3386#0: *1 http log handler
2013/09/29 23:42:00 [debug] 3386#0: *1 run cleanup: 0000000000A487D8
2013/09/29 23:42:00 [debug] 3386#0: *1 file cleanup: fd:21
2013/09/29 23:42:00 [debug] 3386#0: *1 free: 0000000000A477F0, unused: 0
2013/09/29 23:42:00 [debug] 3386#0: *1 free: 0000000000A3E2F0, unused: 1630
2013/09/29 23:42:00 [debug] 3386#0: *1 free: 0000000000B34730
2013/09/29 23:42:00 [debug] 3386#0: *1 hc free: 0000000000000000 0
2013/09/29 23:42:00 [debug] 3386#0: *1 hc busy: 0000000000000000 0
2013/09/29 23:42:00 [debug] 3386#0: *1 reusable connection: 1
2013/09/29 23:42:00 [debug] 3386#0: *1 event timer add: 20: 65000:1380523385950
2013/09/29 23:42:00 [debug] 3386#0: *1 post event 0000000000B3E768
2013/09/29 23:42:00 [debug] 3386#0: *1 delete posted event 0000000000B3E768
2013/09/29 23:42:00 [debug] 3386#0: *1 http keepalive handler
2013/09/29 23:42:00 [debug] 3386#0: *1 malloc: 0000000000B34730:1024
2013/09/29 23:42:00 [debug] 3386#0: *1 recv: fd:20 -1 of 1024
2013/09/29 23:42:00 [debug] 3386#0: *1 recv() not ready (11: Resource temporarily unavailable)
2013/09/29 23:42:00 [debug] 3386#0: *1 free: 0000000000B34730
2013/09/29 23:42:00 [debug] 3386#0: *1 post event 0000000000B3E768
2013/09/29 23:42:00 [debug] 3386#0: *1 delete posted event 0000000000B3E768
2013/09/29 23:42:00 [debug] 3386#0: *1 http keepalive handler
2013/09/29 23:42:00 [debug] 3386#0: *1 malloc: 0000000000B34730:1024
2013/09/29 23:42:00 [debug] 3386#0: *1 recv: fd:20 0 of 1024
2013/09/29 23:42:00 [info] 3386#0: *1 client ::ffff:127.0.0.1 closed keepalive connection
2013/09/29 23:42:00 [debug] 3386#0: *1 close http connection: 20
2013/09/29 23:42:00 [debug] 3386#0: *1 event timer del: 20: 1380523385950
2013/09/29 23:42:00 [debug] 3386#0: *1 reusable connection: 0
2013/09/29 23:42:00 [debug] 3386#0: *1 free: 0000000000B34730
2013/09/29 23:42:00 [debug] 3386#0: *1 free: 0000000000B31990, unused: 8
2013/09/29 23:42:00 [debug] 3386#0: *1 free: 0000000000A39EA0, unused: 72
2013/09/29 23:49:41 [info] 3427#0: Using 32768KiB of shared memory for push module in /etc/nginx/nginx.conf:73
2013/09/29 23:49:42 [debug] 3440#0: epoll add event: fd:7 op:1 ev:00000001
_______________________________________________
nginx mailing list
[email protected]
http://mailman.nginx.org/mailman/listinfo/nginx