Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I'm using Lighttpd and it works great.

I need to point the dedicated ip provided by my hosting service to a specific website on my VPS .

1) If I browse to the dedicated ip, I currently get an error message "could not connect to ..". Should I first enable on DNS settings.. or should I work on webserver configuration ?

2) I've added these lines to lighttpd config file. Is that correct ? (XXX.XXX.XXX.XXX is the dedicated ip)

$SERVER["socket"] == "XXX.XXX.XXX.XXX:80" {
  server.document-root = "/var/www/path/to/website "
}

Update

ping XXX.XXX.95.175
PING XXX.XXX.95.175 (109.72.95.175) 56(84) bytes of data.
From XXX.XXX.95.174 icmp_seq=1 Destination Host Unreachable
From XXX.XXX.95.174 icmp_seq=2 Destination Host Unreachable
From XXX.XXX.95.174 icmp_seq=3 Destination Host Unreachable
share|improve this question

1 Answer 1

up vote 1 down vote accepted

1) Work on the configuration - DNS is irrelevant if you are using an IP address. DNS looks up an IP address for a given a host name, In your case, you already know the IP address.

2) Looks fine.

I would imagine that you have problem with the IP address on the VPS rather than Lightttpd. Check you Lighthttp logs to see if the requests are actually hitting it.

share|improve this answer
    
I've realized the Dedicated IP is actually enabled. I've updated my question with the results of a ping. The ip changes after a while... What should I deduce from these results ? –  Patrick Nov 10 '10 at 16:24
    
By the way, I've actually changed $SERVER to $HOST because I was getting an error –  Patrick Nov 10 '10 at 20:21

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.