httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Porter, Mark" <Mark.Por...@LibertyMutual.com>
Subject [users@httpd] mime.types in a reverse proxy
Date Thu, 25 Oct 2007 18:42:52 GMT
I'm using 2.0.59 on Linux as a reverse-proxy to an IIS device.

<VirtualHost xxx.xxx.xxx.xxx:80>
 
        ServerName site.domain.com
        ProxyPreserveHost On
        RewriteEngine On
        RemoveType dll

        RewriteRule ^/(.*) http://yyy.yyy.yyy.yyy:80/$1 [P]
 
</VirtualHost>

The back-end device is sending responses with no Content-Type header.
The problem is that when a user retrieves a .dll file, Apache attaches a
Content-Type header based on mime.types:

Content-Type: application/octet-stream

Is there a way to have Apache not set that header just for this vhost,
or to make it use the default mime.type? Removing the .dll extension
from mime.types works, but would affect the entire server. RemoveType
dll didn't help - maybe because I'm proxying inside mod_rewrite? 

Any ideas?

Mark

---------------------------------------------------------------------
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