PDA

View Full Version : How to host multiple domain names?


onlinepl
03-05-2005, 03:53 PM
I would like to host another domain name(s) using the same VDS account, is it possible to do so and if yes, how? I am aware that I have only one public html directory and so how could I seperate accounts with different domain names?

Thanks for reply and looking forward for your solution.

Chris
03-05-2005, 04:25 PM
Hello onlinepl,

It is quite easy. See this article(bottom half of page) to see how to add extra domains.

http://help.hardhathosting.com/question.php/12

Some folks will put their extra domains next to "html", similar to this:

/var/www/html
/var/www/site2
/var/www/site3
/var/www/site4

Others will put their extra sites inside of "html", similar to this:

/var/www/html
/var/www/html/site2
/var/www/html/site3
/var/www/html/site4

I hope this helps...

JPrahl
10-26-2005, 05:03 PM
If you have muliple domains under one account, can they each send out and receive e-mail under their own names.

Ex: Host acct is mydomain.com
Also hosting somebodyelse.com

Although the website will work, does "somebodyelse" have to send emails under somebodies_name@mydomain.com

I asume they can receive OK at somebodies_name@somebodyelse.com.

Newbie(Squared)

David
10-26-2005, 05:10 PM
Yes they can use their own domain in the from: line to send and recieve. Make sure you enable mail when you add the domain in the control panel.

Just remember that users are unique per Account (VDS) user "joe" will recieve mail @domain1.com and domain2.com.

JPrahl
10-27-2005, 12:15 PM
If I understand correctly, if joe is really @domain1, and there is no joe at domain2, everything should work fine.

Second questions, if domain2 hired a Joe in the future, would I encounter any problems setting up a new and separate account for domain 2 and just moving all the files over? Anything else I would need to do?

Thanks. Sorry for being so :confused:

David
10-27-2005, 02:00 PM
No you could host the website with no problems

When it came to the email of a second joe that would be the issue.

You would have to create a user named jsmith or something. It can be done outside the control panel via modifing sendmail files. There is some information about that in the Knowledge Base. This would take someone with some advanced skills and would need be confortable inside ssh.

http://help.hardhathosting.com/question.php/112

JPrahl
12-05-2005, 01:43 PM
In the following example,
/var/www/html
/var/www/site2
/var/www/site3

can each site have individual FTP access, and no access to the other guy's stuff?

Any help appreciated.

Eric
12-05-2005, 01:49 PM
You can if you put the documentroot of the website in the ftp users ftp folder.

Like :

/ftp/pub/user1

JPrahl
12-06-2005, 09:13 AM
Thanks Eric,

I have gone to apache's site to try to figure out how to do this; but I am ending up more confused. Can you suggest where I can get a simple explanation?

Thanks so much. :o

Eric
12-06-2005, 10:45 AM
Just use the control panel's Domain Manager. Go to Domain Settings -> New
Enter the domain name without the www. in front of it, Choose the Custom Radio Button, then enter the path to the Ftp users directory in the text box.
Make sure that the directory is created before adding a new Domain.

JPrahl
12-06-2005, 02:33 PM
:confused:
OK, I set up the root path at /ftp/user/newdomain/

Is this where all the webfiles go? Or do I still need to do something at var/www/html/

Also, will the site show up with or without www in front?

Thanks. Sorry for being such a newbie.:D

JPrahl
12-09-2005, 09:23 AM
Yes & yes Thanks.