Page 1 of 1

Link to my external harddrive?

Posted: Sat Mar 30, 2019 6:03 am
by Dckolt
Hello!

I just got a web server up and running and installed phpBB.

Is it possible for me to create a new topic and then link to a file on my external harddrive?

The server is running on ubuntu and the path is: /media/hero/storage4/traningc2.rar

I tried messing around with [url=file://media/hero/storage4/traning2.rar]Traning video #2[/url]

But it just shows up in plain text.

Then i thought about changing the upload directory to my external harddrive and just upload trough the forum, but i cant seem to get that to work either? I tried typing in the local path but not sure if this is even possible.

I hope somebody can help me out, im pretty new at this :)

Re: Link to my external harddrive?

Posted: Sat Mar 30, 2019 9:10 am
by .m.
even if your hard disk can be linked, it will be available to you alone.

its better to sync to a popular storage hosting system (eg. google drive)
& use its web links

Re: Link to my external harddrive?

Posted: Sat Mar 30, 2019 12:20 pm
by Prosk8er
you could just drag those files you want into a directory on your site like http://yoursite.com/storage/ and link to it
or you could attach them in posts

Re: Link to my external harddrive?

Posted: Sat Mar 30, 2019 2:38 pm
by Dckolt
.m. wrote:
Sat Mar 30, 2019 9:10 am
even if your hard disk can be linked, it will be available to you alone.

its better to sync to a popular storage hosting system (eg. google drive)
& use its web links
I just wanted to host everything on my own web server :D

Just like making a attachment to a post on the forum, that link directs to "files" on my computer but the problem is the drive the web server is installed on isnt very big and thats why i have a external harddrive plugged in and then i wanted to link to the bigger files there.
Prosk8er wrote:
Sat Mar 30, 2019 12:20 pm
you could just drag those files you want into a directory on your site like http://yoursite.com/storage/ and link to it
or you could attach them in posts
The web server is installed on a very small drive :/ Its a laptop with limited upgrade possibilities, so i plugged in a external harddrive and wanted to link to those files.

Re: Link to my external harddrive?

Posted: Sat Mar 30, 2019 2:47 pm
by Prosk8er
Dckolt wrote:
Sat Mar 30, 2019 2:38 pm
The web server is installed on a very small drive :/ Its a laptop with limited upgrade possibilities, so i plugged in a external harddrive and wanted to link to those files.
ah i see you might be better off trying to ask on apache website(assuming thats what your using)
but i did do a quick search and came up with https://httpd.apache.org/docs/2.4/urlmapping.html

Re: Link to my external harddrive?

Posted: Sat Mar 30, 2019 3:44 pm
by Dckolt
Prosk8er wrote:
Sat Mar 30, 2019 2:47 pm
Dckolt wrote:
Sat Mar 30, 2019 2:38 pm
The web server is installed on a very small drive :/ Its a laptop with limited upgrade possibilities, so i plugged in a external harddrive and wanted to link to those files.
ah i see you might be better off trying to ask on apache website(assuming thats what your using)
but i did do a quick search and came up with https://httpd.apache.org/docs/2.4/urlmapping.html
Ahh thank you mate, thats what i was looking for!

Noob signing off!

Re: Link to my external harddrive?

Posted: Sat Mar 30, 2019 4:07 pm
by Prosk8er
Dckolt wrote:
Sat Mar 30, 2019 3:44 pm
Ahh thank you mate, thats what i was looking for!

Noob signing off!
your welcome let me know how it works out

Re: Link to my external harddrive?

Posted: Sat Mar 30, 2019 4:19 pm
by Lumpy Burgertushie
is this board /site open to the world? if you are hosting a website on your home server then your ISP could shut down your internet. most of them do not allow this. also, unless you know what you are doing, opening up a web server to the world is very unsecure and will make all of your network open to the public.

with the price of hosting so cheap it just does not make any sense to do this if you are at all serious about your website.


robert

Re: Link to my external harddrive?

Posted: Sun Mar 31, 2019 9:06 pm
by AmigoJack
Dckolt wrote:
Sat Mar 30, 2019 2:38 pm
Prosk8er wrote:
Sat Mar 30, 2019 12:20 pm
you could just drag those files you want into a directory on your site like http://yoursite.com/storage/ and link to it
The web server is installed on a very small drive :/ Its a laptop with limited upgrade possibilities, so i plugged in a external harddrive and wanted to link to those files.
Create a hard link inside your HTTP server root to any path of your external HDD. Problem solved.