You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "Perlman, Seth" <sp...@proxicom.com> on 2000/05/12 22:07:17 UTC

Configuring personal webapp directories

I'd like to configure Tomcat to have a web application directory for each
user on my Web server (it's a box set up for educational purposes), but not
have to modify server.xml every time a new user is created. Much like
~username maps to /home/username/public_html, I'd like to have something
like /app/username map to /home/username/webapp, such that
/app/username/servlet/HelloWorld will execute username's HelloWorld servlet
located in /home/username/webapp/WEB-INF/classes.

Is such a configuration possible, and if so, could someone provide some
instruction?

Thanks,
seth


RE: Running servlets through apache

Posted by Michael Kostadinovich <ko...@intelligencia.com>.
Thanks for your response, but this exactly what I did. I can access my
servlet through the port 8080 but not through apache (80). here is how my
tomcat-apache.conf looks alike:

thanks again...

mk

LoadModule jserv_module libexec/mod_jserv.so
ApJServManual on
ApJServDefaultProtocol ajpv12
ApJServSecretKey DISABLED
ApJServMountCopy on
ApJServLogLevel notice

ApJServDefaultPort 8007

AddType test/jsp .jsp
AddHandler jserv-servlet .jsp

Alias /java /usr/local/jakarta-tomcat/webapps/java
<Directory "/usr/local/jakarta-tomcat/webapps/java">
    Options Indexes FollowSymLinks
</Directory>
ApJServMount /java/servlet /java
<Location /java/WEB-INF/ >
    AllowOverride None
    deny from all
</Location>


ApJServMount /servlet /ROOT


> -----Original Message-----
> From: Mark Balster [mailto:markbalster@hotmail.com]
> Sent: Saturday, May 13, 2000 04:49
> To: tomcat-user@jakarta.apache.org
> Subject: Re: Running servlets through apache
>
>
> 1) Setup a new context per TOMCAT_HOME/doc/faq "How can I install a new
> web-application"
> 2) Modify TOMCAT_HOME/conf/tomcat.conf and add a APJServMount entry there
> 3) Make sure you followed instructions in
> TOMCAT_HOME/doc/Tomcat+Apache-HOWTO
> 4) Restart Tomcat
> 5) Restart Apache
>
> ----- Original Message -----
> From: "Michael Kostadinovich" <ko...@intelligencia.com>
> To: <to...@jakarta.apache.org>
> Sent: Friday, May 12, 2000 10:13 PM
> Subject: Running servlets through apache
>
>
> > Hi there...
> >
> > I installed tomcat 3.1 with apache 1.3.12. everything works well (jsp,
> > servlets on port 8080 etc). My question: is it possible to run servlets
> > directly through apache instead of using the tomcat http-server on port
> > 8080? how can I tell apache to map servlet requests to tomcat?
> >
> > thanks in advance...
> >
> > mk
> >
> >
> >
> --------------------------------------------------------------------------
> > To unsubscribe, email: tomcat-user-unsubscribe@jakarta.apache.org
> > For additional commmands, email: tomcat-user-help@jakarta.apache.org
> >
> >
>
> --------------------------------------------------------------------------
> To unsubscribe, email: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commmands, email: tomcat-user-help@jakarta.apache.org
>


Re: Running servlets through apache

Posted by Mark Balster <ma...@hotmail.com>.
1) Setup a new context per TOMCAT_HOME/doc/faq "How can I install a new
web-application"
2) Modify TOMCAT_HOME/conf/tomcat.conf and add a APJServMount entry there
3) Make sure you followed instructions in
TOMCAT_HOME/doc/Tomcat+Apache-HOWTO
4) Restart Tomcat
5) Restart Apache

----- Original Message -----
From: "Michael Kostadinovich" <ko...@intelligencia.com>
To: <to...@jakarta.apache.org>
Sent: Friday, May 12, 2000 10:13 PM
Subject: Running servlets through apache


> Hi there...
>
> I installed tomcat 3.1 with apache 1.3.12. everything works well (jsp,
> servlets on port 8080 etc). My question: is it possible to run servlets
> directly through apache instead of using the tomcat http-server on port
> 8080? how can I tell apache to map servlet requests to tomcat?
>
> thanks in advance...
>
> mk
>
>
> --------------------------------------------------------------------------
> To unsubscribe, email: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commmands, email: tomcat-user-help@jakarta.apache.org
>
>

Running servlets through apache

Posted by Michael Kostadinovich <ko...@intelligencia.com>.
Hi there...

I installed tomcat 3.1 with apache 1.3.12. everything works well (jsp,
servlets on port 8080 etc). My question: is it possible to run servlets
directly through apache instead of using the tomcat http-server on port
8080? how can I tell apache to map servlet requests to tomcat?

thanks in advance...

mk