tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Hole" <andremailingl...@gmail.com>
Subject Re: HTTP/1.1 400 no host matches server name
Date Wed, 26 Sep 2007 11:27:23 GMT
Do you have some suggestion to solve this problem?

On 9/26/07, Andrew Hole <andremailinglist@gmail.com> wrote:
> Host name on server.xml:
>
>  <Host name="localhost" appBase="webapps"
>
> On 9/26/07, Andrew Hole <andremailinglist@gmail.com> wrote:
> > This is output from mod_jk debug:
> >
> > [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_uri_worker_map.c
> > (545): Found an exact match pfhbalancer -> /outpat/gateway
> > [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] mod_jk.c (1832): Into
> > handler jakarta-servlet worker=pfhbalancer r->proxyreq=0
> > [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_worker.c (111):
> > found a worker pfhbalancer
> > [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] mod_jk.c (531): Service
> > protocol=HTTP/1.1 method=GET host=(null) addrr=192.168.2.52
> > name=devwin01 port=80 auth=(null) user=(null) laddr=192.168.1.204
> > raddr=192.168.2.52
> > [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_lb_worker.c (628):
> > service sticky_session=1
> > [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_lb_worker.c (538):
> > total sessionid is EB1EE907B4E84B633C20328CD4FF7F52
> > [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_lb_worker.c (548):
> > searching worker for partial sessionid
> > EB1EE907B4E84B633C20328CD4FF7F52
> > [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_lb_worker.c (600):
> > found best worker upg4out (upg4out) using method 'Request'
> > [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_ajp_common.c (2164):
> > acquired connection pool slot=0
> > [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_lb_worker.c (648):
> > service worker=upg4out jvm_route=upg4out
> > [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_ajp_common.c (566):
> > ajp marshaling done
> > [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_ajp_common.c (1698):
> > processing upg4out with 2 retries
> > [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_connect.c (329):
> > socket TCP_NODELAY set to On
> > [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_connect.c (427):
> > trying to connect socket 2784 to 127.0.0.1:8060
> > [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_connect.c (453):
> > socket 2784 connected to 127.0.0.1:8060
> > [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_ajp_common.c (864):
> > Connected socket 2784 to (127.0.0.1:8060)
> > [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_ajp_common.c (909):
> > sending to ajp13 pos=4 len=513 max=8192
> > [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_ajp_common.c (909):
> > 0000    12 34 01 FD 02 02 00 08 48 54 54 50 2F 31 2E 31  -
> > .4......HTTP/1.1
> > [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_ajp_common.c (909):
> > 0010    00 00 0F 2F 6F 75 74 70 61 74 2F 67 61 74 65 77  -
> > .../outpat/gatew
> > [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_ajp_common.c (909):
> > 0020    61 79 00 00 0C 31 39 32 2E 31 36 38 2E 32 2E 35  -
> > ay...192.168.2.5
> > [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_ajp_common.c (909):
> > 0030    32 00 FF FF 00 08 64 65 76 77 69 6E 30 31 00 00  -
> > 2.....devwin01..
> > [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_ajp_common.c (909):
> > 0040    50 00 00 0B A0 0B 00 08 64 65 76 77 69 6E 30 31  -
> > P.......devwin01
> > [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_ajp_common.c (909):
> > 0050    00 A0 0E 00 5A 4D 6F 7A 69 6C 6C 61 2F 35 2E 30  -
> > ....ZMozilla/5.0
> > [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_ajp_common.c (909):
> > 0060    20 28 57 69 6E 64 6F 77 73 3B 20 55 3B 20 57 69  -
> > .(Windows;.U;.Wi
> > [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_ajp_common.c (909):
> > 0070    6E 64 6F 77 73 20 4E 54 20 35 2E 31 3B 20 70 74  -
> > ndows.NT.5.1;.pt
> > [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_ajp_common.c (909):
> > 0080    2D 50 54 3B 20 72 76 3A 31 2E 38 2E 31 2E 37 29  -
> > -PT;.rv:1.8.1.7)
> > [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_ajp_common.c (909):
> > 0090    20 47 65 63 6B 6F 2F 32 30 30 37 30 39 31 34 20  -
> > .Gecko/20070914.
> > [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_ajp_common.c (909):
> > 00a0    46 69 72 65 66 6F 78 2F 32 2E 30 2E 30 2E 37 00  -
> > Firefox/2.0.0.7.
> > [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_ajp_common.c (909):
> > 00b0    A0 01 00 63 74 65 78 74 2F 78 6D 6C 2C 61 70 70  -
> > ...ctext/xml,app
> > [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_ajp_common.c (909):
> > 00c0    6C 69 63 61 74 69 6F 6E 2F 78 6D 6C 2C 61 70 70  -
> > lication/xml,app
> > [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_ajp_common.c (909):
> > 00d0    6C 69 63 61 74 69 6F 6E 2F 78 68 74 6D 6C 2B 78  -
> > lication/xhtml+x
> > [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_ajp_common.c (909):
> > 00e0    6D 6C 2C 74 65 78 74 2F 68 74 6D 6C 3B 71 3D 30  -
> > ml,text/html;q=0
> > [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_ajp_common.c (909):
> > 00f0    2E 39 2C 74 65 78 74 2F 70 6C 61 69 6E 3B 71 3D  -
> > .9,text/plain;q=
> > [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_ajp_common.c (909):
> > 0100    30 2E 38 2C 69 6D 61 67 65 2F 70 6E 67 2C 2A 2F  -
> > 0.8,image/png,*/
> > [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_ajp_common.c (909):
> > 0110    2A 3B 71 3D 30 2E 35 00 A0 04 00 23 70 74 2D 70  -
> > *;q=0.5....#pt-p
> > [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_ajp_common.c (909):
> > 0120    74 2C 70 74 3B 71 3D 30 2E 38 2C 65 6E 3B 71 3D  -
> > t,pt;q=0.8,en;q=
> > [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_ajp_common.c (909):
> > 0130    30 2E 35 2C 65 6E 2D 75 73 3B 71 3D 30 2E 33 00  -
> > 0.5,en-us;q=0.3.
> > [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_ajp_common.c (909):
> > 0140    A0 03 00 0C 67 7A 69 70 2C 64 65 66 6C 61 74 65  -
> > ....gzip,deflate
> > [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_ajp_common.c (909):
> > 0150    00 A0 02 00 1E 49 53 4F 2D 38 38 35 39 2D 31 2C  -
> > .....ISO-8859-1,
> > [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_ajp_common.c (909):
> > 0160    75 74 66 2D 38 3B 71 3D 30 2E 37 2C 2A 3B 71 3D  -
> > utf-8;q=0.7,*;q=
> > [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_ajp_common.c (909):
> > 0170    30 2E 37 00 00 0A 4B 65 65 70 2D 41 6C 69 76 65  -
> > 0.7...Keep-Alive
> > [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_ajp_common.c (909):
> > 0180    00 00 03 33 30 30 00 A0 06 00 0A 6B 65 65 70 2D  -
> > ...300.....keep-
> > [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_ajp_common.c (909):
> > 0190    61 6C 69 76 65 00 A0 09 00 38 4A 53 45 53 53 49  -
> > alive....8JSESSI
> > [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_ajp_common.c (909):
> > 01a0    4F 4E 49 44 3D 45 42 31 45 45 39 30 37 42 34 45  -
> > ONID=EB1EE907B4E
> > [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_ajp_common.c (909):
> > 01b0    38 34 42 36 33 33 43 32 30 33 32 38 43 44 34 46  -
> > 84B633C20328CD4F
> > [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_ajp_common.c (909):
> > 01c0    46 37 46 35 32 3B 20 73 77 69 74 63 68 6D 65 6E  -
> > F7F52;.switchmen
> > [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_ajp_common.c (909):
> > 01d0    75 3D 00 00 0D 43 61 63 68 65 2D 43 6F 6E 74 72  -
> > u=...Cache-Contr
> > [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_ajp_common.c (909):
> > 01e0    6F 6C 00 00 09 6D 61 78 2D 61 67 65 3D 30 00 A0  -
> > ol...max-age=0..
> > [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_ajp_common.c (909):
> > 01f0    08 00 01 30 00 06 00 07 75 70 67 34 6F 75 74 00  -
> > ...0....upg4out.
> > [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_ajp_common.c (909):
> > 0200    FF 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  -
> > ................
> > [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_ajp_common.c (1264):
> > request body to send 0 - request body to resend 0
> > [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_ajp_common.c (1037):
> > received from ajp13 pos=0 len=44 max=8192
> > [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_ajp_common.c (1037):
> > 0000    04 01 90 00 24 4E 6F 20 48 6F 73 74 20 6D 61 74  -
> > ....$No.Host.mat
> > [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_ajp_common.c (1037):
> > 0010    63 68 65 73 20 73 65 72 76 65 72 20 6E 61 6D 65  -
> > ches.server.name
> > [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_ajp_common.c (1037):
> > 0020    20 64 65 76 77 69 6E 30 31 00 00 00 00 00 00 00  -
> > .devwin01.......
> > [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_ajp_common.c (621):
> > status = 400
> > [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_ajp_common.c (628):
> > Number of headers is = 0
> > [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_ajp_common.c (1037):
> > received from ajp13 pos=0 len=2 max=8192
> >
> > On 9/26/07, David Delbecq <delbd+jakarta@oma.be> wrote:
> > > In your server.xml, you probably have configured a host (probably
> > > www.server.domain) but didn't configure the host (server).
> > > If you don't use host aliasing (that is different webapsp for different
> > > hostname), just configure a default host.
> > >
> > >
> > > En l'instant précis du 26/09/07 12:14, Andrew Hole s'exprimait en ces
> > > termes:
> > > > Hello!
> > > >
> > > > I'm getting the following error:
> > > >
> > > > "HTTP/1.1 400 no host matches server name myserver"
> > > >
> > > > Why this happens?
> > > >
> > > > workers.properties
> > > > # ----------------------
> > > > # Load Balancer worker PFH
> > > > # ----------------------
> > > > worker.pfhbalancer.type= lb
> > > > worker.pfhbalancer.balanced_workers= upg4out,upg7out
> > > >
> > > > # ----------------
> > > > # First worker
> > > > # ----------------
> > > > worker.upg4out.port= 8060
> > > > worker.upg4out.host= localhost
> > > > worker.upg4out.type= ajp13
> > > >
> > > > # ----------------
> > > > # Second worker
> > > > # ----------------
> > > > worker.upg7out.port= 8075
> > > > worker.upg7out.host= localhost
> > > > worker.upg7out.type= ajp13
> > > >
> > > > httpd.conf
> > > > JkMount /outpat/gateway  pfhbalancer
> > > > JkMount /outpat/ehrviewer/* vwbalancer
> > > >
> > > > ---------------------------------------------------------------------
> > > > To start a new topic, e-mail: users@tomcat.apache.org
> > > > To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> > > > For additional commands, e-mail: users-help@tomcat.apache.org
> > > >
> > >
> > >
> > > --
> > > http://www.noooxml.org/
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To start a new topic, e-mail: users@tomcat.apache.org
> > > To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> > > For additional commands, e-mail: users-help@tomcat.apache.org
> > >
> > >
> >
>

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message