虽然每个vhost都可以拥有不同的webapp 被deploy(这个单此在这里应该如何翻译????)过的列表,但是每一个webapp也可以同时被不同的vhost deploy。然而所有已经deploy的 实例将被分开并且被创建到每一个vhost,init函数将在每一份copy中被运行一次。
[size=18]Starting the server[/size]
If the virtual host config is in place, the Snakelet server is best started using the provided serv.py script. Just execute this and you're ready to go! Notice that the web applications that you configured in the virtual host config are installed automatically, any other web applications in the webapps directory are ignored. The parameters to snakeserver.server.main are:
如果已经配置好虚拟主机,Snakelets服务将通过提供的serv.py脚本很好的运行。只运行这个脚本就可以了。您对web应用程序的配置在虚拟主机中是自动被载入的,其他的web 应用程序目录将被忽略。传递给 snakeserver.server.main的参数是:
[list]
HTTPD_PORT - the port the http server will be listening on (default=9080).
HTTPD_PORT – http服务监听端口
externalPort - the port the server is visible on from the outside world (default=same as HTTPD_PORT). If you're running behind a forwarding proxy you may need to set this. 'External' hostnames are handled by the virtual host configuration.
externalPort – 外部服务端口(默认同HTTP_PORT相同)。如果通过forwarding proxy运行,您可能需要设置虚拟主机的“外部”主机名。
bindname - the hostname the server will bind on, None (default) means only the current host
bindname – 服务绑定主机名,None为默认。
serverURLprefix - URL prefix for all urls that this server uses (for instance, "/snakelets). Default is '' (empty). Internally it will be molded into the form "/prefix"; slashes will be added/stripped automatically if required.
serverURLprefix – URL前缀,用于所有urls(比如,”/snakelets)。默认为”(empty)。他会被植入到”/prefix”中,斜线将会被自动的添加或者删除。
debugRequests - should the incoming requests and headers be printed? Default is False (boolean).
debugRequests – 打印 incoming 请求 和 headers ? 默认False。
precompileYPages - should all Ypages be precompiled to find possible errors early? Default is True (boolean). You may want to set this to False to allow faster startup times, but then you won't find out if an Ypage can't compile until the page is actually requested. (This feature needs Python2.3+)
上一页 1 2 3 4 56 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 33 34 35 36 37 38 下一页
| 论坛热门帖子: | [lch203] 写得蛮好的linux学习笔记(10-21) [黑马制造] 学习java的30个目标(10-19) [笑傲股林] 做测试半年了,有点迷茫,应该再学些什么提高自己的测试水平和测试能力呢?(10-19) [udp8589] 大家用google的来吱一声? 用百度的~~也来报道下?(10-18) [沂偌掳兆] 本人总结的一些认为C++比较经典的书籍,希望对大家有用(10-18) |
| TAG标签: | 翻译 文档 使用 可以 页面 URL 如果 文件 webapp 一个 |
注册
个人空间
