Building Appweb with Proxy Support

Appweb includes support for proxying HTTP requests on Unix like systems. However it is not enabled by default to minimize the security surface. If you wish to use the Proxy module, you need to enable it and rebuild Appweb.

To build Appweb with Proxy support via MakeMe, use the following:

./configure --with proxy
me

If you are building with make, use:

make ME_COM_PROXY=1

Proxy Configuration

There is no default configuration for Proxy in the supplied appweb.conf. You will need to add directives to your appweb.conf once Appweb is built with Proxy support. The Proxy handler is configured via the ProxyConnect configuration directive.

For example:

<Route ^/proxy/(.*)$>
    Reset pipeline
    SetHandler proxyHandler
    Prefix /proxy
    ProxyConnect 127.0.0.1:9999
</Route>

© Embedthis Software. All rights reserved.