Mantis - Resin
Viewing Issue Advanced Details
409 minor always 09-30-05 00:00 01-17-06 16:36
sam  
 
high  
closed 3.0.14  
3.0.14 fixed  
none    
none 3.0.18  
0000409: ServerAlias matches mod_caucho not dispatching
RSN-455
(rep by M Oelering)

I have a problem with my Apache 2.0.46/Resin Pro 3.0.13 configuration. Requests which map to Apache ServerAlias are not handled by srun, but by Apache: JSPs are shown with sources. This is also appearent from the response headers and from the Resin log (at finer log level). Requests which map to ServerName are handled as expected.

However, if the same request is done directly to Resin httpd on port 8080, it does work as expected. Also, if I add another VirtualHost directive in httpd.conf and use ServerName instead of ServerAlias for the requested domain, it does work as expected.

My httpd.conf is like this:

<VirtualHost *:80>
    ServerName www.mydomain.net
    ServerAlias myalias.net
    DocumentRoot "/home/mydomain/www/pub"
</VirtualHost>

My resin.conf is like this:

    <host>
      <host-name>www.mydomain.net</host-name>
      <host-alias>myalias.net</host-alias>
      <root-directory>/home/mydomain/www/pub</root-directory>
      <web-app id="/" document-directory=".">
          <!-- note: app settings in /home/mydomain/www/pub/WEB-INF/web.xml -->
      </web-app>
    </host>

When I do a request to http://myalias.net/test/request.jsp [^] on port 80. The Resin log shows the following:

[16:44:29.536] starting connection TcpConnection[id=resin-tcp-connection-127.0.0.1:6802-35,socket=JniSocketImpl$3393112[137323808],port=ClusterPort[host=127.0.0.1,port=6802]], total=6
[16:44:29.536] [17] start request
[16:44:29.536] [17] P: dispatch protocol
[16:44:29.536] [17] etag: GmH4S4sbuhu
[16:44:29.536] [17] host: myalias.net
[16:44:29.536] [17] query:
[16:44:29.536] [17] host 'Host[www.mydomain.net]' no change
[16:44:29.536] [17] n
[16:44:29.536] [17] Q: end of request
[16:44:29.537] [17] start request
[16:44:29.537] [17] closing ÿ(-1)
[16:44:29.537] [17] close stream
[16:44:29.537] [17] X: exit socket
[16:44:29.537] closing connection TcpConnection[id=resin-tcp-connection-127.0.0.1:6802-35,socket=JniSocketImpl$3393112[137323808],port=ClusterPort[host=127.0.0.1,port=6802]], total=6

When I do a request to http://www.mydomain.net/test/request.jsp [^] on port 80. The Resin log shows the following:

[16:45:53.628] starting connection TcpConnection[id=resin-tcp-connection-127.0.0.1:6802-29,socket=JniSocketImpl$16134229[137325344],port=ClusterPort[host=127.0.0.1,port=6802]], total=6
[16:45:53.628] [14] start request
[16:45:53.628] [14] P: dispatch protocol
[16:45:53.628] [14] etag: GmH4S4sbuhu
[16:45:53.628] [14] host: www.mydomain.net
[16:45:53.628] [14] query:
[16:45:53.628] [14] host 'Host[www.mydomain.net]' no change
[16:45:53.628] [14] n
[16:45:53.628] [14] Q: end of request
[16:45:53.628] [14] start request
[16:45:53.628] [14] closing ÿ(-1)
[16:45:53.628] starting connection TcpConnection[id=resin-tcp-connection-127.0.0.1:6802-37,socket=JniSocketImpl$19057119[137323296],port=ClusterPort[host=127.0.0.1,port=6802]], total=6
[16:45:53.628] [14] close stream
[16:45:53.629] [18] start request
[16:45:53.629] [14] X: exit socket
[16:45:53.629] [18] U:uri /test/request.jsp
[16:45:53.629] closing connection TcpConnection[id=resin-tcp-connection-127.0.0.1:6802-29,socket=JniSocketImpl$16134229[137325344],port=ClusterPort[host=127.0.0.1,port=6802]], total=7
[16:45:53.629] [18] m:method GET
[16:45:53.629] [18] c protocol: HTTP/1.1
[16:45:53.629] [18] v server-host: www.mydomain.net
[16:45:53.629] [18] g server-port: 80
[16:45:53.629] [18] h xxx.xxx.146.210
[16:45:53.629] [18] i xxx.xxx.146.210
[16:45:53.629] [18] j remote-port: 46153
[16:45:53.629] [18] H Accept=*/*
[16:45:53.629] [18] H Accept-Language=nl
[16:45:53.629] [18] H Accept-Encoding=gzip, deflate
[16:45:53.629] [18] H User-Agent=Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)
[16:45:53.629] [18] H Host=www.mydomain.net
[16:45:53.629] [18] H Connection=Keep-Alive
[16:45:53.629] [18] H Cookie=JSESSIONID=kDFStRYfDr6IPfqI
[16:45:53.629] [18] H UNIQUE_ID=KnyfEgo8BMYAABzCUFgAAAAG
[16:45:53.629] [18] Q: end of request
[16:45:53.630] [18] s 200 OK
[16:45:53.630] [18] H Content-Type
[16:45:53.630] [18] S text/html
[16:45:53.630] [18] G
[16:45:53.630] [18] D:data 1060
[16:45:53.630] [18] Q: quit channel
[16:45:53.630] [18] complete request - keepalive






Notes
(0000732)
ferg   
01-17-06 16:36   
Duplicate of 0000846