Skip to main content

Varnish on different IP

Comments

4 comments

  • cPanelMichael
    Hello :) Could you elaborate on how you installed Varnish? Did you make specific changes to the Apache configuration when installing it? Thank you.
    0
  • areha
    I changed httpd.conf so that this spesific IP .27 listens to port 8080 instread of port 80 and restarted Apache. NameVirtualHost 27:8080 I change Varnish to the below: VARNISH_LISTEN_ADDRESS=27 VARNISH_LISTEN_PORT=80 And also in default.vcl: backend default { .host = "27"; .port = "8080"; } Shouldn't that be it? Varnish refuses to start, without giving any error message as soon as I try to bring it up on port 80 and the log-file directory /var/log/vanish is empty... As long as I run on port 8090 or something, then it works by going to that port.
    0
  • areha
    Solved it by using tweak and changing all sites to listen to 8080 and then start Varnish. Now I'm using Varnish for all sites on server, but let's see how it goes :) I suspect problems with sessions, but I hope not.
    0
  • cPanelMichael
    I am happy to see you were able to find a workaround for your custom configuration. Thank you for updating us with the outcome.
    0

Please sign in to leave a comment.