[Xitami] Dynamic URL converstion to static URLs
Russel Olinger
rolinger1 at hotmail.com
Sun Jan 13 17:35:54 CET 2008
I discovered you can also set your default page to "/"
And then create a cgi alias for
"/" = /xitami/cgi-bin/somescript.pl
You can then use the secondary and teriary default fields for other static
pages such as "index.html" or "defualt.html"
This will allow your landing page to a be a cgi/perl script in a central
directory without having to create a filter for script extensions to work
out side of your cgi directory. Previously I had a "foo.pl" perl script in
my root htdocs directory (/xitami/htdocs) and then had "foo.pl" as my
default page - I needed a filter binding *.pl = /perl/bin/perl to execute my
landing page....this posed a few maintenance and security problems.
However, the about "/" method also seems to hide directory listings of URL
directories that do not have a default page. Though the files in URL
directories are still individually accessable, the directory is no longer
viewable as a file/folder listing. This is a great way to protect
directories from being viewed as file listings if a default page doesn't
exist in that folder.
I have not found any downsides to this method...anyone else used/seen it
before to comment on it?
With out any default page in the URL directories:
IE: www.foo.com/images/bar/helloworld.jpg - would still show the image in
the browser
but : www.foo.com/images or www.foo.com/images/bar would only yeild the
following results
File list of /images///////////////////////
directory
Name Size Last
Modified--------------------------------------------------------------------------------/images/////////////////////////
and
File list of /images/bar//////////////////////
directory
Name Size Last
Modified--------------------------------------------------------------------------------/images/bar////////////////////////
----- Original Message -----
From: "General" <ronackgen01 at bellsouth.net>
To: "'Xitami Users General Discussion'" <xitami at lists.xitami.org>
Sent: Sunday, January 13, 2008 8:16 AM
Subject: Re: [Xitami] Dynamic URL converstion to static URLs
> Yeah whatever, I misspoke! It's the Web Server that does it but the
> browser
> translates it. You can tell Xitami which file to use by default whether it
> be index.htm,html,php or default.htm,html,php. I expect you could even use
> start.xxx if you wanted. I haven't tried it though.
>
> Thanks for clarifying for me.
>
> Ron
>
>
> -----Original Message-----
> From: xitami-bounces at lists.xitami.org
> [mailto:xitami-bounces at lists.xitami.org] On Behalf Of Paul Reid
> Sent: Saturday, January 12, 2008 8:28 PM
> To: Xitami Users General Discussion
> Subject: Re: [Xitami] Dynamic URL converstion to static URLs
>
>> http://www.causewaylighting.com/bulbs
>> or
>> http://www.causewaylighting.com/bulbs/index.php
>>
>> Since most browsers if not all browsers assume index.php you can usually
>> leave it off.
>
> The browser assumes no such thing.
>
> The web-server has a default action if a URL points to a Directory
> instead of a File.
>
> Xitami comes pre-loaded to look for the usual default.htm and index.html.
>
> You can add index.php to that list.
>
> Then a call for "../bulbs/" (a directory) is fulfilled with
> "../bulbs/default.htm" or whatever action you have set up.
>
>
> --
> Xitami Users Mailing List -- For Xitami support
> To unsubscribe: http://lists.xitami.org/mailman/listinfo/xitami
>
>
> --
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.5.516 / Virus Database: 269.19.1/1220 - Release Date: 1/11/2008
> 6:09 PM
>
>
>
> --
> Xitami Users Mailing List -- For Xitami support
> To unsubscribe: http://lists.xitami.org/mailman/listinfo/xitami
>
More information about the Xitami
mailing list