[英]How to add a django application in classic asp website in IIS 7.5?
我目前正在配置IIS 7.5,其中主要网站是使用经典ASP构建的,并且需要实现主要网站的Django应用程序INSIDE。 我已经采用多种方式将IIS配置为在经典ASP网页中运行django应用程序,但由于某种原因,它始终显示403 Forbidden
错误。
我已经阅读并研究了有关此问题的文章和帖子,但是其中大多数资源都与许可问题有关。
这是到目前为止我采取的步骤/方法。
Option 1
1. Add a folder where django application is located as a virtual directory in IIS 7.5
2. Configure DJANGO_SETTINGS_MODULE, PYTHONPATH, WSGI_HANDLER variables in FastCGI configuration at server level.
3. Add Handler Mapping in application level to run python in IIS.
4. Grant a permission to ASP website's application pool to the django application folder so that ASP website can access django application folder.
Option 2
All of steps are same as option 1 except added django application as a application instead of virtual directory.
在应用程序池方面,我尝试了DefaultAppPool, IIS_IUSR, IUSR, ApplicationPoolIdentity, NetworkService
但是它们都没有起作用。 (顺便说一句,每当我打开Directory Browsing
,我都可以导航到django应用程序的文件夹并查看内容)
除了上述步骤外,我还尝试取消选中SSL Settings
或至少查看其他配置,例如Authentication, .NET Authorization Rules, etc
,该配置允许所有用户或使用Basic Authentication
验证的用户进行Basic Authentication
我不确定这里缺少什么。 任何反馈意见。 谢谢!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.