Discover Centmin Mod today
Register Now

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,269
    264
    83
    Oct 24, 2015
    East Coast USA
    Ratings:
    +656
    Local Time:
    5:34 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

    33,747
    7,468
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +11,481
    Local Time:
    7:34 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,269
    264
    83
    Oct 24, 2015
    East Coast USA
    Ratings:
    +656
    Local Time:
    5:34 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

    33,747
    7,468
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +11,481
    Local Time:
    7:34 PM
    Nginx 1.13.x
    MariaDB 5.5
    • Informative Informative x 1
..