Learn about Centmin Mod LEMP Stack 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 Premium Member Premium Member

    1,026
    231
    63
    Oct 24, 2015
    East Coast USA
    Ratings:
    +555
    Local Time:
    6:48 AM
    1.13.x
    MariaDB 10.1.x
    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

    29,057
    6,594
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,790
    Local Time:
    8:48 PM
    Nginx 1.13.x
    MariaDB 5.5
    just edit subdomain's nginx vhost config file and edit the root directive path :)
     
  3. Jimmy

    Jimmy Premium Member Premium Member

    1,026
    231
    63
    Oct 24, 2015
    East Coast USA
    Ratings:
    +555
    Local Time:
    6:48 AM
    1.13.x
    MariaDB 10.1.x
    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

    29,057
    6,594
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,790
    Local Time:
    8:48 PM
    Nginx 1.13.x
    MariaDB 5.5
    • Informative Informative x 1