1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

"Complex" estructure for webservers using varnish

Discussion in 'Plesk 10.x for Linux Issues, Fixes, How-To' started by Kivivaj, Mar 25, 2012.

  1. Kivivaj

    Kivivaj Guest

    I'm trying to configure the following strucure:

    Internet -> Varnish (external IP:80) -> nginx (localhost:88)
    -> apache (localhost:80)
    -> mysql (localhost:default port)

    My intention is that from internet people can only access to varnish, that is a "proxy-cache" that can redistribute the petitions from the users to different webserver, on my case nginx is serving a high-traffic site, and apache is serving multiple wordpress sites.

    The reason of use varnish-cache in front of the web servers is because is the uniq way that I found for use different web servers for distribute the load of the sites and have more efficiently use of hardware resources. Varnish-cache is also caching all static content and is serving fast the sites because the web servers only need to pass the dynamic content.

    The problem is that by default Plesk is configuring apache for listen ONLY on external IP, without possibility of change it to (in this case) to localhost, and with this configuration impossed I can't put varnish in front of webservers and webservers only listening on localhost.

    Any help for try solve this?