如何将GWAN配置为反向代理? [英] How to configure GWAN as a reverse proxy?

查看:131
本文介绍了如何将GWAN配置为反向代理?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我看到了GWAN的一些性能,并且有兴趣将它作为具有APC的Apache前面的静态内容的反向代理进行测试,以优化PHP操作码,从而运行Wordpress多站点.我可以启动并运行GWAN,但是我不知道如何为反向代理配置它,因为似乎几乎没有任何信息.有人将GWAN用作反向代理吗?

I saw some performance of GWAN and interested in testing it as a reverse proxy of static content in front of Apache with APC for optimizing PHP opcode, to run a Wordpress multisite. I can get GWAN up and running but I have no idea how to configure it for reverse proxy, as there seems to be almost no information on it. Anyone use GWAN as a reverse proxy?

推荐答案

现在,您没有简单的方法可以做到这一点.在下一个版本中将会有所改变.

Right now there's no easy way for you to do that. That will change with the next release.

我们首先与负载均衡器一起在G-WAN中对反向代理功能进行了硬编码.然后,当我们需要个性化反向代理时,我们将其实现为protocol handler脚本.

We first hardcoded the reverse-proxy feature in G-WAN along with the load-balancer. Then, as we needed to personalize reverse-proxying, we implemented it as a protocol handler script.

Protocol handler脚本允许用户实现任何协议(例如SMTP,LDAP等),而不必处理多线程或套接字事件.

Protocol handler scripts allow users to implement any protocol (like SMTP, LDAP, etc.) without haveing to deal with multi-threading nor socket events.

但是最后,为了降低用户的复杂性,我们可能会使用connection handlers脚本恢复为硬编码的实现,以使人们可以个性化反向代理.

But finally, to reduce complexity for users, we might revert to the hard-coded implementation with connection handlers scripts to let people personalize the reverse proxy.

在不同的使用情况下它会日趋成熟,因此推迟公开发布此功能和其他一些功能.

It's maturing under different use cases, hence the delay in publicly releasing this feature and a few others.

如果目标是保持灵活性和易于使用,则急于实现功能和接口并非总是最佳选择.

Rushing to implement features and interfaces is not always optimal, if the goal is to stay flexible and easy to use.

这篇关于如何将GWAN配置为反向代理?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆