But my architecture is a bit different : my ubuntu LAMP server is just behind my internet box which redirects all needed ports to my server LAN IP : 192.168.0.17
So i used this IP for both varnish and apache setup, but of course it does not seem to be the right solution.
Configure your Internet box (usually ISP router or custom firewall) to send traffic internally. It is called port forwarding. If you Internet box is another Linux system with root shell you can configure iptables firewall to forward port 80/443 (or any port of your choice) to internal LAN port.
Thanks for your quick answer!
Actually the port forwarding is already done and works perfectly as my server is hosting several sites on 80 or 443.
But should i set varnish to listen on public IP or internal server IP ?
Cheers