that wont work, you have to use a HTTP connector for Comet functionality, and in that case use mod_proxy_http

Filip

Burak Oguz wrote:
Hi everybody,

I am using Tomcat 6.0.18 and Apache2. Anyone knows how to connect tomcat
with apache over AJP/NIO. I developed a Comet application but I should serve
it over Apache. When I simple reverse proxy it over Apache it gives such an
error:

[Thu Nov 06 14:11:15 2008] [error] [client 127.0.0.1] Invalid URI in request
xxxxxxxxxxxxxxxxxx


But I want to do it in a logical way with NIO/AJP Connector. My server.xml
contains

<Connector address="127.0.0.1" port="0"
channelNioSocket.port="8009"
channelNioSocket.soTimeout="600000"
channelNioSocket.bufferSize="16384"
channelNioSocket.maxThreads="125"
channelNioSocket.minSpareThreads="10"
channelNioSocket.maxSpareThreads="50"
edirectPort="8443" protocol="AJP/1.3" useBodyEncodingForURI="true" />

And in apache2.conf :

ProxyRequests off

<Proxy *>
Order deny,allow
Allow from all
</Proxy>

ProxyPreserveHost On

ProxyPass        /tc ajp://127.0.0.1:8009/
ProxyPassReverse /tc ajp://127.0.0.1:8009/

By this way it gives me an HTTP 405 Method Not Allowed error. I can not
connect to Comet application.

Thanks in advance



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

Reply via email to