Return-Path: Delivered-To: apmail-xml-cocoon-users-archive@xml.apache.org Received: (qmail 22463 invoked by uid 500); 3 Dec 2002 17:32:10 -0000 Mailing-List: contact cocoon-users-help@xml.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: cocoon-users@xml.apache.org Delivered-To: mailing list cocoon-users@xml.apache.org Received: (qmail 22451 invoked from network); 3 Dec 2002 17:32:10 -0000 Message-ID: <9258.195.68.62.41.1038936726.squirrel@www.jfix.com> Date: Tue, 3 Dec 2002 18:32:06 +0100 (CET) Subject: Re: how to serve static content from webserver? From: "Jakob" To: In-Reply-To: <5.1.0.14.0.20021203144155.03f1eec0@pop3.mail.demon.net> References: <22131.195.68.62.41.1038924258.squirrel@www.jfix.com> <5.1.0.14.0.20021203144155.03f1eec0@pop3.mail.demon.net> X-Priority: 3 Importance: Normal X-Mailer: SquirrelMail (version 1.2.8) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Alex McLintock said: > At 14:04 03/12/02, you wrote: >>I want static files (images, js, css) be served by the web server >> (apache port 80). > > You set up your Apache front end to serve static content - eg from a > directory called images, or js, or static, and you set up apache to > forward dynamic stuff to your java servlet engine and thus Cocoon. > > What precisely is the problem you are having? Actually, in the meantime I have investigated a bit further. To recall: in my httpd.conf, I added the following line: Alias /rules/ "E:/temp/rules/" In the E:/temp/rules/ directory are all the images, js, css. Apache restarted ... If I have my stylesheet generate a URL like this works. However, if I instruct it to only generate it won't find the resource. Well, I am already happy to have it kind of working, but it's not very portable if I have to construct a full URL for each resource. There probably is still a better way than that. Thanks for your responses so far. Cheers, Jakob. --------------------------------------------------------------------- Please check that your question has not already been answered in the FAQ before posting. To unsubscribe, e-mail: For additional commands, e-mail: