httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brian Candler <B.Cand...@pobox.com>
Subject Re: [users@httpd] mod_rewrite setting handler
Date Thu, 28 Jul 2005 16:06:23 GMT
On Thu, Jul 28, 2005 at 12:42:32PM +0100, Brian Candler wrote:
> Question: is it possible to set the MIME-type and the handler separately in
> mod_rewrite?
> 
> (1) If I do
> 
> RewriteRule \.shtml?$  -  [T=server-parsed,L]
> 
> then the page is parsed, but the wrong MIME type is sent to the client
> ("server-parsed" instead of "text/html")

To answer my own question, by looking at the source: there's a "magic" MIME
type for this case.

    [T=text/x-server-parsed-html]

will use the server-parsed handler, but set the return MIME type to
text/html.

B.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message