On 6/24/07, Dan Rossi <[EMAIL PROTECTED]> wrote:
One bizarre issue i'm having a problem with, when i mount the examples webapp i get 404 errors for the servlets
I've got this problem too. It seems a Jetty bug. [Sun Jun 24 18:17:19 2007] [error] [client 192.168.1.101] File does not
exist: /usr/local/tomcat/webapps/examples/servlets/servlet, referer: http://192.168.1.2/examples/servlets/ Lenny Sorey wrote: > Hello all, > > As promised the following is what I used to setup Apache / Tomcat and > mod_jk in order to use rtmp and rtmpt: > > I don't think I left out any steps. > > > *Step One:* > > * * > > *Make sure you are running the latest Trunk of RED5.* > > > > Download the latest mod_jk connector from the following url. > > > > http://www.apache.org/dist/tomcat/tomcat-connectors/jk/binaries/ > > > > This link is for the binary for each respective operating system > > Then select which version of Apache you have installed. > > > > If you want to make it easy on yourself rename the downloaded binary > to mod_jk.so . this will make a bit easier when you reference this > module in Apache. > > > > Place the newly renamed mod_jk,so in the following folder of Apache: > > > > Apache2/modules > > > > Now navigate to the Apache2/conf folder and open up the following file: > > > > httpd.conf > > > > Add the following at the end of the LoadModule section somewhere > around line 132: > > > > LoadModule jk_module modules/mod_jk.so (don't forget to rename the > downloaded mod_jk binary to mod_jk.so) > > > > Save what you have so far. > > > > Move down to the bottom of httpd.conf and add the following: > > > > <VirtualHost *:80> > > > > ServerName *red5 < - (red5 in this instance is the server name)* > > DocumentRoot D:/java/Tomcat55/webapps2 (wherever you > have tomcat installed – Yep, I added webapps2 to Tomcat . This keeps > it away fro the default 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> > > > > * - remove the text in red above. > > > > Make sure you add the following file in the Apache2/conf: > > > > Workers.properties > > > > Here what you need in this file: > > > > # 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 > > > > > > OK, that should do for Apache. > > > > Now on to Tomcat: > > > > Navigate to the following Tomcat folder: > > > > Tomcat/conf > > > > Please open up the following file: > > > > server.xml > > > > Make sure this statement is uncommented: > > > > <Connector port="8009" > > enableLookups="false" redirectPort="8443" > protocol="AJP/1.3" /> > > > > > > > > OK, the next step in the server.xml file > > > > Find the first tag </Host> > > > > After this tag add the following: > > > > <Host name="*red5*" > > unpackWARs="true" autoDeploy="true" > > xmlValidation="false" xmlNamespaceAware="false"> > > > > <Context path="" > > docBase="${catalina.home}/webapps2/* red5*" > > reloadable="true"> > > </Context> > > </Host> > > > > * - Change red5 to whatever server name you want here. This has to > match the servername in the http.conf in Apache or things will not work. > > > > > > This pretty much should be it. > > > > Restart Tomcat, wait a sec. and then restart Apache so that Apache may > bind with Tomcat. > > > > Open your Browser and then log on the what server name you setup. In > the case we would use the following: > > > > http://red5 <http://red5/> > > > > This should take you to the index.html if you have setup your Apache > http.conf like the following: > > > > # > > # DirectoryIndex: sets the file that Apache will serve if a directory > > # is requested. > > # > > # The index.html.var file (a type-map) is used to deliver content- > > # negotiated documents. The MultiViews Option can be used for the > > # same purpose, but it is much slower. > > # > > DirectoryIndex index.html > > > > Oh Yeah: > > > > This is my red5.properties file: > > > > # HTTP > > http.host=10.2.0.10 > > http.port=8080 > > # RTMP > > rtmp.host=10.2.0.10 > > rtmp.port=1935 > > rtmp.event_threads_core=16 > > rtmp.event_threads_max=32 > > # event threads queue: -1 unbounded, 0 direct (no queue), n bounded queue > > rtmp.event_threads_queue=-1 > > rtmp.event_threads_keepalive=60 > > rtmp.send_buffer_size=271360 > > rtmp.receive_buffer_size=65536 > > rtmp.ping_interval=5000 > > rtmp.max_inactivity=60000 > > # RTMPT > > rtmpt.host=10.2.0.10 > > rtmpt.port=8080 > > rtmpt.ping_interval=5000 > > rtmpt.max_inactivity=60000 > > # WEBAPP > > webapp.contextPath=/ > > webapp.virtualHosts=*,10.2.0.10 <http://10.2.0.10>,red5 > > > > Change the 10.2.0.10 <http://10.2.0.10> to your internal IP address. > > > > Good Luck!! > > > > On my server red5 is actually red5.fatdot.com <http://red5.fatdot.com> > > > > Please let me know if you are successful with this configuration. > > > > Regards, > > > > Lenny > > ------------------------------------------------------------------------ > > _______________________________________________ > 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
-- I cannot tell why this heart languishes in silence. It is for small needs it never asks, or knows or remembers. -- Tagore Best Regards Steven Gong
_______________________________________________ Red5 mailing list [email protected] http://osflash.org/mailman/listinfo/red5_osflash.org
