Gentoo Archives: gentoo-server

From: Eric Sammer <eric@××××××××××××.com>
To: gentoo-server@g.o
Subject: Re: [gentoo-server] apache::asp
Date: Fri, 12 Dec 2003 21:07:08
Message-Id: 3FDA825B.80106@ineoconcepts.com
In Reply to: [gentoo-server] apache::asp by Mike
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

Replies

Subject Author
Re: [gentoo-server] apache::asp Eric Sammer <eric@××××××××××××.com>