Need help serving a static page from manila site
Chris Bunch
chris.bunch at ndm.ox.ac.uk
Sat Oct 13 00:37:24 PDT 2001
You could use the {mainResponder.redirect(myURL)} macro:
If you have access to an Apache or similar server put your image there, then
create an string item in your main Manila site table, at the top level,
called wm and give it a value like
{mainResponder.redirect("http://my.staticserver/images/wm")} (with the
correct URL, of course.
Chris
> From: Leslie Snively <les at windstream.com>
> Reply-To: Frontier-Server at userland.com
> Date: Fri, 12 Oct 2001 23:04:37 -0600
> To: Frontier-Server <Frontier-Server at userland.com>
> Subject: Need help serving a static page from manila site
>
> I need to serve a single, static image with it's own URL from an
> existing manila site. The manila GDB needs to remain accessible as well
> during the month or so that the static image will be served. The URL
> has been published in numerous places, so I can't pick another URL at
> this time, nor can I change the URL of the main site. (Yes, I goofed in
> selecting the URL - poor choice done in too big a hurry.) The image URL
> has to be:
>
> http://www.mydomainname.com/wm,
>
> while the main site at http://www.mydomainname.com must behave at it
> presently does. (There's no polymorphism between the static image name
> and anything in the manila site.) The image should not be placed in the
> main site template, just served raw. If there's a way to redirect the
> call for that page, I can serve it from Apache if that would be easier,
> or it can be served from Frontier. Performance is not a big issue since
> the site will not be heavily used.
> Any suggestions on how I can accomplish this, or whether it's
> possible? I've tried several approaches and so far none have worked,
> though I don't think I've been very clever, or even very competent about
> it so far. I'm way out of practice with Manila, so things that might
> have been obvious a year ago are not now. Thanks in advance for any
> ideas.
>
>
>
>
More information about the Frontier-Server
mailing list