Go Back   HostGator Peer Support Forums > HostGator Peer Support Forums > Linux VPS Support

Notices

Reply
 
Thread Tools
  #1  
Old 10-03-2010, 08:37 AM
Liquid_Squelch Liquid_Squelch is offline
Hatchling Croc
 
Join Date: Jun 2009
Posts: 31
Question Configuring www root for a user account

I'm trying to configure the "www root" for a sub account on my VPS.

This pain in the butt user (me) would like to make a few changes.

Normally, apache looks in /root/home/<user>/public_html for the root html file for that account.

I would like the main www to be in /root/home/<user>/public_html/wp so that I can create other subdomains under /root/home/<user>/public_html/sub_1

Where in WHM can I set the main directory for what I'm calling www root?

Thanks
Reply With Quote
  #2  
Old 10-03-2010, 12:12 PM
weserver weserver is offline
Baby Croc
 
Join Date: Aug 2009
Posts: 96
Default Re: Configuring www root for a user account

you would normally not do that.

I create a folder called "subdomains" in the public_html folder and when creating subdomains, I use this folder as the root for my subdomains. (so in the subdomains folder I make subdomain1, subdomain2 etc.).

You must have some special reason for wanting the other thing, I know, but can't figure out why the "normal" way is not ok for you ?
Reply With Quote
  #3  
Old 10-03-2010, 12:45 PM
quietFinn's Avatar
quietFinn quietFinn is online now
Veteran Croc
 
Join Date: Feb 2005
Posts: 3,557
Default Re: Configuring www root for a user account

Quote:
Originally Posted by Liquid_Squelch View Post

Where in WHM can I set the main directory for what I'm calling www root?
Nowhere in WHM, you need to do it in command line.
See this thread:
http://forums.hostgator.com/proper-p...ts-t80533.html
__________________
quietFinn - netFinn Finland
"Be who you are and say what you feel because those who mind don't matter and those who matter don't mind." - Dr. Seuss
Reply With Quote
  #4  
Old 10-03-2010, 06:04 PM
Liquid_Squelch Liquid_Squelch is offline
Hatchling Croc
 
Join Date: Jun 2009
Posts: 31
Default Re: Configuring www root for a user account

Awesome - thanks! That should work.

I like to setup my domains that way because I don't want someone entering /home/<user>/public_html/subdomain as
www.<user>.tld/subdomain

Plus, it makes things easier for me to see while in FTP.

Thanks again
Reply With Quote
Reply

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Protecting a special folder from root user podart Shared Hosting Support 1 06-02-2010 10:24 AM
FTP to www root b.reed Shared Hosting Support 3 07-12-2008 10:41 AM
redirect domain root to www.mydomain.com/subfolder/ marchw Shared Hosting Support 2 07-06-2006 07:03 PM

All times are GMT -5. The time now is 11:44 AM.