[Mono-list] Re: Treating .htm as .aspx with Apache ?
Robert Jordan
robertj at gmx.net
Mon Feb 20 07:53:47 EST 2006
Hey,
> Arg, I missed a paragraph!
>
> Gavin Hamill wrote:
>> Should this be possible?
>>
>> When I added AddType application/x-asp-net .htm to the relevant
>> virtual host and restarted apache, I immediately saw any 404's for
>> .htm files change from Apache's built-in response to the Mono 'Server
>> error in '/' application - File '/rt.htm' not found.' one..
>
> ... However, when I just 'cp rt.aspx rt.htm', and then request rt.htm
> from a browser, I get sent the source of the htm file, instead of having
> it parsed + run by Mono.
You also need to inform System.Web about the .htm extension
being now a page:
web.config:
<system.web>
<httpHandlers>
<add verb="*" path="*.htm" type="System.Web.UI.PageHandlerFactory,
System.Web, Version=1.0.5000.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a" />
...
Robert
More information about the Mono-list
mailing list