Page 1 of 1

Mounting Drive For Subdomain

Posted: Thu May 07, 2020 7:24 pm
by bankzy
Hi,

Need some help, I have 2 drives on my dedicated server. 240 SSD drive (that I'm using to host static content) and a 2TB SATA drive that i want to use for media files. I basically want to make a subdomain in my vesta panel, example; media.domain.com and have everything stored on my 2TB SATA drive for this subdomain.

I have heard I need to mount the drive but I'm a little lost as to what I actually need to do to achieve this.

Help is massively appreciated! I'm using Centos 7.8 with nginx.

Re: Mounting Drive For Subdomain

Posted: Thu May 07, 2020 7:27 pm
by grayfolk
bankzy wrote:
Thu May 07, 2020 7:24 pm
Hi,

Need some help, I have 2 drives on my dedicated server. 240 SSD drive (that I'm using to host static content) and a 2TB SATA drive that i want to use for media files. I basically want to make a subdomain in my vesta panel, example; media.domain.com and have everything stored on my 2TB SATA drive for this subdomain.

I have heard I need to mount the drive but I'm a little lost as to what I actually need to do to achieve this.

Help is massively appreciated! I'm using Centos 7.8 with nginx.
Just create domain and mount volume to its public_html.
Also you can mount volume anywhere and create symlink.

Re: Mounting Drive For Subdomain

Posted: Thu May 07, 2020 7:30 pm
by bankzy
grayfolk wrote:
Thu May 07, 2020 7:27 pm
Just create domain and mount volume to its public_html.
Also you can mount volume anywhere and create symlink.
Do you have any guides/commands i would need to perform to do this? I've tried googling but it's very confusing and not very to the point.

Re: Mounting Drive For Subdomain

Posted: Thu May 07, 2020 7:41 pm
by grayfolk
bankzy wrote:
Thu May 07, 2020 7:30 pm
grayfolk wrote:
Thu May 07, 2020 7:27 pm
Just create domain and mount volume to its public_html.
Also you can mount volume anywhere and create symlink.
Do you have any guides/commands i would need to perform to do this? I've tried googling but it's very confusing and not very to the point.
Google.
And

Code: Select all

man mount

Re: Mounting Drive For Subdomain

Posted: Fri May 08, 2020 4:01 am
by bankzy
grayfolk wrote:
Thu May 07, 2020 7:41 pm
bankzy wrote:
Thu May 07, 2020 7:30 pm
grayfolk wrote:
Thu May 07, 2020 7:27 pm
Just create domain and mount volume to its public_html.
Also you can mount volume anywhere and create symlink.
Do you have any guides/commands i would need to perform to do this? I've tried googling but it's very confusing and not very to the point.
Google.
And

Code: Select all

man mount
Oki I will dig deeper