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 centos machine, currently I could view website on /var/www/html site using 10.10.10.111, and would like to know how to setup a virtual domain name for a local instance, such that I could view with http://demo or so?

Thank you very much.

share|improve this question
add comment

1 Answer

up vote 2 down vote accepted

You would either need to setup the machine in DNS, or the simpler way is to put a host entry like so:

10.10.10.111    demo

in you /etc/hosts file

share|improve this answer
    
@Zypher: Thanks that works. –  jl. Jan 6 '10 at 6:36
add comment

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.