My current setup
I am managing a download site where some files could be over 2 GB. I am using a plugin to forbid the download directory for user and serve files from another url. For example:
If files are located on example.com/files/file1.zip users download it from the url of example.com/download/5.
In my plugin i use a file path like /var/www/example.com/file/file1.zip
My main site is a Linode VPS with a small HDD space. And i am running out of space.
What i want
I want to buy at least 1 TB HDD dedicated server and only use it as a file storage/server.
But in my current setup how can i do that?
How can i keep my current setup?
How can i use the bandwidth of the second server and save the first one?
How will i link my files from main server in my plugin since they will be in remote location? (I am using the local path now, you can see above)
How will i protect the files on the second server?
Do i need to buy new domain name for secondary server to reach it or using just the IP address is fine?