How can I forward ports in Cherokee?

I installed cherokee and am very happy with it. But now I am wondering how I can redirect ports. I would like to redirect port 80 to other ports based on the host name, as shown below:

Request http://a.mysite.com- Request -http://mysite.com:8000
http://b.mysite.comhttp://mysite.com:9000

All help is appreciated.
Many thanks!

+3
source share
1 answer

Good! Found himself! :)

To redirect http://a.mysite.comto , follow these steps in the cherokee web administration environment:http://mysite.com:8000

  • First create a virtual server with the name a.mysite.comand give it the root of the document, for example. /var/www/a.

  • "" , "". a.mysite.com mysite:8000 .

  • vServers. , a.mysite.com, , "match nickname".

  • " ", "HTTP Reverse Proxy" . "Round Robin" "Back-end Server".

  • " " a.mysite.com .

  • Cherokee.

b.mysite.com.

Or, when your site becomes more popular, you can add more application servers to a.mysite.com.

+4
source

Source: https://habr.com/ru/post/1794898/


All Articles