-
Notifications
You must be signed in to change notification settings - Fork 9
/
web.config
32 lines (32 loc) · 1.17 KB
/
web.config
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<configuration>
<appSettings>
<add key="PYTHONPATH" value="%SystemDrive%\home\site\wwwroot;%SystemDrive%\home\site\wwwroot\env\Lib\site-packages" />
<add key="WSGI_HANDLER" value="warehouse.wsgi.application" />
<add key="DJANGO_SETTINGS_MODULE" value="warehouse.settings" />
</appSettings>
<system.web>
<compilation debug="true" targetFramework="4.0" />
</system.web>
<system.webServer>
<handlers>
<add name="Python FastCGI"
path="handler.fcgi"
verb="*"
modules="FastCgiModule"
scriptProcessor="D:\Python27\python.exe|D:\Python27\Scripts\wfastcgi.py"
resourceType="Unspecified"
requireAccess="Script" />
</handlers>
<rewrite>
<rules>
<rule name="Django Application" stopProcessing="true">
<match url="(.*)" ignoreCase="false" />
<conditions>
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
</conditions>
<action type="Rewrite" url="handler.fcgi/{R:1}" appendQueryString="false" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>