[plug] Apache with XUL index files
Matthew Lambie
mlambie at thefrontiergroup.com.au
Mon Oct 31 08:24:10 WST 2005
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.
--
Thanks,
Matthew Lambie
Technical Director
THE FRONTIER GROUP, PTY. LTD.
Suite 17/44 Kings Park Road
West Perth, WA 6005
Australia
w: http://thefrontiergroup.com.au
e: mlambie at thefrontiergroup.com.au
f: +61 (08) 6263 4444
m: +61 408 866 997
More information about the plug
mailing list