Edit Rename Changes History Upload Download Back to Top

Proxying from apache to WebToolkit

First, make sure that you build apache with proxy enabled (./configure --enable-proxy, for example). Then, add the following to your httpd.conf file. Modify the host name and URLs appropriately. Be sure to restart apache if you didn't already. Now, configure a TinyHttpServer (not an IPWebListener!) on the appropriate port (8008, in my example) and start it up. You should be able to reach your configure site by hitting apache with /configure/ as a path (note that the trailing slash is required).

When it's time to deploy you can look at further restricting who can access the /configure/ site as well as mapping urls like /shopping to /shopping/ (to avoid the problem of forgetting the trailing slash). mod_rewrite is good for this...


<IfModule mod_proxy.c>
    <Proxy *>
       Order deny,allow
       Deny from all
       Allow from 10.11.10.  # who do you want to have access to
       Allow from 10.11.11.  # this site?
       Allow from localhost
    </Proxy>

    # map path /vw/ to my TinyHttpServer running on 10.11.11.14:8008
    ProxyPass /vw/ http://10.11.11.14:8008/vw/
    ProxyPassReverse /vw/ http://10.11.11.14:8008/vw/

    # as above for configure site
    ProxyPass /configure/ http://10.11.11.14:8008/configure/
    ProxyPassReverse /configure/ http://10.11.11.14:8008/configure/

    ProxyPass /shopping/ http://10.11.11.14:8008/shopping/
    ProxyPassReverse /shopping/ http://10.11.11.14:8008/shopping/
    

    #
    # Enable/disable the handling of HTTP/1.1 "Via:" headers.
    # ("Full" adds the server version; "Block" removes all outgoing Via: headers)
    # Set to one of: Off | On | Full | Block
    #
#    ProxyVia On

</IfModule>


Edit Rename Changes History Upload Download Back to Top