make apache2 serve file as htmL? (kinda urgent)

CLIFFORD ILKAY clifford_ilkay-biY6FKoJMRdBDgjK7y7TUQ at public.gmane.org
Fri Jan 12 01:39:41 UTC 2007


On Thursday 11 January 2007 20:21, Matt Price wrote:
> Hi folks,
>
> I just screwed up and wrote down the wrong url in my lecture:
> http://www.derailleur.org/global
> instead of
> http://www.derailleur.org/global.html
>
> so I thought, no problem, I'll just copy the page over.  But as you
> can see by clicking the above links, the first one is served up as
> text.  I tried changing
> DefaultType text/plain
> to
> DefaultType text/html
>
> in
> /etc/apache2/apache2.conf, and also in  ROOT/.htaccess for this
> host,
>
> but neither had any effect.am I doing something wrong?
>
> All help much appreciated!  thanks,

Hi Matt,

If Apache is configured to follow symlinks, you could just put a 
symlink from global to global.html.
-- 
Regards,

Clifford Ilkay
Dinamis Corporation
3266 Yonge Street, Suite 1419
Toronto, ON
Canada  M4N 3P6

+1 416-410-3326
--
The Toronto Linux Users Group.      Meetings: http://gtalug.org/
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://gtalug.org/wiki/Mailing_lists





More information about the Legacy mailing list