tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Steven Punte" <ste...@hamsoft.com>
Subject Re: Virtual Hosting and Static Files: How?
Date Mon, 12 Jun 2000 19:46:45 GMT
Kevin:

    Thanks for the reply.

    If I understand you strategy, it requires me to effect
    changes in each application, correct?  That is,
    instead of http://host/file.html, I will require the
    application to specify http://host/app1/file.html.

    Is this correct?

    At the moment, my situation is that I need to
    host several application on the same machine
    as if they were being server in a stand
    alone manner (i.e. no changes in URLS).

    Steve


----- Original Message -----
From: Bedell, Kevin <KBedell@cmgi.com>
To: <tomcat-user@jakarta.apache.org>
Sent: Monday, June 12, 2000 12:26 PM
Subject: RE: Virtual Hosting and Static Files: How?


> Certainly from the look of your entry, all files are being puled through
> Tomcat.
>
> In general, the doc's DO tell you to configure Virtual Servers to have
them
> serve all files below the "ApJservMount" point through Tomcat. Here's the
> best I can figure - though I hope there's a better solution:
>
> 1.    Move the app below the "/" directory:
>
>         Maybe instead of:       ApJServMount / ajpv12://localhost:8503
>
>         Use:                          ApJServMount /myapp
> ajpv12://localhost:8503
>
> 2.    Have Apache serve all files from "/", and Tomcat all files from
> "/myapp".
>
> 3.    In your .JSP/Servlet files, reference images from an Apache
"/images"
> alias - eg, "/images/image1.gif"
>       Don't use subdirectory addressing such as "images/image1.gif" - this
> will pull them through Tomcat.
>
> 4.    Look to pull other static content the same way - define an apache
> alias and reference the files similar to #3.
>
> This minimizes the problem.
>
> There were also examples in the docs of having Apache serve all files in a
> directory except .JSP's, but these examples weren't valid for Virtual
> Hosting.
>
> Anyone have a better way?
>
>
>
> -----Original Message-----
> From: Steven Punte [mailto:stevep@hamsoft.com]
> Sent: Monday, June 12, 2000 1:28 PM
> To: tomcat-user@jakarta.apache.org <mailto:tomcat-user@jakarta.apache.org>
> Subject: Virtual Hosting and Static Files: How?
>
>
>
> Dear Tomcat Community:
>
>     I have successfully achieve virtual hosting with tomcat + apache
>     according to the user documentation.
>
>     However, It really seems like ALL static pages are now
>     being severed through tomcat and apache instead
>     of simply apache alone.  This wasn't the case before
>     I started using virtual hosting.
>
>     My virtual host entry is below.
>
>     Has anyone seen this issue and found a solution?
>
>     Thanks in advance.
>
> <VirtualHost  209.204.163.24>
>
>     ServerName cabo.hamsoft.com
>     ApJServMount / ajpv12://localhost:8503
>     ServerAdmin stevep@technologent.com <mailto:stevep@technologent.com>
>     DocumentRoot /var/webrooms/resortbase
>     ServerName webhost0.hamsoft.com
>
> </VirtualHost>
>
> STeve Punte
> e-Business Software Architect
> Technologent Inc
> stevep@technologent.com <mailto:stevep@technologent.com>
>
>
> --------------------------------------------------------------------------
> To unsubscribe, email: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commmands, email: tomcat-user-help@jakarta.apache.org


Mime
View raw message