[prev in list] [next in list] [prev in thread] [next in thread] 

List:       apache-httpd-users
Subject:    [users@httpd] mod_proxy_ajp to jboss 7
From:       Joseph Wright <joe () otnb ! com>
Date:       2012-10-24 23:37:56
Message-ID: CAMO3F97tYmY0r393CBqfBm5dUSC+e8943-i6WhnK6AinnRK=yQ () mail ! gmail ! com
[Download RAW message or body]

We are trying to place Apache 2.2.22 in front of our Jboss 7.1 server as a
proxy for a web application.

The jboss web application is working on port 8080 and we can access
directly via http://FQDN:8080/MyApp . The jboss and apache are on the same
server, but are behind a firewall and thus have a nat ip.

We have configured Apache with the following in the config:

ProxyPass /MyApp ajp://127.0.0.1:8009/MyApp
ProxyPassReverse /MyApp ajp://127.0.0.1:8009/MyApp

When we try to access http://FQDN/MyApp we get the following generated in
our error log and nothing in the browser. The ajp_unmarshal_response status
of 404 sounds like the request is not returning anything.

[Wed Oct 24 23:06:36 2012] [debug] mod_proxy_ajp.c(45): proxy: AJP:
canonicalising URL //127.0.0.1:8009/MyApp
[Wed Oct 24 23:06:36 2012] [debug] proxy_util.c(1506): [client 73.130.116.33]
proxy: ajp: found worker ajp://127.0.0.1:8009/MyApp for ajp://
127.0.0.1:8009/MyApp
[Wed Oct 24 23:06:36 2012] [debug] mod_proxy.c(1020): Running scheme ajp
handler (attempt 0)
[Wed Oct 24 23:06:36 2012] [debug] mod_proxy_http.c(1963): proxy:
HTTP: *declining
URL* ajp://127.0.0.1:8009/MyApp
[Wed Oct 24 23:06:36 2012] [debug] mod_proxy_ajp.c(721): proxy: AJP:
serving URL ajp://127.0.0.1:8009/MyApp
[Wed Oct 24 23:06:36 2012] [debug] proxy_util.c(2011): proxy: AJP: has
acquired connection for (127.0.0.1)
[Wed Oct 24 23:06:36 2012] [debug] proxy_util.c(2067): proxy: connecting
ajp://127.0.0.1:8009/MyApp to 127.0.0.1:8009
[Wed Oct 24 23:06:36 2012] [debug] proxy_util.c(2193): proxy: connected
/MyApp to 127.0.0.1:8009
[Wed Oct 24 23:06:36 2012] [debug] proxy_util.c(2444): proxy: AJP: fam 2
socket created to connect to 127.0.0.1
[Wed Oct 24 23:06:36 2012] [debug] ajp_header.c(224): Into
ajp_marshal_into_msgb
[Wed Oct 24 23:06:36 2012] [debug] ajp_header.c(290):
ajp_marshal_into_msgb: Header[0] [Host] = [FQDN of our server]
[Wed Oct 24 23:06:36 2012] [debug] ajp_header.c(290):
ajp_marshal_into_msgb: Header[1] [User-Agent] = [Mozilla/5.0 (Macintosh;
Intel Mac OS X 10.7; rv:16.0) Gecko/20100101 Firefox/16.0]
[Wed Oct 24 23:06:36 2012] [debug] ajp_header.c(290):
ajp_marshal_into_msgb: Header[2] [Accept] =
[text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8]
[Wed Oct 24 23:06:36 2012] [debug] ajp_header.c(290):
ajp_marshal_into_msgb: Header[3] [Accept-Language] = [en-us,en;q=0.5]
[Wed Oct 24 23:06:36 2012] [debug] ajp_header.c(290):
ajp_marshal_into_msgb: Header[4] [Accept-Encoding] = [gzip, deflate]
[Wed Oct 24 23:06:36 2012] [debug] ajp_header.c(290):
ajp_marshal_into_msgb: Header[5] [DNT] = [1]
[Wed Oct 24 23:06:36 2012] [debug] ajp_header.c(290):
ajp_marshal_into_msgb: Header[6] [Connection] = [keep-alive]
[Wed Oct 24 23:06:36 2012] [debug] ajp_header.c(290):
ajp_marshal_into_msgb: Header[7] [Cookie] =
[JSESSIONID=LTQ2aBxH4QXdKJhNYAYUHuGD.undefined]
[Wed Oct 24 23:06:36 2012] [debug] ajp_header.c(290):
ajp_marshal_into_msgb: Header[8] [Cache-Control] = [max-age=0]
[Wed Oct 24 23:06:36 2012] [debug] ajp_header.c(450):
ajp_marshal_into_msgb: Done
[Wed Oct 24 23:06:36 2012] [debug] mod_proxy_ajp.c(270): proxy:
APR_BUCKET_IS_EOS
[Wed Oct 24 23:06:36 2012] [debug] mod_proxy_ajp.c(275): proxy: data to
read (max 8186 at 4)
[Wed Oct 24 23:06:36 2012] [debug] mod_proxy_ajp.c(290): proxy: got 0 bytes
of data
[Wed Oct 24 23:06:36 2012] [debug] ajp_header.c(687): ajp_read_header:
ajp_ilink_received 04
[Wed Oct 24 23:06:36 2012] [debug] ajp_header.c(697): ajp_parse_type: got 04
[Wed Oct 24 23:06:36 2012] [debug]
ajp_header.c(516):*ajp_unmarshal_response: status = 404
*
[Wed Oct 24 23:06:36 2012] [debug] ajp_header.c(537):
ajp_unmarshal_response: Number of headers is = 1
[Wed Oct 24 23:06:36 2012] [debug] ajp_header.c(599):
ajp_unmarshal_response: Header[0] [Content-Length] = [0]
[Wed Oct 24 23:06:36 2012] [debug] ajp_header.c(687): ajp_read_header:
ajp_ilink_received 05
[Wed Oct 24 23:06:36 2012] [debug] ajp_header.c(697): ajp_parse_type: got 05
[Wed Oct 24 23:06:36 2012] [debug] proxy_util.c(2029): proxy: AJP: has
released connection for (127.0.0.1)

Thanks for the help.

Jo

[Attachment #3 (text/html)]

We are trying to place Apache 2.2.22 in front of our Jboss 7.1 server as a proxy for \
a web application. <br><br>The jboss web application is working on port 8080 and we \
can access directly via <a href="http://FQDN:8080/MyApp" \
target="_blank">http://FQDN:8080/MyApp</a> . The jboss and apache are on the same \
server, but are behind a firewall and thus have a nat ip.<br>


<br>We have configured Apache with the following in the config:<br><br>ProxyPass \
/MyApp ajp://<a href="http://127.0.0.1:8009/MyApp" \
target="_blank">127.0.0.1:8009/MyApp</a><br>ProxyPassReverse /MyApp ajp://<a \
href="http://127.0.0.1:8009/MyApp" target="_blank">127.0.0.1:8009/MyApp</a><br>


<br>When we try to access <a href="http://FQDN/MyApp" \
target="_blank">http://FQDN/MyApp</a> we get the following generated in our error log \
and nothing in the browser. The  ajp_unmarshal_response status of 404 sounds like the \
request is not returning anything. <br>


<br>[Wed Oct 24 23:06:36 2012] [debug] mod_proxy_ajp.c(45): proxy: AJP: \
canonicalising URL //<a href="http://127.0.0.1:8009/MyApp" \
target="_blank">127.0.0.1:8009/MyApp</a><br>[Wed Oct 24 23:06:36 2012] [debug] \
proxy_util.c(1506): [client <a href="tel:73.130.116.33" value="+17313011633" \
target="_blank">73.130.116.33</a>] proxy: ajp: found worker ajp://<a \
href="http://127.0.0.1:8009/MyApp" target="_blank">127.0.0.1:8009/MyApp</a> for \
ajp://<a href="http://127.0.0.1:8009/MyApp" \
target="_blank">127.0.0.1:8009/MyApp</a><br>


[Wed Oct 24 23:06:36 2012] [debug] mod_proxy.c(1020): Running scheme ajp handler \
(attempt 0)<br>[Wed Oct 24 23:06:36 2012] [debug] mod_proxy_http.c(1963): proxy: \
HTTP: <b>declining URL</b> ajp://<a href="http://127.0.0.1:8009/MyApp" \
target="_blank">127.0.0.1:8009/MyApp</a><br>


[Wed Oct 24 23:06:36 2012] [debug] mod_proxy_ajp.c(721): proxy: AJP: serving URL \
ajp://<a href="http://127.0.0.1:8009/MyApp" \
target="_blank">127.0.0.1:8009/MyApp</a><br>[Wed Oct 24 23:06:36 2012] [debug] \
proxy_util.c(2011): proxy: AJP: has acquired connection for (127.0.0.1)<br>


[Wed Oct 24 23:06:36 2012] [debug] proxy_util.c(2067): proxy: connecting ajp://<a \
href="http://127.0.0.1:8009/MyApp" target="_blank">127.0.0.1:8009/MyApp</a> to <a \
href="http://127.0.0.1:8009" target="_blank">127.0.0.1:8009</a><br>

[Wed Oct 24 23:06:36 2012] [debug] proxy_util.c(2193): proxy: connected /MyApp to <a \
                href="http://127.0.0.1:8009" target="_blank">127.0.0.1:8009</a><br>
[Wed Oct 24 23:06:36 2012] [debug] proxy_util.c(2444): proxy: AJP: fam 2 socket \
created to connect to 127.0.0.1<br>[Wed Oct 24 23:06:36 2012] [debug] \
ajp_header.c(224): Into ajp_marshal_into_msgb<br>[Wed Oct 24 23:06:36 2012] [debug] \
ajp_header.c(290): ajp_marshal_into_msgb: Header[0] [Host] = [FQDN of our server]<br>


[Wed Oct 24 23:06:36 2012] [debug] ajp_header.c(290): ajp_marshal_into_msgb: \
Header[1] [User-Agent] = [Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:16.0) \
Gecko/20100101 Firefox/16.0]<br>[Wed Oct 24 23:06:36 2012] [debug] ajp_header.c(290): \
ajp_marshal_into_msgb: Header[2] [Accept] = \
[text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8]<br>


[Wed Oct 24 23:06:36 2012] [debug] ajp_header.c(290): ajp_marshal_into_msgb: \
Header[3] [Accept-Language] = [en-us,en;q=0.5]<br>[Wed Oct 24 23:06:36 2012] [debug] \
ajp_header.c(290): ajp_marshal_into_msgb: Header[4] [Accept-Encoding] = [gzip, \
deflate]<br>


[Wed Oct 24 23:06:36 2012] [debug] ajp_header.c(290): ajp_marshal_into_msgb: \
Header[5] [DNT] = [1]<br>[Wed Oct 24 23:06:36 2012] [debug] ajp_header.c(290): \
ajp_marshal_into_msgb: Header[6] [Connection] = [keep-alive]<br>

[Wed Oct 24 23:06:36 2012] [debug] ajp_header.c(290): ajp_marshal_into_msgb: \
                Header[7] [Cookie] = \
                [JSESSIONID=LTQ2aBxH4QXdKJhNYAYUHuGD.undefined]<br>
[Wed Oct 24 23:06:36 2012] [debug] ajp_header.c(290): ajp_marshal_into_msgb: \
Header[8] [Cache-Control] = [max-age=0]<br>[Wed Oct 24 23:06:36 2012] [debug] \
ajp_header.c(450): ajp_marshal_into_msgb: Done<br>[Wed Oct 24 23:06:36 2012] [debug] \
mod_proxy_ajp.c(270): proxy: APR_BUCKET_IS_EOS<br>


[Wed Oct 24 23:06:36 2012] [debug] mod_proxy_ajp.c(275): proxy: data to read (max \
8186 at 4)<br>[Wed Oct 24 23:06:36 2012] [debug] mod_proxy_ajp.c(290): proxy: got 0 \
bytes of data<br>[Wed Oct 24 23:06:36 2012] [debug] ajp_header.c(687): \
ajp_read_header: ajp_ilink_received 04<br>


[Wed Oct 24 23:06:36 2012] [debug] ajp_header.c(697): ajp_parse_type: got 04<br>[Wed \
Oct 24 23:06:36 2012] [debug] ajp_header.c(516):<b> ajp_unmarshal_response: status = \
404</b><br>[Wed Oct 24 23:06:36 2012] [debug] ajp_header.c(537): \
ajp_unmarshal_response: Number of headers is = 1<br>


[Wed Oct 24 23:06:36 2012] [debug] ajp_header.c(599): ajp_unmarshal_response: \
Header[0] [Content-Length] = [0]<br>[Wed Oct 24 23:06:36 2012] [debug] \
ajp_header.c(687): ajp_read_header: ajp_ilink_received 05<br>[Wed Oct 24 23:06:36 \
2012] [debug] ajp_header.c(697): ajp_parse_type: got 05<br>


[Wed Oct 24 23:06:36 2012] [debug] proxy_util.c(2029): proxy: AJP: has released \
connection for (127.0.0.1)<br><br>Thanks for the help.<br><br>Jo<br><br>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic