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 am developing a web application in Zend Framework running in apache server (xampp). The site can actually be accessed by http://localhost/sitename . It is present in c:/xampp/htdocs/sitename/

I wanted to create wildcard dns so a specific user can access my webpage like username.localhost.... i will fetch the username as parameter and show the customized settings for him..

Can someone help me with it... Do i have to first assign a servername for my localhost/sitename ? and then think about adding subdomain wildcards ? Please enlight me...

share|improve this question
add comment

1 Answer

DNS is used to get to the server, then the Apache bindings are using to determine which site handles the request.

So first I would add the DNS wildcards and make sure that pinging them will resolve to the IP address on the Apache server. That's the first step.

Then add bindings in Apache to have it handled by the correct site and dropped off in the correct sub-folder.

share|improve this answer
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.