Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


Shells Virtual Desktop
BMail.ag - Secure Email Service
Server.net
CPLicense.net
VPS Server
Buy VPN
Vultr
VMs for AI
HostDare
HostDare
ReliableSite White-Label Dedicated Hosting for Resellers
25% Recurring Discount on NVMe VPS
InterServer VPS
BMail.ag - Secure Email Service
Best VPN
High-Performance Bare Metal Server Solutions
Karvl.com
Server Mania Cloud Hosting
DataWagon Hosting
AlphaVPS Hosting
Evoxt.com
Clouvider
VPS Hosting with NVMe
Residential IPs in the US & 4G Mobile Proxies in EU & US with Unlimited Bandwidth
ReliableSite White-Label Dedicated Hosting for Resellers
Rabisu - Hosting Solutions
Shells Virtual Desktop
New on LowEndTalk? Please Register and read our Community Rules.

All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.

Help me on varnish configuration

Hello,
I have setup Varnish in front of nginx yesterday. I need to change something if someone can help me.

My VPS's IP is: xx.xx.xx.xx
Domain: MyDomain.com

When I enter IP on browser it opens my site, not the "welcome to nginx" page. Can anyone help me out fixing this problem?

Comments

  • nixcomnixcom Member

    Hi,

    You should past your virtual host configuration here so we check what's going on :)

  • awsonawson Member

    Did you set the server_name in the nginx config?

    server_name www.mydomain.com mydomain.com;
    
  • SplitIceSplitIce Member, Host Rep

    Im guessing your varnish isnt setup to forward the "Host" header and you have a default nginx vhost that responds with the "welcome to nginx" page.

  • nehafarzana80nehafarzana80 Member
    edited July 2013

    This is my varnish configuration (default.vcl)
    http://pastebin.com/aztGkBfG

    And, my vhost.conf is; http://pastebin.com/MH0mX025

  • I think nothing wrong with vhost conf file as without varnish all was good. Just after activating varnish both IP and domain name opens the website.

  • Solved the problem by adding another fake domain.

Sign In or Register to comment.