Re: Static Contents
"Jeremy Kaplan" <jkaplan-7JS02rSrduhWk0Htik3J/[email protected]> Mon, 14 May 2007 11:33:18 -0500
| Newsgroups | gmane.comp.python.webware |
|---|---|
| Message-ID | <[email protected]> |
If you are using Apache as your webserver then you can use the
DocumentRoot and RewriteEngine as follows:
DocumentRoot /www-root
RewriteEngine On
RewriteRule ^/images(.*) - [L]
Or some appropriate variant.
If you're not using apache, I'm not able to help, sorry.
jd
-----Original Message-----
From: webware-discuss-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
[mailto:webware-discuss-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org] On Behalf Of Mico
Siahaan
Sent: Sunday, May 13, 2007 8:45 PM
To: Discussion of Webware for Python including feedback and proposals.
Subject: [Webware-discuss] Static Contents
Dear all,
I am making a website using Webkit + Cheetah Template. I want the
directory structure to be like this:
web:
| - application (this directory was made using MakeAppWorkDir.py)
|- Lib
|- MyContext
|- templates
|- css
|- images
|- flash
In short, I want to separate between Servlet and templates and static
contents. But now, my problem is I can't do it. Let say I have template
:
<img src="/images/someimage.jpg">
Then webware will try to feed someimage.jpg from
web/application/MyContext/images/. This is not what I want.
Can you give me tips how to accomplish it?
thanks and best regards,
--
Mico Siahaan
---
Mobile: +62-8121025010
Email: [email protected]
Blog: www.tentangmico.info/blog
Visit our shop: http://www.immanuelbookstore.com
------------------------------------------------------------------------
-
This SF.net email is sponsored by DB2 Express Download DB2 Express C -
the FREE version of DB2 express and take control of your XML. No limits.
Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Webware-discuss mailing list
Webware-discuss-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/webware-discuss
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/