ProxyPass / http://localhost:9080/
ProxyPassReverse / http://localhost:9080/
</VirtualHost>;
Now all requests to this hostname will be passed to Snakelets.
现在所有的请求会被发送到snakelets。
Then run Snakelets where you set (in serv.py) bindname='localhost', serverURLprefix='/snake/' and externalPort=80. If you use the virtualhost mapping, the serverURLprefix is empty.
在serv.py中设置bindname='localhost', serverURLprefix='/snake/' , externalPort=80 。如果您使用virtualhost mapping , 那么servURLprefix 为空。
Note: if you are using mod_cache, you must tell it to not cache the Snakelets urls! This can be done like this:
注意:如果您使用 mod_cache,那么必须说明不缓存 Snakelets urls !设置如下:
<IfModule mod_cache.c>;
CacheDisable /your-snakelet-url-base
</IfModule>;
If you find that your URLs are not correct in Snakelets, you also have to enable virtual hosting in Snakelets (see below) and create a virtual host entry for the 'correct' hostname (i.e. the hostname that is used in your URLs). (You can still use a different bindname such as "localhost").
如果您的URLs在snakelets中不正确,你也必须在snakelets中开启虚拟主机(见下文)并且为正确的主机名开放入口(也就是在您的URLs中所使用的主机名)。(您仍然可以使用不同的bindname,比如”localhost”)。
[size=18]Virtual Hosts[/size]
Snakelets supports virtual hosting (based on hostnames). To enable this feature you have to edit the Virtual Host configuration. It tells the server what web applications to load and to what host names they must be connected. If you have different hostnames that point to the same IP address you are able to serve different web sites this way (this only works with HTTP 1.1 browsers, but most browsers are). The configuration file is webapps/__init__.py (the webapp module init file). It contains four configuration items:
上一页 1 2 34 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 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 一个 |
注册
个人空间
