View Full Version : Apache and Tomcat problem! Urgent

23rd February 2006, 20:37
Hi ya'll

i've setup an apache server with tomcat 5.5 on Debian.

everything is goin fine. when I access localhost:8080 on the server itself I got the default webpage of tomcat .. I click on servlets-examples and I excute a servlet and it executes normally.

the problem is I want to let some of my clients have a folder on their default directories { /home/client1 ... for example } to publish some servlets and try to access their folders through web like:


my problem is whenever I try to access this URL .. I got an error 404 not found :S

any idea !!! please cause it's really urgent

and if you want more information about the setup .. i'm ready to post it over here /.. but I think there's a small trick ....... and everything will go fine


23rd February 2006, 22:40
Do you have Alias directives in the Apache configuration for that vhost? Like
AliasMatch ^/~([^/]+)(/(.*))? /var/www/web1/user/$1/web/$3
AliasMatch ^/users/([^/]+)(/(.*))? /var/www/web1/user/$1/web/$3

24th February 2006, 12:20
Falko thank you for your reply...

but the thing is I didn't install the connecter yet between apache and tomcat.

so i'm trying to access the servlet directly through tomcat server on port 8080

and I got an error 404 page not found .. redirect problem ..since my actual

folder is found under this folder on /home/userX/webapps/WEB_INF/classes/HelloWorld.class

I've read a lot of article and i'm still havin the same problem ...

thank you in advance

24th February 2006, 15:14
Hm, I don't have knowlwedge about Tomcat, but ctroyp has. He has written this tutorial: http://www.howtoforge.com/apache2_tomcat5_mod_jk

You can write him a private message, if you want. :)