HTTP Reverse Proxy

Top  Previous 

It is possible use a reverse proxy configuration with an external web server, providing access to the CirrusPrint browser interfaces through custom URLs hosted by another web server.  Here is an example set of configuration lines for the Apache HTTPD server:

 

 

RewriteEngine On

RewriteRule /cp$ /cp/

ProxyPass "/cp/" "http://10.0.0.1:27082/"

ProxyPassReverse "/cp/" "http://10.0.0.1:27082/"

 

 

The above lines do the following:

 

Turns on the rewrite engine.  Note that Apache will require the mod_rewrite module to be enabled

Rewrites URLs ending in /cp to add a trailing slash so the following ProxyPass directives take effect

Any /cp/ path will access the specified URL along with data following /cp/

 

You will also likely want to set the external URL in site configuration to match this setting.