2 entries tagged with 'Cherokee'

How to access cherokee-admin from a remote machine

The cherokee-admin binds only to local loopback by default. There are some workarounds:


Create an SSH tunnel. This is the recommended way. In order to do so you must issue the following command:

[email protected]:~$ ssh -L 9090:localhost:9090 remote_IP

After that your terminal will be logged in the remote machine. There you can start the admin. From then on you can access this remote interface through http://localhost:9090. Every request will be forwarded to the remote IP running cherokee-admin.

The -b parameter

Launch cherokee-admin with the -b parameter in order to force it to listen to all the network interfaces.

Copy and paste

Finally you could always install cherokee on your local host, configure it there and then copy the generated cherokee.conf file to the device running the cherokee instance you wanted to set up.

How to on port redirection in Cherokee

To redirect http://a.mysite.com to http://mysite.com:8000 follow these steps in your Cherokee admin web environment:

  • First go to the vServers tab and create a virtual server with name a.mysite.com and give it a document root, e.g. /var/www.

  • Then link to the sources tab and create a new information source by clicking the 'plus' icon. Enter a.mysite.com as nick and mysite:8000 as connection.

  • Go back to the vServers tab. After making sure that the a.mysite.com server is selected check that the host match method is set to 'match nickname'.

  • In the behaviour tab select the default directory and in the handler tab select HTTP Reverse Proxy from the handler dropdown list. Then select Round Robin as balancer in the Back-end Server section.

  • In the section Assign Information Sources section select a.mysite.com as application server.

  • Then save and restart Cherokee.

Now the http://a.mysite.com will be redirected automatically to http://mysite.com:8000. And, when your site becomes more popular, you can add more application servers to mysite.com.