Apache and Tomcat problem! Urgent

Discussion in 'Server Operation' started by maroonworks, Feb 23, 2006.

  1. maroonworks

    maroonworks New Member

    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,
     
  2. falko

    falko Super Moderator Howtoforge Staff

    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
     
  3. maroonworks

    maroonworks New Member

    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
     
  4. falko

    falko Super Moderator Howtoforge Staff

Share This Page