Shared hosting

Hugo Cisneiros (Eitch) hugo.cisneiros at gmail.com
Tue Feb 26 18:02:59 CET 2013


On Tue, Feb 26, 2013 at 1:06 PM, Programação-Fabrício <
programacao at maxmeio.com> wrote:

> It is possible to have a backend on a shared hosting? When I put in the
> url of the site, it tries to access the server root.
>
> backend default {
>     .host = "mydomain.com";
>     .port = "80";
> }
>
> mydomain.com is on a shared hosting.
>

Yes, it is possible.

Instead of the ".url" on the backend configuration, you can use the
".request" to generate a custom request. For example:

backend default {
  .host = "shared-server-ip";
  .port = "80";
  .request =
    "GET / HTTP/1.1"
    "Host: www.my-vhost-domain.com"
    "Connection: close";
}

[]'s
Hugo
www.devin.com.br
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20130226/afc2374d/attachment.html>


More information about the varnish-misc mailing list