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.

Is it possible to configure lighttpd to get this:

subdomain1.127.0.0.1

subdomani2.127.0.0.1 . . .

Or something like this:

domainname.com

subdomain.domainame.com

if the domainname is not yet registred, ie. i want it to run on my machine but with all the configuration that will eventualy end up on the real server. I think it would work with some kind of a reddirect from 127.0.0.1 to domainname.com but only in name but i don't know how to set it up.

Thanks in advance.

share|improve this question

migrated from stackoverflow.com Feb 26 '10 at 6:11

This question came from our site for professional and enthusiast programmers.

1 Answer 1

If I understand right, you want to test-drive the server locally using the final URLs. You should be able to do this with your hosts file.

share|improve this answer

Your Answer

 
discard

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