1 |
Mike wrote: |
2 |
> when i request an asp script from apache it outputs |
3 |
> it as text. |
4 |
|
5 |
When you use a file extension unknown to Apache, you have to tell it |
6 |
what type of file it is. Even though it's a "script" parsed by the |
7 |
server, the output is the same format as an HTML file, and thus, you |
8 |
must use the following: |
9 |
|
10 |
AddType .asp text/html |
11 |
|
12 |
(...where .asp is your filename extension and text/html is the mime type.) |
13 |
|
14 |
This associates *.asp files with the mime type text/html. It's in the |
15 |
Apache docs and is part of the base Apache system (mod_mime, actually). |
16 |
|
17 |
See also: http://httpd.apache.org/docs-2.0/mod/mod_mime.html#addtype |
18 |
|
19 |
Also, keep in mind that Apache::ASP was just recently ported to Apache2 |
20 |
and might be a little "odd." Or, at least that's the last I heard on the |
21 |
mod_perl mailing list (which you might want to join - |
22 |
http://perl.apache.org). |
23 |
|
24 |
HTH. |
25 |
-- |
26 |
Eric Sammer |
27 |
eric@××××××××××××.com |
28 |
http://www.ineoconcepts.com |