<div dir="ltr">Restarting varnish, sudo service varnish restart, doesn't show any errors that another service is using the same port. <div><br></div><div>Running <span style="font-size:12.8px">lsof -i :80 -sTCP:LISTEN, produces</span></div><div><span style="font-size:12.8px"><br></span></div><div><div style=""><span style="font-size:12.8px">[ec2-user@ip-xxx-xx-xx-xx html]$ sudo sudo lsof -i :80 -sTCP:LISTEN</span></div><div style=""><span style="font-size:12.8px">COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME</span></div><div style=""><span style="font-size:12.8px">varnishd 9617 varnish 8u IPv4 320854 0t0 TCP *:http (LISTEN)</span></div><div style=""><span style="font-size:12.8px">varnishd 9617 varnish 9u IPv6 320855 0t0 TCP *:http (LISTEN)</span></div><div style=""><span style="font-size:12.8px"><br></span></div><div style=""><span style="font-size:12.8px">[ec2-user@ip-xxx-xx-xx-xx html]$ sudo sudo lsof -i :8080 -sTCP:LISTEN</span></div><div style=""><span style="font-size:12.8px">COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME</span></div><div style=""><span style="font-size:12.8px">httpd 9585 root 4u IPv6 320769 0t0 TCP *:webcache (LISTEN)</span></div><div style=""><span style="font-size:12.8px">httpd 9587 apache 4u IPv6 320769 0t0 TCP *:webcache (LISTEN)</span></div><div style=""><span style="font-size:12.8px">httpd 9588 apache 4u IPv6 320769 0t0 TCP *:webcache (LISTEN)</span></div><div style=""><span style="font-size:12.8px">httpd 9589 apache 4u IPv6 320769 0t0 TCP *:webcache (LISTEN)</span></div><div style=""><span style="font-size:12.8px">httpd 9590 apache 4u IPv6 320769 0t0 TCP *:webcache (LISTEN)</span></div><div style=""><span style="font-size:12.8px">httpd 9591 apache 4u IPv6 320769 0t0 TCP *:webcache (LISTEN)</span></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Feb 13, 2016 at 5:36 PM, Lee Trout <span dir="ltr"><<a href="mailto:lee@leetrout.com" target="_blank">lee@leetrout.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Can you paste the output of varnishlog? <div><br></div><div>And can you double check before and after stopping / restating that there is nothing on port 80 before starting varnish and then confirm varnish is listening on port 80 after you start it? You can go this with `lsof -i :80 -sTCP:LISTEN`<div><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Feb 13, 2016 at 11:56 AM, Mike Jones <span dir="ltr"><<a href="mailto:michaeljones401@gmail.com" target="_blank">michaeljones401@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr">I have a 'WordPress basic single instance' from <a href="http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/sample-templates-applications-us-west-1.html" target="_blank">http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/sample-templates-applications-us-west-1.html</a><div><br></div><div>and my varnish file, located in /etc/sysconfig/varnish, looks like</div><div><br></div><div><a href="http://pastebin.com/hZNr6Apc" target="_blank">http://pastebin.com/hZNr6Apc</a><br></div><div><br></div><div>While my httpd conf file, /etc/httpd/conf/httpd.conf, looks like </div><div><br></div><div><a href="http://pastebin.com/xeZs8KQq" target="_blank">http://pastebin.com/xeZs8KQq</a><br></div><div><br></div><div>Running varnishstat looks like it's running but when visiting the webserver through the browser the page fails to load.</div></div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Feb 13, 2016 at 4:15 PM, Brad Tarver <span dir="ltr"><<a href="mailto:idle@pobox.com" target="_blank">idle@pobox.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">6082 is the admin port<br>
<br>
This is my config on ubuntu: <a href="http://pastebin.com/E3tQ1eC1" target="_blank">http://pastebin.com/E3tQ1eC1</a><br>
<br>
<br>
<br>
<br>
<br>
<br>
<div>-- <br><small style="color:rgb(136,136,136);font-style:italic"><small>Brad Tarver</small></small><br>
</div>
<br>
<br>
<span>Mike Jones wrote:</span><br>
<blockquote type="cite"><div><div>
<div dir="ltr">Yes, I was talking about the security group, I did open
that but it didn't make any difference.<div><br></div><div>With the
settings previously mentioned I tried running curl on port 80 on I get</div><div><br></div><div>curl:
(7) Failed to connect to localhost port 80: Connection refused.</div><div><br></div><div>On
port 8080 I get the default apache page, but adding a directory after
the port 'curl <a href="http://127.0.0.1:8080/wordpress" target="_blank">127.0.0.1:8080/wordpress</a>' I
get an error saying the page has moved.</div><div><br></div><div>On port
6082 I get 'Authentication required'</div><div><br></div></div>
<div class="gmail_extra"><br><div class="gmail_quote">On Sat, Feb 13,
2016 at 1:41 PM, Lee Trout <span dir="ltr"><<a href="mailto:lee@leetrout.com" target="_blank">lee@leetrout.com</a>></span>
wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><span><font size="2"><span style="background-color:rgba(255,255,255,0)">> Do I
need to open port 8080 too?</span></font><div><font size="2"><span><br></span></font></div></span><div><font size="2"><span>Open it where? In a security group? You should make sure
you have port 80 open in your security group but that won't affect
local host. </span></font></div><div><font size="2"><span><br></span></font></div><div><font size="2"><span>You should try curling against the interfaces on the box
from the box itself and make sure it's actually sending info back
locally. With your config I believe you should be able to curl local
host on port 80 as well since you only specified a listening port. <span></span><br></span></font><div><div><br>On Saturday, February 13, 2016, Mike Jones <<a href="mailto:michaeljones401@gmail.com" target="_blank">michaeljones401@gmail.com</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div>Hi,</div><div><br></div><div>I
have a single ec2 instance running and would like to install and
configure Varnish for that aws instance</div><div><br></div><div>I've
changed the default settings for varnish - /etc/sysconfig/varnish</div><div><br></div><div>DAEMON_OPTS="-a
:80 \</div><div> -T localhost:6082 \</div><div>
-b localhost:8080 \</div><div> -u varnish -g varnish \</div><div>
-s file,/var/lib/varnish/varnish_storage.bin,1G"</div><div><br></div><div>and
configured httpd - /etc/httpd/conf/httpd.conf to listen on port 8080</div><div><br></div><div>But
when I restart both services, the webpage fails to load.</div><div><br></div><div>There's
nothing in the error_log and when I tail -f the access_log nothing is
logged when I refresh the page.</div><div>Do I need to open port 8080
too?</div><div><br></div><div>Are there any guides on how to configure
Varnish for an aws instance?</div><div><br></div><div>Thanks</div></div></blockquote></div></div></div><span><font color="#888888"><br><br>-- <br>Sorry I fat thumbed
this on an iPhone <br>
</font></span></blockquote></div><br></div>
</div></div><pre>_______________________________________________
varnish-misc mailing list
<a href="mailto:varnish-misc@varnish-cache.org" target="_blank">varnish-misc@varnish-cache.org</a>
<a href="https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc" target="_blank">https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc</a></pre>
</blockquote>
<br>
</div>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div></div></div></div></div>
</blockquote></div><br></div>