Password protect my server?

Asked by george_rutkay

Now that I have my home computer set up as a small web server to my music files, I'd like to put password protection on it. How can I do that?

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
george_rutkay
Solved:
Last query:
Last reply:
Revision history for this message
Bhavani Shankar (bhavi) said :
#1

Hello

You can place your authentication lines in your httpd.conf for the server, or place your properly configured .htaccess file at the root of the web server.

Search for "When (not) to use .htaccess files" in :

http://httpd.apache.org/docs/2.2/howto/htaccess.html

and then search for "Authentication example".

This link might also help you out:

http://www.linuxsecurity.com/content/view/133913/171/

Regards

Bhavani Shankar.

Revision history for this message
george_rutkay (yaktur) said :
#2

Both links are very confusing to read.....sorry but I don't understand much of what I read.

My http.conf file is completely empty. And I don't completely understand what I've read in my apache2.conf file.

Can anyone format this as an example?

For example, suppose I want to add my friends "Joe" and "Betty".

I want only these two people to be allowed to login to my website.

Suppose I want their logins to be respectively "joe" and "betty".

And suppose I want their passwords to be their e-mail addresses: "<email address hidden>" and "<email address hidden>".

And I want these two users to have read-only access 1 or 2 directories in my /var/www/ folder, perhaps a third folder with write-to access (so they can upload to me) and nothing more.

Now given these things, how would I modify anything on my system to make this happen as a web server?

Oh, also, is it possible to set it up as a secure (like in on-line banking with the https: prefix) website?

There's still so much I don't understand about this stuff!

Please anyone?

Revision history for this message
george_rutkay (yaktur) said :
#3

I've just recently discovered (today in fact) that there are user groups in Canada - I never knew that!

So I've submitted my question to them.

I'll mark this as "solved" although I'm no closer to a solution. Eventually my hope is to take the knowledge I have gained from this and use it to set up a website (complete with a secure login) over at the family farm for their business.