You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Dionisio Ruiz de Zarate <di...@tinieblas.com> on 2003/11/17 16:06:25 UTC
tomcat 4.1.29+azpache2+mod_jk2. help me please
Hello.
I have two great problems with tomcat+apache2+mod_jk2
1.- the first is
i must to have in the apache home (/srv/www) one conf dir with the
workers2.properties file. if i dont create this dir with the file the
systems doesn't find the workers2.properties file.
Why the system doesn't find it? the file is in the Tomcat_home/conf dir?
whic variable must i to change?
2.-the second:
the tomcat and apache works with the mod_jk2, the system returns me the
jsp pages, but if the page has some things (images, css files ....)into
diferents directories (/images/, /js/...) i must to declare them (the
directories) into the workers2.properties file.
Is this normal?
how can i solve?
in the workers2.properties file have this:
[logger.apache2]
level=DEBUG
[shm]
file=/var/log/apache2/tomcat_shm_log.txt
size=1048576
[channel.socket:localhost:8009]
port=8009
host=127.0.0.1
[channel.un:/opt/jakarta/tomcat/conf/jk2.socket]
tomcatId=localhost:8009
debug=0
#define the worker
[ajp13:localhost:8009]
channel=channel.socket:localhost:8009
[uri:www.dominio.com/*.jsp]
worker=ajp13:localhost:8009
[uri:www.dominio.com/images/*]
worker_ajp:localhost:8009
[uri:www.dominio.com/js/*]
worker_ajp:localhost:8009
i must to declare all the site directories, if i not declare them the
systes doesn't show the imagesn, css, js ......
this has one great problem: if one user creates one dir, i must to
reconfigure my workers2.properties file.
How can i solve this great problem?
thanks
Conoceis cual puede ser la solucion?
in the jk2.properties file i have:
handler.list=apr,request,channelJni
channelSocket.port=8019
channelUnix.file=/opt/jakarta/tomcat/conf/jk2.socket
serverRoot=/srv/www/apache2
apr.NativeSo=/usr/lib/apache2/jkjni.so
can you help me?
the great problem for my isthe second. please help me.
thanks
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: tomcat 4.1.29+azpache2+mod_jk2. help me please
Posted by Christopher Schultz <ch...@comcast.net>.
Dionisio,
> But if one user, using ftp, creates one dir, i must to edit the apache
> conf file?
> this is one great problem.
Huh? How often will users be creating directories in your webapp
deployment directory?
> i sed mod_jk and there wan't problem with this but with the mod_jk2 i
> cannot resolv it
I'm sorry; I'm having trouble understanding you. Could you write a few
more words so I can try to help?
-chris
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: tomcat 4.1.29+azpache2+mod_jk2. help me please
Posted by Dionisio Ruiz de Zarate <di...@tinieblas.com>.
But if one user, using ftp, creates one dir, i must to edit the apache
conf file?
this is one great problem.
i sed mod_jk and there wan't problem with this but with the mod_jk2 i
cannot resolv it
thanks
> Dionisio,
>> 2.-the second:
>> the tomcat and apache works with the mod_jk2, the system returns me the
>> jsp pages, but if the page has some things (images, css files ....)into
>> diferents directories (/images/, /js/...) i must to declare them (the
>> directories) into the workers2.properties file.
>> Is this normal?
>> how can i solve?
>
> I usually use Apache aliases to make URLs that point to the context, but
> not to servlets or JSPs point to the webapp's home directory. Like this:
>
> Alias /yourApp /path/to/tomcat/webapps/yourApp
>
> Now, when someone requests /yourApp/images/logo.jpg, Apache will grab
> the file from /path/to/tomcat/webapps/yourApp/images/logo.jpg
>
> This has the aded advantage of Apache serving your static content
> instead of Tomcat.
>
> -chris
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: tomcat 4.1.29+azpache2+mod_jk2. help me please
Posted by Christopher Schultz <ch...@comcast.net>.
Dionisio,
> 2.-the second:
> the tomcat and apache works with the mod_jk2, the system returns me the
> jsp pages, but if the page has some things (images, css files ....)into
> diferents directories (/images/, /js/...) i must to declare them (the
> directories) into the workers2.properties file.
> Is this normal?
> how can i solve?
I usually use Apache aliases to make URLs that point to the context, but
not to servlets or JSPs point to the webapp's home directory. Like this:
Alias /yourApp /path/to/tomcat/webapps/yourApp
Now, when someone requests /yourApp/images/logo.jpg, Apache will grab
the file from /path/to/tomcat/webapps/yourApp/images/logo.jpg
This has the aded advantage of Apache serving your static content
instead of Tomcat.
-chris
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org