Seam via Apache and ProxyPass/ProxyPassReverse not working
datagazetteer Jan 31, 2007 1:25 PMI'm trying to route my Seam application through an Apache virtual host and am running into problems with URL rewriting. I'm following these instructions for accomplishing the same task for Confluence:
http://confluence.atlassian.com/display/DOC/Using+Apache+with+mod_proxy#UsingApachewithmod_proxy-Complexconfiguration
I used the LiveHttpHeaders extension of Firefox to grab the interaction between the client and server.
http://integration.drc-dev.ohiolink.edu/ GET / HTTP/1.1 Host: integration.drc-dev.ohiolink.edu User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.8.1.1) Gecko/20061204 Firefox/2.0.0.1 Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 Accept-Language: en-us,en;q=0.5 Accept-Encoding: gzip,deflate Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 Keep-Alive: 600 Proxy-Connection: keep-alive Pragma: no-cache Cache-Control: no-cache HTTP/1.x 302 Moved Temporarily Date: Wed, 31 Jan 2007 18:14:17 GMT Server: Apache-Coyote/1.1 Location: http://integration.drc-dev.ohiolink.edu/drc/ Content-Length: 0 Content-Type: text/plain Connection: close ---------------------------------------------------------- http://integration.drc-dev.ohiolink.edu/drc/ GET /drc/ HTTP/1.1 Host: integration.drc-dev.ohiolink.edu User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.8.1.1) Gecko/20061204 Firefox/2.0.0.1 Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 Accept-Language: en-us,en;q=0.5 Accept-Encoding: gzip,deflate Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 Keep-Alive: 600 Proxy-Connection: keep-alive Pragma: no-cache Cache-Control: no-cache HTTP/1.x 404 /drcdrc/ Date: Wed, 31 Jan 2007 18:14:17 GMT Server: Apache-Coyote/1.1 X-Powered-By: Servlet 2.4; JBoss-4.0.5.GA (build: CVSTag=Branch_4_0 date=200610162339)/Tomcat-5.5 Content-Type: text/html;charset=utf-8 Content-Length: 976 Connection: close
The essence of the HTML error message is:
HTTP Status 404 - /drcdrc/ type Status report message /drcdrc/ description The requested resource (/drcdrc/) is not available.
The VirtualHost definition in the Apache server is:
<VirtualHost *:80> ServerName integration.drc-dev.ohiolink.edu ProxyRequests off ProxyPreserveHost On <Proxy *> Order deny,allow Allow from all </Proxy> ProxyPass / http://localhost:8080/drc ProxyPassReverse / http://localhost:8080/drc ProxyHTMLURLMap /drc/ / <Location /> Order allow,deny Allow from all </Location> </VirtualHost>
This configuration looks like it would work, and in the case of Confluence it seems likely it would work. I have a non-Seam applet running in the same JBoss with a similar Apache configuration and it works fine. The issue seems isolated to Seam, but I can't pin it down.
Any advice?