HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Server Operation (http://www.howtoforge.com/forums/forumdisplay.php?f=5)
-   -   Apache and Tomcat problem! Urgent (http://www.howtoforge.com/forums/showthread.php?t=2711)

maroonworks 23rd February 2006 20:37

Apache and Tomcat problem! Urgent
 
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:

http://domain.com:8080/~client1/servlet/Hello

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

Regards,

falko 23rd February 2006 22:40

Do you have Alias directives in the Apache configuration for that vhost? Like
Code:

AliasMatch ^/~([^/]+)(/(.*))? /var/www/web1/user/$1/web/$3
AliasMatch ^/users/([^/]+)(/(.*))? /var/www/web1/user/$1/web/$3


maroonworks 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
http://localhost:8080/~userX/servlet/HelloWorld

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

falko 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. :)


All times are GMT +2. The time now is 06:08.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.