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,114
    247
    63
    Oct 24, 2015
    East Coast USA
    Ratings:
    +596
    Local Time:
    1:15 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

    30,163
    6,785
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,136
    Local Time:
    3:15 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,114
    247
    63
    Oct 24, 2015
    East Coast USA
    Ratings:
    +596
    Local Time:
    1:15 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

    30,163
    6,785
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,136
    Local Time:
    3:15 PM
    Nginx 1.13.x
    MariaDB 5.5
    • Informative Informative x 1