[Mono-list] add .asp to mono handler

Scott Mohekey scott.mohekey@telogis.com
Thu, 16 Sep 2004 10:04:32 +0000


This is a multi-part message in MIME format.
--------------060407020705000500060402
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit

Hector Gonzalez wrote:

> Hi Scott, I tried that and It didn't work, but I think what it did was 
> pretty much what I already had?, it is serving me the files as 
> unknown, just as a downloadable file, not parsing it at all.
>  
> ----this is what I had previously
> AddHandler mono .aspx .ascx .asax .ashx .config .cs .asmx .asp
>  
>  
> thanks
> -Hector
>  
>
>     ----- Original Message -----
>     *From:* Scott Mohekey <mailto:scott.mohekey@telogis.com>
>     *To:* Hector Gonzalez <mailto:hgonzalez@quadgrafix.com>
>     *Cc:* mono-list@lists.ximian.com <mailto:mono-list@lists.ximian.com>
>     *Sent:* Thursday, September 16, 2004 5:40 AM
>     *Subject:* Re: [Mono-list] add .asp to mono handler
>
>     Hector Gonzalez wrote:
>
>>     Hello, I'm using apache with mod_mono and everything works great,
>>     but I have
>>     an old website that has all .asp extensions, (we want to keep the
>>     extensions), is there any way for me to add the .asp extension to
>>     the list?
>>     maybe I'm missing something in the mono-side, not just httpd.conf
>>     apache,
>>     not sure..
>>
>>     thanks a lot
>>     Hector
>
>     The following will work:
>
>     <IfModule mod_mime.c>
>         AddHandler mono .asp
>     </IfModule>
>
Do you have both mod_mime and mod_mono loaded ?

Also, where are you putting these configuration directives? Inside the 
root server, or a virtual host?

Scott.

--------------060407020705000500060402
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Hector Gonzalez wrote:
<blockquote cite="mid005f01c49b6e$cf0c63a0$ad00a8c0@oneal" type="cite">
  <title></title>
  <meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1">
  <meta content="MSHTML 6.00.2900.2180" name="GENERATOR">
  <div><font face="Arial" size="2">Hi Scott, I tried that and It didn't
work, but I think what it did was pretty much what I already had?, it
is serving me the files as unknown, just as a downloadable file, not
parsing it at all.</font></div>
  <div>&nbsp;</div>
  <div><font face="Arial" size="2">----this is what&nbsp;I had&nbsp;previously</font></div>
  <div><font face="Arial" size="2">AddHandler mono .aspx .ascx .asax
.ashx .config .cs .asmx .asp</font></div>
  <div>&nbsp;</div>
  <div>&nbsp;</div>
  <div><font face="Arial" size="2">thanks</font></div>
  <div><font face="Arial" size="2">-Hector</font></div>
  <div>&nbsp;</div>
  <blockquote
 style="border-left: 2px solid rgb(0, 0, 0); padding-right: 0px; padding-left: 5px; margin-left: 5px; margin-right: 0px;">
    <div
 style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;">-----
Original Message ----- </div>
    <div
 style="background: rgb(228, 228, 228) none repeat scroll 0%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial; font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"><b>From:</b>
    <a title="scott.mohekey@telogis.com"
 href="mailto:scott.mohekey@telogis.com">Scott Mohekey</a> </div>
    <div
 style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"><b>To:</b>
    <a title="hgonzalez@quadgrafix.com"
 href="mailto:hgonzalez@quadgrafix.com">Hector Gonzalez</a> </div>
    <div
 style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"><b>Cc:</b>
    <a title="mono-list@lists.ximian.com"
 href="mailto:mono-list@lists.ximian.com">mono-list@lists.ximian.com</a>
    </div>
    <div
 style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"><b>Sent:</b>
Thursday, September 16, 2004 5:40 AM</div>
    <div
 style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"><b>Subject:</b>
Re: [Mono-list] add .asp to mono handler</div>
    <div><br>
    </div>
Hector Gonzalez wrote:
    <blockquote cite="mid003401c49b62$c99ac440$ad00a8c0@oneal"
 type="cite">
      <meta content="MSHTML 6.00.2900.2180" name="GENERATOR">
      <style></style>
      <div>Hello, I'm using apache with mod_mono and everything works
great, but I have <br>
an old website that has all .asp extensions, (we want to keep the <br>
extensions), is there any way for me to add the .asp extension to the
list? <br>
maybe I'm missing something in the mono-side, not just httpd.conf
apache, <br>
not sure..<br>
      <br>
thanks a lot<br>
Hector </div>
    </blockquote>
The following will work:<br>
    <br>
&lt;IfModule mod_mime.c&gt;<br>
&nbsp;&nbsp;&nbsp; AddHandler mono .asp<br>
&lt;/IfModule&gt;<br>
  </blockquote>
</blockquote>
Do you have both mod_mime and mod_mono loaded ?<br>
<br>
Also, where are you putting these configuration directives? Inside the
root server, or a virtual host?<br>
<br>
Scott.<br>
</body>
</html>

--------------060407020705000500060402--