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 recently bought a windows VPS and installed apache, mysql using xampp. All services are running fine. I can access the hosted site using the IP of VPS but what I need to do is host multiple domains on that server.

Actually my requirement was to use htaccess on a php based site but the site had to access data from ms sql server as well. So needed to enable php_mssql.dll in the php.ini which no shared hosting was supporting. Had to go for this VPS.

Plesk was installed by default but as htaccess wont work with IIS, I had to stop IIS service and install apache there. Now all is well, but I need to find a way to host multiple domains there.

When I bought the VPS they hosting people sent me the dedicated IP of the server and also I have the 2 name servers required to host domains. What is the next step? Exactly which file I need to modify to get things done? Please help!

Any kind of help is much appreciated. Thanks in advance for all of your kind help and time.

share|improve this question

migrated from stackoverflow.com Jan 12 '11 at 13:59

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

1 Answer 1

You'll want to look at apache's virtual hosts feature. See here. You'll need to set up the virtual hosts with apache and also set up the DNS settings in the nameservers for each of your domains so that they're pointing to the dedicated IP address.

share|improve this answer
    
@Kunal: Sorry, that was an old version of the doc. I updated the link to version 2.2. –  Richard Marskell - Drackir Jan 10 '11 at 19:49
    
@Drackir: Thanks a lot! Let me try this and get back to you. –  Kunal Jan 11 '11 at 4:51
    
@Kunal: Good luck! –  Richard Marskell - Drackir Jan 11 '11 at 4:53
    
@Drackir: There are already so many items in the httpd.conf file. By the way I checked in the apache/conf/httpd.conf file, hope that's what you mentioned. There are many existing entries, do I have to write the <VirtualHost *:80> inside any particular node, or just at the end of the file? Please confirm. Thanks a tonne for your valuable time. –  Kunal Jan 11 '11 at 10:05

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.