# Ngix - Vanish Not Working

**URL:** <https://www.ruby-forum.com/t/ngix-vanish-not-working/222422>\
**Category:** NGINX\
**Created:** [August 28, 2012, 11:12am UTC](https://www.ruby-forum.com/t/ngix-vanish-not-working/222422 "2012-08-28T11:12:14Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![aris](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/258eb7/32.png) [@aris](https://www.ruby-forum.com/u/aris)\
**Post date:** [August 28, 2012, 11:12am UTC](https://www.ruby-forum.com/t/ngix-vanish-not-working/222422/1 "2012-08-28T11:12:14Z")

</div>

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:

> **[Ngix - Vanish Not Working](https://forum.nginx.org/read.php?2,230179,230179#msg-230179)**
>
> 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/defa

---

<div class="post-metadata">

**Author:** ![iqbalmp](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/7cd45c/32.png) [@iqbalmp](https://www.ruby-forum.com/u/iqbalmp)\
**Post date:** [August 28, 2012, 12:12pm UTC](https://www.ruby-forum.com/t/ngix-vanish-not-working/222422/2 "2012-08-28T12:12:25Z")

</div>

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](http://forum.nginx.org/read.php?2,230179,230182#msg-230182)
