main
Last change
on this file was
42bd667,
checked in by David Fuertes <dfuertes@…>, 4 years ago
|
Historial Limpio
|
-
Property mode set to
100755
|
File size:
2.1 KB
|
Line | |
---|
1 | <?xml version="1.0" encoding="UTF-8" ?> |
---|
2 | <!-- app configuration for web2py on IIS --> |
---|
3 | <configuration> |
---|
4 | <appSettings> |
---|
5 | <add key="WSGI_HANDLER" value="gluon.main.wsgibase" /> |
---|
6 | <add key="WSGI_RESTART_FILE_REGEX" value=".*((routes\.py)|(\.config))$" /> |
---|
7 | </appSettings> |
---|
8 | <system.webServer> |
---|
9 | <rewrite> |
---|
10 | <rules> |
---|
11 | <clear /> |
---|
12 | <rule name="static" enabled="true" stopProcessing="true"> |
---|
13 | <match url="^(\w+)/static(?:/_[\d]+\.[\d]+\.[\d]+)?/(.*)$" /> |
---|
14 | <conditions logicalGrouping="MatchAll" trackAllCaptures="false" /> |
---|
15 | <action type="Rewrite" url="applications/{R:1}/static/{R:2}" logRewrittenUrl="false" /> |
---|
16 | </rule> |
---|
17 | <rule name="web2py_app" enabled="true" stopProcessing="true"> |
---|
18 | <match url="(.*)" ignoreCase="false" /> |
---|
19 | <conditions logicalGrouping="MatchAll" trackAllCaptures="false" /> |
---|
20 | <action type="Rewrite" url="handler.web2py/{R:1}" appendQueryString="true" /> |
---|
21 | </rule> |
---|
22 | </rules> |
---|
23 | <outboundRules> |
---|
24 | <rule name="static_version_cache_control" preCondition="static_version"> |
---|
25 | <match serverVariable="RESPONSE_Cache-Control" pattern=".*" /> |
---|
26 | <action type="Rewrite" value="max-age=315360000" /> |
---|
27 | <conditions> |
---|
28 | </conditions> |
---|
29 | </rule> |
---|
30 | <rule name="static_version_Expires" preCondition="static_version"> |
---|
31 | <match serverVariable="RESPONSE_Expires" pattern=".*" /> |
---|
32 | <action type="Rewrite" value="Thu, 31 Dec 2037 23:59:59 GMT" /> |
---|
33 | </rule> |
---|
34 | <preConditions> |
---|
35 | <preCondition name="static_version"> |
---|
36 | <add input="{REQUEST_URI}" pattern="(\w+)/static(?:/_[\d]+\.[\d]+\.[\d]+)?/(.*)$" /> |
---|
37 | </preCondition> |
---|
38 | </preConditions> |
---|
39 | </outboundRules> |
---|
40 | </rewrite> |
---|
41 | <handlers> |
---|
42 | <!-- replace SCRIPT_PROCESSOR with the configured handler for python --> |
---|
43 | <add name="Python_via_FastCGI" path="handler.web2py" verb="*" modules="FastCgiModule" scriptProcessor="SCRIPT_PROCESSOR" resourceType="Unspecified" requireAccess="Script" /> |
---|
44 | </handlers> |
---|
45 | </system.webServer> |
---|
46 | </configuration> |
---|
Note: See
TracBrowser
for help on using the repository browser.