【发布时间】:2010-10-01 04:53:07
【问题描述】:
我将很快升级到服务器上的 Linux Debian 6.0 "Squeeze",我想知道如何在许多专用于不同端口的端口上使用 Python 作为 Web 服务器东西..
Ports Directory Description
80, 443 /var/www/sitegen/ Take all domains and generate a site from the SQL DB
444, 1000-3000 /var/www/manager/ Take 444 as a PHP server manager and the rest to be forwarded to serial hardware.
8000-9000 The VMs DIR Forward the port to port 80 (or 443 by settings) on the VMs.
这意味着端口 443 可以用于许多站点(由相同的代码驱动,只是在 SQL DB 中不同)
【问题讨论】:
标签: php python apache ports debian-based