Varnish install on aws
lee at leetrout.com
Sat Feb 13 16:53:59 CET 2016
I double checked my configuration for AWS. I'm running a CentOS 7 AMI.
I installed https://repo.varnish-cache.org/redhat/varnish-4.1.el7.rpm and
I'm using http://pastebin.com/K8CfxdqL in /etc/varnish/varnish.params
And i'm using the startup script it ships with for systemd `systemctl
On Sat, Feb 13, 2016 at 6:04 AM, Mike Jones <michaeljones401 at gmail.com>
> Yes, I was talking about the security group, I did open that but it didn't
> make any difference.
> With the settings previously mentioned I tried running curl on port 80 on
> I get
> curl: (7) Failed to connect to localhost port 80: Connection refused.
> On port 8080 I get the default apache page, but adding a directory after
> the port 'curl 127.0.0.1:8080/wordpress' I get an error saying the page
> has moved.
> On port 6082 I get 'Authentication required'
> On Sat, Feb 13, 2016 at 1:41 PM, Lee Trout <lee at leetrout.com> wrote:
>> > Do I need to open port 8080 too?
>> 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.
>> 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.
>> On Saturday, February 13, 2016, Mike Jones <michaeljones401 at gmail.com>
>>> I have a single ec2 instance running and would like to install and
>>> configure Varnish for that aws instance
>>> I've changed the default settings for varnish - /etc/sysconfig/varnish
>>> DAEMON_OPTS="-a :80 \
>>> -T localhost:6082 \
>>> -b localhost:8080 \
>>> -u varnish -g varnish \
>>> -s file,/var/lib/varnish/varnish_storage.bin,1G"
>>> and configured httpd - /etc/httpd/conf/httpd.conf to listen on port 8080
>>> But when I restart both services, the webpage fails to load.
>>> There's nothing in the error_log and when I tail -f the access_log
>>> nothing is logged when I refresh the page.
>>> Do I need to open port 8080 too?
>>> Are there any guides on how to configure Varnish for an aws instance?
>> Sorry I fat thumbed this on an iPhone
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the varnish-misc