Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Server Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 23rd February 2006, 20:37
maroonworks maroonworks is offline
Junior Member
 
Join Date: Nov 2005
Posts: 25
Thanks: 0
Thanked 1 Time in 1 Post
Default 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,
Reply With Quote
Sponsored Links
  #2  
Old 23rd February 2006, 22:40
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,740 Times in 2,575 Posts
Default

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
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 24th February 2006, 12:20
maroonworks maroonworks is offline
Junior Member
 
Join Date: Nov 2005
Posts: 25
Thanks: 0
Thanked 1 Time in 1 Post
Default

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
Reply With Quote
  #4  
Old 24th February 2006, 15:14
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,740 Times in 2,575 Posts
 
Default

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.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 22:31.


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