Adding second domain, file structure?


#1

Fellow users,
What should the files look like when I’ve added a second domain?
The first domain, DougvanderHoof.com, has been hosting a working website just fine.
Now I’ve gotten a second domain, StudioVisitVideo.com, fully hosted, and created a website and I’m not sure where it goes on the server.

This is what it looks like now that I’ve added the folder with StudioVisitVideo.com:

http://dougvanderhoof.com/.alias
http://dougvanderhoof.com/.bash_profile
http://dougvanderhoof.com/.bashrc
http://dougvanderhoof.com/.cshrc
http://dougvanderhoof.com/css/
http://dougvanderhoof.com/dougvanderhoof.com/
http://dougvanderhoof.com/logs/
http://dougvanderhoof.com/Maildir/
http://dougvanderhoof.com/StudioVisitVideo.com/

Shouldn’t the second domain be at some more root-like level? It shouldn’t have dougvanderhoof.com/ before it, should it?
If you’re kind enough to shed some light on this, please don’t presume I know how to do what you’re suggesting without a cookbook list of steps.
Like, “Just put the new domain in the root level.” won’t help me actually get it done.

Cordial thanks for any help you can offer,
Doug


#2

Remember I can’t see exactly what you have already done.

First step is go to manage domains in the panel. See if the domain is listed there.

If it is, then what ‘user’ is listed in the web host column? Is that the same user that you are using to log in via ftp?

Dreamhost “robot” creates a Folder for you when you add the domain as hosted in the panel. If both
dougvanderhoof.com and StudioVisitVideo.com have the same “user” listed on the panel’s manage domains page then when you log into that “user” via ftp you should see two folders one called dougvanderhoof.com and the other StudioVisitVideo.com and you put the files for each of your sites into their respective folders.

If you have set StudioVisitVideo.com up under a differnt user then you will need to log in there to find the “robot” created folder named StudioVisitVideo.com


#3

Best practice is to create a new user and put it there. It seems that your current user is ‘dougvanderhoof.com’ which may make things confusing.

Personally, I name my users something like this:

dougv_dvhcom
dougv_svvcom

Actually, I’m not sure if you can use underscores in usernames, but I was trying to give the basic idea.


#4

Underscores are indeed allowed.

I agree that using separate users for each domain will keep things more orderly. Creating extra users doesn’t cost anything, so the price is right, too.