
17th June 2009, 15:14
|
|
Senior Member
|
|
Join Date: Apr 2009
Posts: 245
Thanks: 32
Thanked 6 Times in 5 Posts
|
|
Guidance needed for setting up a subdomain, please
Hi, I searched the forum, but I found nothing that was very clear on how to achieve the following:
I have a site domain.com
I have a /subdomain directory inside /web, like this: /web/subdomain
I want subdomain.domain.com to point to /web/subdomain, /web/subdomain being new root dir for the site on the subdomain.
I want to access all files with the same FTP user.
Thanks!
P.S. I tried to setup a subdomain by just setting up a site for it and then added a DNS zone with the wizard if it were a different site, but it doesn't seem to work:
While the subdomain works correctly, the content of the subdomain is shown on the main domain instead of the main domain's content.
|

17th June 2009, 15:16
|
|
Senior Member
|
|
Join Date: Jul 2007
Location: Koblenz, Germany
Posts: 290
Thanks: 12
Thanked 100 Times in 58 Posts
|
|
Just use the redirect function and set the redirect path to /subdomain/ and the type to L.
|
|
The Following User Says Thank You to Croydon For This Useful Post:
|
|

17th June 2009, 15:18
|
|
Senior Member
|
|
Join Date: Apr 2009
Posts: 245
Thanks: 32
Thanked 6 Times in 5 Posts
|
|
hmm... the path would be the server path, like /var/www/... etc?
|

17th June 2009, 15:32
|
|
Senior Member
|
|
Join Date: Apr 2009
Posts: 245
Thanks: 32
Thanked 6 Times in 5 Posts
|
|
and what should I do with the DNS zone?
I would like to know exactly what to do.
|

17th June 2009, 15:35
|
|
Senior Member
|
|
Join Date: Jul 2007
Location: Koblenz, Germany
Posts: 290
Thanks: 12
Thanked 100 Times in 58 Posts
|
|
No, not the server path. Just the path inside the web.
DNS Zone? Same as the main zone for this website.
|
|
The Following User Says Thank You to Croydon For This Useful Post:
|
|

17th June 2009, 15:36
|
|
Senior Member
|
|
Join Date: Apr 2009
Posts: 245
Thanks: 32
Thanked 6 Times in 5 Posts
|
|
so, I don't need to create a DNS Zone for the subdomain, right?
So the process would be:
1- create a site standard normally, domain.com
2- inside that site, create a /subdomain/ subfolder
3- create a new site on ISPC, with domain subdomain.domain.com
4- setup an "L" redirect to folder /subdomain/ (typed like that exactly)
is that correct?
|

17th June 2009, 15:49
|
|
Senior Member
|
|
Join Date: Apr 2009
Posts: 245
Thanks: 32
Thanked 6 Times in 5 Posts
|
|
and there is no DNS record of type A required for a subdomain?
|

17th June 2009, 17:11
|
|
Senior Member
|
|
Join Date: Jul 2007
Location: Koblenz, Germany
Posts: 290
Thanks: 12
Thanked 100 Times in 58 Posts
|
|
Quote:
Originally Posted by manarak
so, I don't need to create a DNS Zone for the subdomain, right?
So the process would be:
1- create a site standard normally, domain.com
2- inside that site, create a /subdomain/ subfolder
3- create a new site on ISPC, with domain subdomain.domain.com
4- setup an "L" redirect to folder /subdomain/ (typed like that exactly)
is that correct?
|
That sould do it, yes.
Quote:
Originally Posted by manarak
and there is no DNS record of type A required for a subdomain?
|
Depends on your setup.
The subdomain must lead to you server's ip address so either you have to create a dns A record or you have a dns A record for *
|
|
The Following User Says Thank You to Croydon For This Useful Post:
|
|

17th June 2009, 17:50
|
|
Senior Member
|
|
Join Date: Apr 2009
Posts: 245
Thanks: 32
Thanked 6 Times in 5 Posts
|
|
in the normal case of a shared server, there would be no A entry for *, right?
so there is step number 5, which is to create an A entry in the domain's DNS zone, in the same manner as for www and mail.
Thank you for your help.
I think I got it covered now!
Final procedure for anybody searching in future the same thing on the forum :
1- create a site standard normally, domain.com
2- inside that site, create a /subdomain/ subfolder
3- create a new site on ISPC, with domain subdomain.domain.com
4- setup an "L" redirect to folder /subdomain/ (typed like that exactly)
5- create an A-type record associating subdomain to the IP in the DNS Zone of domain, in the same manner as mail or www.
|

17th June 2009, 17:56
|
|
Senior Member
|
|
Join Date: Apr 2009
Posts: 245
Thanks: 32
Thanked 6 Times in 5 Posts
|
|
ok, I just tried the above setup, and it does *NOT* work...
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT +2. The time now is 23:49.
|
Recent comments
14 hours 37 min ago
1 day 5 min ago
1 day 55 min ago
1 day 4 hours ago
1 day 8 hours ago
1 day 9 hours ago
1 day 11 hours ago
1 day 21 hours ago
2 days 2 hours ago
2 days 3 hours ago