Posted by morningtime on October 14, 2010 at 6:10pm
3 followers
Jump to:
| Project: | Varnish HTTP Accelerator Integration |
| Version: | 6.x-1.x-dev |
| Component: | Code |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed (works as designed) |
Issue Summary
I can't connect to the control terminal, whatever I try.
- I installed latest varnish on Ubuntu 8.04 as per http://www.varnish-cache.org/installation/ubuntu
- I followed these instructions and VCL example, http://groups.drupal.org/pantheon/mercurywiki
- I applied this little patch, http://drupal.org/node/808314
- PHP has sockets support enabled
In settings.php I put within $conf = array():
'reverse_proxy' => TRUE,
'reverse_proxy_addresses' => array('127.0.0.1'),Drupal cache is set to external, on Pressflow of course.
But the varnish module status is always:
The Varnish control terminal is not responding at 127.0.0.1 on port 6082.And in watchdog I always see:
Varnish: Authentication to server failed!
Varnish: Recieved status code 101 running "". Full response text: Unknown request. Type 'help' for more info.
Comments
#1
Ah... varnish installs a "secret" file in /etc/varnish/secret. And you need to past that file's content into Drupal.
Works as designed.
#2
Thank you, this was just the details I needed.
#3
Yes, and for those of you out there that are still scratching your heads, this means to capture the line inside of the "secret" file @/etc/varnish/secret, then paste that line into the "Varnish Control Key" field on the Varnish module configuration page. After this, all is made right with the world.