Varnish and nginx
julien64 opened this issue · 4 comments
Hello, thanks for the script he is great but i have found a bug/issue with debian 7.
When i switch with varnish ( ./varnish.sh on) my site doesnt work , i have welcome message at least. how can i fix this problem ?
i use nginx 1.41
Thanks for reporting this. I'll run a test soon to find out what's going on.
The Varnish code hasn't been tested with Debian 7 nor with the nginx from the nginx.org repository so it'll likely require some updates.
Varnish should now be fixed in the recent commits.
When the nginx.org repository is enabled, an extra default virtualhost is created. To have varnish working again on your current install, follow these steps:-
-
Comment out the unused virtualhost and restart Nginx
sed -i 's/^[^#]/#&/' /etc/nginx/conf.d/default.conf
service nginx restart -
Download the updated varnish.sh script as well as options.conf (re-edit options.conf as necessary)
-
Re-install varnish and re-enable it
./varnish.sh install
./varnish.sh on
Thanks for the detailed response. Now the scipt works werry well.
Do you project in a future to implements nginx with google page speed ?
That would require compiling Nginx from source, which may complicate server maintenance for the newer users.
However, given enough demand, page speed can certainly be implemented.