Join the community today
Become a Member

Second Drive Media Storage

Discussion in 'Install & Upgrades or Pre-Install Questions' started by Jimmy, Apr 26, 2017.

  1. Jimmy

    Jimmy Well-Known Member

    1,788
    390
    83
    Oct 24, 2015
    East Coast USA
    Ratings:
    +990
    Local Time:
    9:44 AM
    I'm looking a starting a video site: 'mydomain.com'. I'm going to have to purchase a server with 2 drives:
    • 1 drive for the system (system drive).
    • 1 drive for the storage (storage drive).
    The script I'm looking at I have to use a base url for the media path which would be simple if I was using 1 drive (system drive).
    Code:
    $mediadomain = 'mydomain.com/media';
    Is it possible to setup a subdomain and point it to the storage drive via the root?
    Code:
    root   /mnt/media/hard/drive;


     
  2. eva2000

    eva2000 Administrator Staff Member

    54,907
    12,240
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,811
    Local Time:
    11:44 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    just edit subdomain's nginx vhost config file and edit the root directive path :)
     
  3. Jimmy

    Jimmy Well-Known Member

    1,788
    390
    83
    Oct 24, 2015
    East Coast USA
    Ratings:
    +990
    Local Time:
    9:44 AM
    That's what I thought. Thanks! (y)

    Are you going to default to openssl now that 1.13.0 is out?
     
  4. eva2000

    eva2000 Administrator Staff Member

    54,907
    12,240
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,811
    Local Time:
    11:44 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+