Friday, April 13, 2007

hosting a simple web server

hosting a web server can be useful for many things. if you want to give someone a HUGE file like 4 gigs, you can start a web server and they can download it.

before we begin, if you are behind a router, you will need to forward port 80 (the http port)

see port forwarding

now that you have port 80 open it's time to get a program to host your files.

apache is the most popular web server, but this time I will be talking about HFS because it is very simple and easy to run.

I like HFS because it is a stand alone, open source, free, and packed with features

so go ahead and download that and run it.



you should see a window that looks like this



click on menu > self test
it will tell you about routers yada yada yada

click ok

if everything, port forwarding ect. is set up, you now have a running web server!

now for adding files...

there are 2 methods.

1.) drag n' drop
this doesn't really need an explanation

2.) real folders
if you have a folder on your hard drive that you want to share try using the real folders whatzit
its kinda like drag n' drop but when it asks you about it, just say real folder.
real folder have 2 advantages over virtual folders.
1.)faster. HFS has an easier time loadin' them this is good if you have 210 backgrounds that you are sharing with friends.
2.)upload-compatable.

thats one of the great things about hfs, it how it supports uploads.
now if you are on the road and you... go into a mac store and make a kickass song with garage band, you can upload it to your home computer.

but wait... what if someone else finds my server and puts a virus on my computer?

good question!

its not a problem. HFS supports passwords on specific files. that means that you can make one file that only you can see and upload to, or you could make one that only you can upload to but others can see. any thing is possible here's how to do the latter

in hfs, right click on the file that you want to alow uploading in.
then go to upload>upload for accounts> and the username.


this will be kinda hard if you haven't made a user name yet. to do so just click on new account
and fill in the boxes

thats really All you need to know

if you have anything else that you want to know about this, leave a comment

questions?
pointers?
typos?
death threats? (depreciated)

leave a comment