deepblue9999 wrote:
> We want to use the reverse proxy for every type of file
for specific virtual
> directories on the Web server. This includes, .js, .css,
.gif, .jpg files.
>
> Problem:
> The coldfusion specific file formats are proxied to the
CF servers without a
> problem (since an IIS mapping exists for each of them).
However, for the static
> file formats it does not work (broken images, missing
.css files etc.)
> c) if in addition to (b), we introduce a url-pattern
mapping in web.xml, and
> associate it with CfmServlet, we start getting the
content of the image in a
> stream (Server response = 200 ) but with incorrect
content-type (it comes
> across as text/html). The images still appear broken
because the content-type
> is incorrect.
Very close. You need to map the extensions to the
FileServlet, not the
CfmServlet. Then restart CF and you are in business. You can
even remove
the mappings in IIS, the mappings in web.xml will overrule
them anyway.
Jochem
--
Jochem van Dieten
Adobe Community Expert for ColdFusion