[plug] Apache with XUL index files
W.Kenworthy
billk at iinet.net.au
Mon Oct 31 11:03:01 WST 2005
Would adding index.xul to this help?
### DirectoryIndex: Name of the file or files to use as a pre-written
HTML
### directory index. Separate multiple entries with spaces.
###
<IfModule mod_dir.c>
DirectoryIndex index.html index.html.var index.php index.php3
index.shtml index.cgi index.pl index.htm Default.htm default.htm
</IfModule>
On Mon, 2005-10-31 at 08:24 +0800, Matthew Lambie wrote:
> On Sun, 2005-10-30 at 21:46 +0800, Timothy White wrote:
> > I want to use a xul file as a index file in apache2.
> > So for example, when you goto http://example.com/ it serves up
> > index.html, or index.php.... depending on what file is there.
> > If I add index.xul to that list, it serves it up, but with MIME type
> > text/html instead of application/vnd.mozilla.xul+xml
> > When I ask for the file index.xul (instead of just index or no file,
> > just a directory) it works. I have all the correct MIME type entries,
> > it seems that the problems is that because there is no extension in
> > the request, it takes the default of text/html, instead of looking at
> > the file that is served, and using the appropriate MIME type.
> >
> > Is there a way for me to get this working, or is it a bug in Apache?
>
> I immediately thought you could have PHP send a redirect request back to
> the browser, so you serve index.php, which bounces the user onto
> index.xul.
>
> <?php header("Location: index.xul"); ?>
>
> Probably not the solution you expected, but one that would work.
More information about the plug
mailing list