V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
pierre1994
V2EX  ›  Python

IIS7 部署 django 网站有啥好办法

  •  
  •   pierre1994 · 2016-06-08 10:42:03 +08:00 · 3811 次点击
    这是一个创建于 2880 天前的主题,其中的信息可能已经有所发展或是发生改变。

    google 到的方案都是针对 IIS 6 的,求各位分享一下

    9 条回复    2016-06-20 17:18:41 +08:00
    pierre1994
        1
    pierre1994  
    OP
       2016-06-08 10:44:10 +08:00
    使用 IIS 纯属不得已之举,外面的防火墙只开放 80 端口和远程桌面端口,同时 IIS 上面挂了好多其他网站。
    Tink
        3
    Tink  
       2016-06-08 11:32:07 +08:00 via iPhone
    真的不如放到虚拟机里.....这样太折麽自己了
    pierre1994
        4
    pierre1994  
    OP
       2016-06-08 12:09:26 +08:00
    @Tink 是啊,找虐额
    pierre1994
        5
    pierre1994  
    OP
       2016-06-08 12:09:48 +08:00
    @upczww 感谢
    kaneg
        6
    kaneg  
       2016-06-08 13:04:47 +08:00
    可不可以 IIS 只做反向代理,后面 django 放在独立的服务器上
    ytmsdy
        7
    ytmsdy  
       2016-06-08 15:08:44 +08:00
    还好你是 IIS7 的,如果你是 IIS6 的那就无解了。
    用 IIS 的代理功能吧,把对应域名的数据转发到后台的某个端口。然后 django 运行的时候,使用这个端口就好了。
    这个和 apache 或者 nginx 没啥太大的区别。
    pierre1994
        8
    pierre1994  
    OP
       2016-06-20 15:42:19 +08:00
    @ytmsdy 可能是我配置不对,只能将所有请求转发到后台某个端口
    pierre1994
        9
    pierre1994  
    OP
       2016-06-20 17:18:41 +08:00
    @ytmsdy 今天有弄了一下成功了
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1162 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 17:59 · PVG 01:59 · LAX 10:59 · JFK 13:59
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.