wildcard redirect

Gena Makhomed gmm at csdoc.com
Wed Aug 12 18:16:11 MSD 2009


On Wednesday, August 12, 2009 at 16:07:41, InterNetX - Jurgen Gotteswinter wrote:

IJG> 2009/08/12 15:04:49 [notice] 16134#0: *78 "^/(.*)" matches "/", client:
IJG> 62.116.135.150, server: *.xxx.com, request: "GET / HTTP/1.0", host: 
IJG> "login.xxx.com"

IJG> 2009/08/12 15:04:49 [notice] 16134#0: *78 rewritten redirect: 
IJG> "https://login.xxx.com/", client: 62.116.135.150, server: *.xxx.com, 
IJG> request: "GET / HTTP/1.0", host: "login.xxx.com"

in your config not exist server with server_name login.xxx.com;
and server name login.xxx.com matched by server_name *.xxx.com;

>>> but it loops :(

workaround:

explicitly define

  server_name login.xxx.com;

in virtual server listen on ssl socket.

>>> server {
>>>  listen               xxxxx:443;
>>>
>>>     server_name _;

-- 
Best regards,
 Gena






More information about the nginx mailing list