Sure Vlad,

Here you go.

In your server.xml for Tomcat make sure this is un-commented:

<!-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 -->
   <Connector className="org.apache.coyote.tomcat4.CoyoteConnector"
              port="8009" minProcessors="5" maxProcessors="75"
              enableLookups="true" redirectPort="8443"
              acceptCount="10" debug="0" connectionTimeout="20000"
              useURIValidationHack="false"
              protocolHandlerClassName="
org.apache.jk.server.JkCoyoteHandler"/>



Place the latest JK_MOD.so in the modules folder of Apache2.

In your http.conf file in the conf folder in Apache near the bottom after
<virtualhosts> place the following:
**********************************************************************************************

JkWorkersFile D:/java/Apache2/conf/workers.properties

JkLogFile D:/java/Apache2/logs/mod_jk.log

# Set the jk log level [debug/error/info]
JkLogLevel info

# Select the log format
JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "

# JkOptions indicate to send SSL KEY SIZE,
JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories

# JkRequestLogFormat set the request format
JkRequestLogFormat "%w %V %T"

<VirtualHost *>
ServerName red5
DocumentRoot D:/java/Tomcat55/webapps
JkMount /* worker1

   <Directory "/">
       Options Indexes MultiViews
       AllowOverride None
       Order allow,deny
       Allow from all
   </Directory>

   <Location "/WEB-INF/">
     AllowOverride None
     deny from all
   </Location>
</VirtualHost>



Lastly, add a workers.properties file to your Apache conf folder with the
following:



# Define 1 ajp13 worker
worker.list=worker1
# Set properties for worker1 (ajp13)
worker.worker1.type=ajp13
worker.worker1.host=localhost
worker.worker1.port=8009
worker.worker1.lbfactor=50
worker.worker1.cachesize=10
worker.worker1.cache_timeout=600
worker.worker1.socket_keepalive=1
worker.worker1.socket_timeout=300

Another good place to review Mod_jk is the following:

http://tomcat.apache.org/connectors-doc/

under reference guide click on Apache.



Hope this help!!



Good luck,

Lenny




On 5/28/07, vlad <[EMAIL PROTECTED]> wrote:


On 5/28/07, Lenny Sorey <[EMAIL PROTECTED]> wrote:
>
> Vlad,
> Are you using Mod_jk via port 8009 to send Tomcat port 8080 to port 80?
> I use this all the time and it works quite well.
>
> Regards,
> Lenny
>


Umm.. to my shame I haven't thought at that:D,

But the idea was to redirect some "root folders" to some "servlet
mappings" within a context ( ":80/open" becomes ":8080/red5/open" )
I don't know if this can be done with mod_jk because I never used it, and
it seems a little more complicated than expected.

Or is it simple? Could you paste an example of mod_jk configuration
please?

(p.s. the other idea was to use :8080/red5/open instead of :8088/open, the
latter form of which I think it defeats the purpose of having a container
from the first place:D)

_______________________________________________
Red5 mailing list
[email protected]
http://osflash.org/mailman/listinfo/red5_osflash.org


_______________________________________________
Red5 mailing list
[email protected]
http://osflash.org/mailman/listinfo/red5_osflash.org

Reply via email to