Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section Web Server
  • Search

Setting a subdomain

Questions regarding the Web Server
Apache + Nginx, Nginx + PHP5-FPM
Post Reply
  • Print view
Advanced search
9 posts • Page 1 of 1
roger5
Posts: 10
Joined: Sat Jun 20, 2015 2:51 pm

Setting a subdomain
  • Quote

Post by roger5 » Sat Jun 20, 2015 2:58 pm

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
Top

mike08
Posts: 160
Joined: Sat Jun 20, 2015 7:12 am

Os: Debian 6x
Web: apache + nginx
Re: Setting a subdomain
  • Quote

Post by mike08 » Sat Jun 20, 2015 5:53 pm

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!
Top

roger5
Posts: 10
Joined: Sat Jun 20, 2015 2:51 pm

Re: Setting a subdomain
  • Quote

Post by roger5 » Sun Jun 21, 2015 9:55 am

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)
Top

roger5
Posts: 10
Joined: Sat Jun 20, 2015 2:51 pm

Re: Setting a subdomain
  • Quote

Post by roger5 » Sun Jun 21, 2015 10:26 am

One other thing, for ftp? (ftp.domain.extension)
Top

roger5
Posts: 10
Joined: Sat Jun 20, 2015 2:51 pm

Re: Setting a subdomain
  • Quote

Post by roger5 » Sun Jun 21, 2015 10:39 am

The DNS of my domain are this (updated 21/06/2015)
Image
Last edited by roger5 on Sun Jun 21, 2015 2:05 pm, edited 1 time in total.
Top

roger5
Posts: 10
Joined: Sat Jun 20, 2015 2:51 pm

Re: Setting a subdomain
  • Quote

Post by roger5 » Sun Jun 21, 2015 11:34 am

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
Top

mike08
Posts: 160
Joined: Sat Jun 20, 2015 7:12 am

Os: Debian 6x
Web: apache + nginx
Re: Setting a subdomain
  • Quote

Post by mike08 » Sun Jun 21, 2015 4:41 pm

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.
Top

roger5
Posts: 10
Joined: Sat Jun 20, 2015 2:51 pm

Re: Setting a subdomain
  • Quote

Post by roger5 » Sun Jun 21, 2015 4:57 pm

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?
Last edited by roger5 on Sun Jun 21, 2015 5:07 pm, edited 3 times in total.
Top

roger5
Posts: 10
Joined: Sat Jun 20, 2015 2:51 pm

Re: Setting a subdomain
  • Quote

Post by roger5 » Sun Jun 21, 2015 5:04 pm

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?
Top


Post Reply
  • Print view

9 posts • Page 1 of 1

Return to “Web Server”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

cron

Login  •  Register

I forgot my password