We are happy to announce that Vesta is back under active development as of 25 February 2024. We are working on v1 candidate and expect to engage more with the community over the coming months. We are committed to open source, and we encourage contributors to help us build the future of Vesta.
Setting a subdomain
Setting a subdomain
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
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
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!
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
So I have to create two sites so?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!
- 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
One other thing, for ftp? (ftp.domain.extension)
Re: Setting a subdomain
Last edited by roger5 on Sun Jun 21, 2015 2:05 pm, edited 1 time in total.
Re: Setting a subdomain
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
The site default of which I speak is what is created during installation of VestaCP
Re: Setting a subdomain
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.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)
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.
You can either manually create the A record or add it to your dns template as previous link mentioned :Droger5 wrote:
One other thing, for ftp? (ftp.domain.extension)
It does not seem to be bad actually.
If you are speaking about the index.html that is create when you create a new virtual host, you can check that atroger5 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
Code: Select all
/usr/local/vesta/data/templates/web/skel/public_html/index.html
Re: Setting a subdomain
- 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?
Last edited by roger5 on Sun Jun 21, 2015 5:07 pm, edited 3 times in total.
Re: Setting a subdomain
no, for default.domain - after installation of VestaCP. Need to remove this or not?mike08 wrote:
If you are speaking about the index.html that is create when you create a new virtual host, you can check that atHope this works for you.Code: Select all
/usr/local/vesta/data/templates/web/skel/public_html/index.html