I'm trying to figure out how to make a subdomain treat a specific folder or path on my server as its root...
I have Apache/CentOS, WHM and CPanel... help would be appreciated.
Thanks!
How to make a subdomain treat a specific path or folder as its root...
Started by shackrock, Jul 15 2011 08:27 AM
4 replies to this topic
#1
Posted 15 July 2011 - 08:27 AM
|
|
|
#2
Posted 15 July 2011 - 08:46 AM
You should be able to do this in Apache config.
Are you trying to do this for only one subdomain? Or do you want to do it dynamically for multiple subdomains?
For one sub-domain:
Are you trying to do this for only one subdomain? Or do you want to do it dynamically for multiple subdomains?
For one sub-domain:
<VirtualHost *> ServerName subdomain.domain.com DocumentRoot /home/httpd/htdocs/subdomain/ </VirtualHost>
Check out our update Guidelines/FAQ. When posting code, remember to use code tags -
.
.
#3
Posted 15 July 2011 - 08:48 AM
Roger said:
You should be able to do this in Apache config.
Are you trying to do this for only one subdomain? Or do you want to do it dynamically for multiple subdomains?
For one sub-domain:
Are you trying to do this for only one subdomain? Or do you want to do it dynamically for multiple subdomains?
For one sub-domain:
<VirtualHost *> ServerName subdomain.domain.com DocumentRoot /home/httpd/htdocs/subdomain/ </VirtualHost>
Just a single sub domain... the problem is i'm not great with Apache at all... is there a way to do this within WHM? Or, perhaps there is a more detailed guide about where that text goes? haha. Further, how do I need to set up the DNS once I do that for a subdomain? I think you catch my drift - I'm a newbie at this...
#4
Posted 15 July 2011 - 10:32 AM
Yes, you can set this up in CPanel: cPanel Domains
Check out our update Guidelines/FAQ. When posting code, remember to use code tags -
.
.
#5
Posted 17 July 2011 - 06:04 AM
Sorry I double posted this... I thought the other one didn't get posted. Thanks all, I'm up and running just about fully.
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users


Sign In
Create Account


Back to top









