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 have a PHP script in a Mediatemple (dv) server that uses cURL to post data to a remote website. This remote website also resides in a (dv) server and doesn't have a domain name yet. I can only access it through web preview.

I'm planning to edit the hosts file of the first server so it can do cURL. Is this even possible?

Suggestions will be appreciated.

share|improve this question

1 Answer 1

up vote 1 down vote accepted

If the remote server is on an accessible IP (hopefully static or non-changing), then adding it to the host file will allow it to be accessible via a DNS-like means on that server.

share|improve this answer

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.