Page 1 of 1

Setting a subdomain

Posted: Sat Jun 20, 2015 2:58 pm
by roger5
Hello everyone.

I have a VPS running Debian 7 (64bit) on which I installed VestaCP.
I have a forum loaded in the directory / forum, and currently reachable via domain.extension/forum, that I wish it were reached in the following way: forum.domain.extension
How can I do?

I would do the same for /phpmyadmin and /webmail.

The DNS domain are managed by CloudFlare and are set like this:

A -----> domain.extension -----> my IP address
CNAME -----> www -----> domain.extension
CNAME -----> forum -----> domain.extension
MX -----> mx1 -----> domain.extension -----> 10

Re: Setting a subdomain

Posted: Sat Jun 20, 2015 5:53 pm
by mike08
Hey,

You can check my reply to this post: http://forum.vestacp.com/viewtopic.php? ... 458#p28458 Regarding webmail/phpmyadmin

Now regarding the forum you have to add a new Web domain as if you are adding a domain.tld name, just add it as forum.domain.tld and then create the A record to point to your vps ip so that the forum can work, then you can move your /forum dir to the new dir created at username/web/forum.domain.tl/public_html/
Hope that works for you!

Re: Setting a subdomain

Posted: Sun Jun 21, 2015 9:55 am
by roger5
mike08 wrote:Hey,

You can check my reply to this post: http://forum.vestacp.com/viewtopic.php? ... 458#p28458 Regarding webmail/phpmyadmin

Now regarding the forum you have to add a new Web domain as if you are adding a domain.tld name, just add it as forum.domain.tld and then create the A record to point to your vps ip so that the forum can work, then you can move your /forum dir to the new dir created at username/web/forum.domain.tl/public_html/
Hope that works for you!
So I have to create two sites so?
- domain.extension
- forum.domain.extension

The record FORUM must be so A and not CNAME?


I can farer something for addresses that end with the number of a port?
I refer to SinusBot, JTS3ServerMod and VestaCP (JTS3ServerMod terminate with /webinterface)

Re: Setting a subdomain

Posted: Sun Jun 21, 2015 10:26 am
by roger5
One other thing, for ftp? (ftp.domain.extension)

Re: Setting a subdomain

Posted: Sun Jun 21, 2015 10:39 am
by roger5
The DNS of my domain are this (updated 21/06/2015)
Image

Re: Setting a subdomain

Posted: Sun Jun 21, 2015 11:34 am
by roger5
Another thing: when I finish installing VetsaCP I have to remove the default website and other related configurations to the site's default?

The site default of which I speak is what is created during installation of VestaCP

Re: Setting a subdomain

Posted: Sun Jun 21, 2015 4:41 pm
by mike08
roger5 wrote:
So I have to create two sites so?
- domain.extension
- forum.domain.extension

The record FORUM must be so A and not CNAME?


I can farer something for addresses that end with the number of a port?
I refer to SinusBot, JTS3ServerMod and VestaCP (JTS3ServerMod terminate with /webinterface)
That is correct roger, you have to create to sites under the web domain and then you have to create the A record under your main domain.extension dns records.

Now regarding those sites that end with a port, you can either use them with VestaCP instead of their own webserver, I guess that those apps that you are running for TS3 and other things they use their own web based server if that what you mean.
roger5 wrote:
One other thing, for ftp? (ftp.domain.extension)
You can either manually create the A record or add it to your dns template as previous link mentioned :D
roger5 wrote:The DNS of my domain are this (updated 21/06/2015)
Image
It does not seem to be bad actually.
roger5 wrote:Another thing: when I finish installing VetsaCP I have to remove the default website and other related configurations to the site's default?

The site default of which I speak is what is created during installation of VestaCP
If you are speaking about the index.html that is create when you create a new virtual host, you can check that at

Code: Select all

/usr/local/vesta/data/templates/web/skel/public_html/index.html
Hope this works for you.

Re: Setting a subdomain

Posted: Sun Jun 21, 2015 4:57 pm
by roger5
roger5 wrote:The DNS of my domain are this (updated 21/06/2015)
Image
- for MAIL: Instead of webmail.domain.extension, how can I do to connect with mail.domain.extension?
- for PHP: Instead of phpmyadmin.domain.extension, how can I do to connect with php.domain.extension?
- for TS-MOD: This app have a webinterface reachable with /webinterface, so how can i do to connect with ts-mod.domain.extension?
- for TS-MUSIC: This app have a webinterface reachable via port 8087, so how can i do to connect with ts-music.domain.extension?
.- for WEB: Instead of domain:extension:port for reach VestaCP, how can i do to connect via web.domain.extension?


The DNS CloudFlare will have to enter also on the panel?

On the panel I have to enter the DNS NS by CloudFlare or I can set my DNS NS by domain.extension?

Re: Setting a subdomain

Posted: Sun Jun 21, 2015 5:04 pm
by roger5
mike08 wrote:
If you are speaking about the index.html that is create when you create a new virtual host, you can check that at

Code: Select all

/usr/local/vesta/data/templates/web/skel/public_html/index.html
Hope this works for you.
no, for default.domain - after installation of VestaCP. Need to remove this or not?