tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Robert Hall <rfh...@berkeley.edu>
Subject Re: Virtual Hosting Revisited - Apache serving static pages..???
Date Thu, 15 Apr 2004 02:14:42 GMT
We use apache to serve up static content by including the following in 
httpd.conf via an "Include directive":

<IfModule mod_alias.c>
    #
    # Note that if you include a trailing / on fakename then the server will
    # require it to be present in the URL.  So "/icons" isn't aliased in 
this
    # example, only "/icons/".  If the fakename is slash-terminated, 
then the
    # realname must also be slash terminated, and if the fakename omits the
    # trailing slash, the realname must also omit it.
    #
    Alias /app-name/ "/usr/local/htdocs/app-name/"

    <Directory "/usr/local/htdocs/app-name">
        Options Indexes MultiViews
        AllowOverride None
        Order allow,deny
        Allow from all
    </Directory>
</IfModule>

And workers2.properties (similar to mod_jk.conf ?) contains URI entries 
so tell
apache what to request from Tomcat, the static content is served up by 
apache
via the Alias above.

HTH,
Robert

John B. Moore wrote:

> Posted this previously and still need some pointers...
>
> Maybe this is not possible, but it seems to be "suggested" in a lot of 
> the documentation I have read. Unfortunately those docs "assume" 
> something that I am not privy to..  (a brain.. yeah well...<G>) and do 
> not outline specific configurations for this setup. I read a lot of 
> "and you can have Apache serve the static pages"..etc.. but I have yet 
> to find and example of how this would be configured.
>   I would prefer setting this up via the server.xml and the web.xml 
> files and have those autoconfigure to the /auto/mod_jk.conf file, but 
> for now I need some specifics on how to tell Apache to serve the 
> static pages. (I have no problems with serving the jsp and servlets..)
>
>  Thanks...
>


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message