Proper static/script configuration with IIS.

14 views
Skip to first unread message

Kari Hoijarvi

unread,
Oct 12, 2012, 1:14:06 PM10/12/12
to we...@googlegroups.com
Hello,

Thanks for writing up The
http://webpy.org/cookbook/iis7_iis6_windows_pyisapie which would have
been a few days of work to figure out by myself.

But I have one question remaining. What's the best way to write IIS
web.config, so that all the static content comes from /static and any
other path is for python?

I didn't figure out anything else but:

<configuration>
<system.webServer>
<handlers accessPolicy="Read, Execute, Script">
<add name="OWS_A" path="/A*" verb="*" modules="IsapiModule"
scriptProcessor="E:\OWS\PyISAPIe.dll" resourceType="Unspecified"
preCondition="bitness32" />
<add name="OWS_B" path="/B*" verb="*" modules="IsapiModule"
scriptProcessor="E:\OWS\PyISAPIe.dll" resourceType="Unspecified"
preCondition="bitness32" />

and so on for A-R and T-Z. So static maps to static files by default,
and web services work as long as the ones starting with S are configured
without wildcards.

This is obviously ugly, but it works now and I could not figure out
anything better. Any ideas?

Thanks, Kari

Reply all
Reply to author
Forward
0 new messages