You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2002/07/25 10:38:09 UTC

DO NOT REPLY [Bug 4212] - How to configure Apache to serve static contents?

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=4212>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=4212

How to configure Apache to serve static contents?





------- Additional Comments From fjcantais@iespana.es  2002-07-25 08:38 -------
I don't think this is really a bug, It's a matter of configuration. Try the 
following: add these two lines at the end of your Apache httpd.conf file:

WebAppConnection warpConnection warp localhost:8008
WebAppDeploy myapp warpConnection /myapp/

where localhost is the name of the server under which you are running your 
webapp and myapp is the name of your webapp.

Now all requests to //localhost/myapp/ will be passed to Tomcat, while all 
other requests (like //localhost/img/ or //localhost/css/) will be dispatched 
by Apache.

I have this configuration running on my laptop and it works perfectly.

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>