Ngix - Vanish Not Working

Hi,

I have installed ‘Varnish’ cache along with Nginx; also configuration
has
been changed accordingly.
But now i cannot access pages (could not cnnect to the host);
Is there any settings that I have missed; please help.

OS:CentOS

/etc/default/varnish

DAEMON_OPTS="-a :80
-T localhost:6082
-f /etc/varnish/default.vcl
-S /etc/varnish/secret
-s file,/var/lib/varnish/$INSTANCE/varnish_storage.bin,1G

/etc/varnish/default.vcl

backend apache {
.host = “127.0.0.1”;
.port = “8080”;
}
acl purge {
“localhost”;
“127.0.0.1”;
}
sub vcl_recv {

/etc/nginx/conf.d/default.conf

server {
listen 8080 default;

SSL directives might go here


Posted at Nginx Forum:
http://forum.nginx.org/read.php?2,230179,230179#msg-230179

I had changed my ‘default.vcl’ to:

/etc/varnish/default.vcl

backend default {
.host = “127.0.0.1”;
.port = “8080”;
}
acl purge {
“localhost”;
“127.0.0.1”;
}
sub vcl_recv {

Posted at Nginx Forum:
http://forum.nginx.org/read.php?2,230179,230182#msg-230182

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs