警告:默认配置是可以正常工作的,但是您如果使用他做server环境是很不安全的。需要移除 example plugin 和 Snakelets自带的webapp。
[size=18]Apache?[/size]
...is not needed: Snakelets contains its own multithreaded web server. But if you still want to use Apache, you can use mod_proxy or mod_rewrite to let Apache forward certain requests to a running snakelets server behind it. Plans exist to develop a snakelets module for tighter integration in Apache, and for more performance. But for now, you'll have to use mod_proxy (or mod_rewrite).
Apache?
…没有必要使用:snakelets 包括自己特有的 multithreaded(不知道是虾米意思) web server。不过如果你坚持要用Apache的话,你可以使用mod_proxy 或mod_rewrite 来让apache指向某些来自snakelets的请求。正在计划开发一个snakelets的模块来让apache和snakelets紧密结合起来,并使其功能更加完善。但是目前您还只能够使用mod_proxy 或者 mod_rewrite。
Configuring Apache; bottom line: Set up apache to reverse-proxy everything after snake/ to Snakelets.
配置Apache;概要:安装 apache 来 reverse-proxy(??什么意思??)snake/下的所有东西到Snakelets。(这段好像是说翻转代理所有snake/目录下的东西到Snakelets,使得Snakelets可以解析此目录下的所有页面)
Warning: as the Apache manual also states, regarding the use of proxies: please secure your Apache configuration: do not let it become an open proxy server!
警告:在Apache参考中关于proxies的描述:
请注意Apache的配置安全问题:不要让你的apache成为一个开放的proxy server
Edit your Apache config file. Make sure that mod_proxy is loaded in the LoadModule section.
编辑你的Apache 配置文件。确认mod_proxy在LoadModule段落中被载入。
Configure the forwarding to the Snakelets server:
配置 forwarding 到 Snakelets server:
ProxyRequests Off
ProxyPass /snake/ http://localhost:9080/snake/
ProxyPassReverse /snake/ http://localhost:9080/snake/
This example forwards all requests starting with '/snake/' to Snakelets. You can also configure a dedicated virtual host, for example:
例子是指向 /snake/ 目录的,你也可以设置专门的虚拟主机:
<VirtualHost snakelets.host.domain>;
ServerName snakelets.host.domain
ProxyRequests Off
| 论坛热门帖子: | [lch203] 写得蛮好的linux学习笔记(10-21) [黑马制造] 学习java的30个目标(10-19) [笑傲股林] 做测试半年了,有点迷茫,应该再学些什么提高自己的测试水平和测试能力呢?(10-19) [udp8589] 大家用google的来吱一声? 用百度的~~也来报道下?(10-18) [沂偌掳兆] 本人总结的一些认为C++比较经典的书籍,希望对大家有用(10-18) |
| TAG标签: | 翻译 文档 使用 可以 页面 URL 如果 文件 webapp 一个 |
注册
个人空间
