<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">You can set Varnish to connect to any
      port when you set your backend directive. As far as Varnish on
      Port 80, that is always required for a webserver, unless you want
      a URL that needs to specify a port (ie: <a class="moz-txt-link-freetext" href="http://www.example.com:81">http://www.example.com:81</a>
      - or whatever port you want). <br>
      <br>
      Make sure you have Apache listening on port 8080 in your Apache
      config. You really don't need to open up that port in IPTables,
      since it is a local connection between Varnish and Apache, but you
      do need to make sure that Apache is also listening on localhost. <br>
      <br>
      To make sure Apache is listening on the proper port,&nbsp; go into a
      command line and type:<br>
      <br>
      lynx localhost:8080.<br>
      <br>
      That will bring up the text web browser Lynx. If it isn't
      installed, go ahead and install it with apt-get, yum or whatever
      package installer you have. All major distributions have it open.
      That will tell you if the webserver is actually able to connect to
      Apache or not. <br>
      <br>
      Also make sure that Apache isn't also trying to listen on port 80.
      Look at the listen directive in your apache config file. So you
      want listen like this:<br>
      <br>
      Listen 127.0.0.1:8080.<br>
      <br>
      If you're using virtual hosts, make sure to specify the port in
      the VHost declaration:<br>
      <br>
      &lt;VirtualHost *:8080&gt;<br>
      <br>
      What you're trying to achieve is having all connections to Apache
      go through Varnish, as Varnish functions as a proxy server to
      Apache.<br>
      <pre class="moz-signature" cols="72">Jamie Holly
<a class="moz-txt-link-freetext" href="http://www.intoxination.net">http://www.intoxination.net</a> 
<a class="moz-txt-link-freetext" href="http://www.hollyit.net">http://www.hollyit.net</a></pre>
      On 3/17/2013 2:13 AM, Kamal Palei wrote:<br>
    </div>
    <blockquote
cite="mid:CALO8XuW5xCLZV+CLwUt9-+bO+iKVEjrCcdwhwi4YZo5+y8cLXg@mail.gmail.com"
      type="cite">Dear All<br>
      I am planning to use Varnish 3.0.3 with Drupal 7.15.<br>
      I hope both of these are compatible.., any input highly
      appreciated.<br>
      <br>
      Varnish binds to two ports 6081, 6082.<br>
      I read somewhere we need to run Varnish in port 80 and apache in
      8080 and accordingly we need to configure.<br>
      <br>
      If I do that, I am unable to access the site. Is it required to
      open port 8080 in firewall.<br>
      <br>
      Thanks<br>
      -Kamal<br>
      <br>
      <br>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
    </blockquote>
    <br>
  </body>
</html>