You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Grzegorz Tańczyk <go...@polzone.pl> on 2004/11/09 11:34:06 UTC
Re[2]: mod_jk2 and file upload
Hello Jorg,
Ok, It would be great!
Tuesday, November 9, 2004, 9:27:18 AM, you wrote:
JH> Hi,
JH> I am consistently uploading 400kb files over mod_jk2 to Jetty without
JH> problems. I can send you my mod_jk2 config if you want.
JH> Regards
JH> Jorg
--
Best regards,
Grzegorz mailto:goliatus@polzone.pl
Re: mod_jk2 and file upload
Posted by Leszek Gawron <lg...@mobilebox.pl>.
Jorg Heymans wrote:
> Posting to the list in case this is useful to others...
>
> (include mod-jk2.conf in your httpd.conf)
>
> ================== mod-jk2.conf ==============
> LoadModule jk2_module modules/mod_jk2.so
>
> <IfModule mod_jk2.c>
> #-----------------------------------------------
> # Set the Apache2 logger level
> #-----------------------------------------------
> #
> JkSet2 logger level debug
> #-----------------------------------------------
> # Set the alternate log file
> #-----------------------------------------------
> #
> JkSet2 logger.file:0 file ${serverRoot}/logs/jk2.log
> JkSet2 logger.file:0 level debug
> #-----------------------------------------------
> # Set the scoreboard file
> #-----------------------------------------------
> #
> JkSet2 shm: file ${serverRoot}/logs/jk2.shm
> JkSet2 shm: size 1048576
> #-----------------------------------------------
> # Where to find the workers2.properties file
> #-----------------------------------------------
> #
> JkSet config.file ${serverRoot}/conf/workers2.properties
> #-----------------------------------------------
> # Setup status worker
> #-----------------------------------------------
> #
> JkSet2 status: info "Status worker, displays runtime information"
> JkSet2 workerEnv: logger logger.file:0
> #-----------------------------------------------
> # Configure the /jkstatus handler
> #-----------------------------------------------
> #
> <Location "/jkstatus">
> JkUriSet group status:
> JkUriSet info "Map the /jkstatus handler to the Web server uri
> space"
> Allow from all
> </Location>
> <Location "/*">
> JkUriSet group lb:lb
> JkUriSet info "Jetty load balancing and failover"
> </Location>
> </IfModule>
>
> ================= mod-jk2.conf END =================
>
> ============= workers2.properties ==================
> [channel.socket:localhost:8310]
> port=8310
> host=127.0.0.1
>
> [channel.socket:localhost:8320]
> port=8320
> host=127.0.0.1
>
> [ajp13:localhost:8310]
> channel=channel.socket:localhost:8310
>
> [ajp13:localhost:8320]
> channel=channel.socket:localhost:8320
>
> [lb:balanced]
> worker=ajp13:localhost:8310
> worker=ajp13:localhost:8320
>
> [uri:/*]
> group=lb
>
> ================= workers2.properties END =================
>
> You need to setup the ajp13 listener in your jetty config
> <Call name="addListener">
> <Arg>
> <New class="org.mortbay.http.ajp.AJP13Listener">
> <Set name="port">8310</Set>
> </New>
> </Arg>
> </Call>
>
>
> HTH
>
> Grzegorz Tańczyk wrote:
>
>> Hello Jorg,
>>
>> Ok, It would be great!
>>
>> Tuesday, November 9, 2004, 9:27:18 AM, you wrote:
>> JH> Hi,
>>
>> JH> I am consistently uploading 400kb files over mod_jk2 to Jetty without
>> JH> problems. I can send you my mod_jk2 config if you want.
>>
>> JH> Regards
>> JH> Jorg
>>
>>
>
Could you please wikify it ?
--
Leszek Gawron
Re: mod_jk2 and file upload
Posted by Jorg Heymans <jh...@domek.be>.
Posting to the list in case this is useful to others...
(include mod-jk2.conf in your httpd.conf)
================== mod-jk2.conf ==============
LoadModule jk2_module modules/mod_jk2.so
<IfModule mod_jk2.c>
#-----------------------------------------------
# Set the Apache2 logger level
#-----------------------------------------------
#
JkSet2 logger level debug
#-----------------------------------------------
# Set the alternate log file
#-----------------------------------------------
#
JkSet2 logger.file:0 file ${serverRoot}/logs/jk2.log
JkSet2 logger.file:0 level debug
#-----------------------------------------------
# Set the scoreboard file
#-----------------------------------------------
#
JkSet2 shm: file ${serverRoot}/logs/jk2.shm
JkSet2 shm: size 1048576
#-----------------------------------------------
# Where to find the workers2.properties file
#-----------------------------------------------
#
JkSet config.file ${serverRoot}/conf/workers2.properties
#-----------------------------------------------
# Setup status worker
#-----------------------------------------------
#
JkSet2 status: info "Status worker, displays runtime information"
JkSet2 workerEnv: logger logger.file:0
#-----------------------------------------------
# Configure the /jkstatus handler
#-----------------------------------------------
#
<Location "/jkstatus">
JkUriSet group status:
JkUriSet info "Map the /jkstatus handler to the Web server uri
space"
Allow from all
</Location>
<Location "/*">
JkUriSet group lb:lb
JkUriSet info "Jetty load balancing and failover"
</Location>
</IfModule>
================= mod-jk2.conf END =================
============= workers2.properties ==================
[channel.socket:localhost:8310]
port=8310
host=127.0.0.1
[channel.socket:localhost:8320]
port=8320
host=127.0.0.1
[ajp13:localhost:8310]
channel=channel.socket:localhost:8310
[ajp13:localhost:8320]
channel=channel.socket:localhost:8320
[lb:balanced]
worker=ajp13:localhost:8310
worker=ajp13:localhost:8320
[uri:/*]
group=lb
================= workers2.properties END =================
You need to setup the ajp13 listener in your jetty config
<Call name="addListener">
<Arg>
<New class="org.mortbay.http.ajp.AJP13Listener">
<Set name="port">8310</Set>
</New>
</Arg>
</Call>
HTH
Grzegorz Tańczyk wrote:
> Hello Jorg,
>
> Ok, It would be great!
>
> Tuesday, November 9, 2004, 9:27:18 AM, you wrote:
> JH> Hi,
>
> JH> I am consistently uploading 400kb files over mod_jk2 to Jetty without
> JH> problems. I can send you my mod_jk2 config if you want.
>
> JH> Regards
> JH> Jorg
>
>