0

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.

1 Answer 1

2

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.

4
  • @Kunal: Sorry, that was an old version of the doc. I updated the link to version 2.2. Commented Jan 10, 2011 at 19:49
  • @Drackir: Thanks a lot! Let me try this and get back to you. Commented Jan 11, 2011 at 4:51
  • @Kunal: Good luck! Commented Jan 11, 2011 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. Commented Jan 11, 2011 at 10:05

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.