Hey
Just doing some Comp science work and trying to understand Web Servers.
Right....
I've gone through this...
http://lifehacker.com/software/feature/how-to-set-up-a-personal-home-web-server-124212.php
Right... seen the password and directory set thing... but now..trying to put a HTML File. Seen the folder you have to put it to as researched google...But.... Lets say i want to password protect a folder. Like lets say i have a few music files in a folder which i have hyperlinked to a word on the html index file, so when i click on it i get a username and password to input then to display the contents of that folder. How do i go ahead doing that?
My mate who is Expert at Linux...Suggested
<Directory "/var/www/mikes/mymusic">
Options Indexes FollowSymLinks
AuthType Basic
AuthName "Authorised access only"
AuthUserFile /etc/apache2/httpd-passwords
require user mike
Order allow,deny
Allow from all
But obviously the / for \ and folder different. But just trying to get other answers
Michael
Just doing some Comp science work and trying to understand Web Servers.
Right....
I've gone through this...
http://lifehacker.com/software/feature/how-to-set-up-a-personal-home-web-server-124212.php
Right... seen the password and directory set thing... but now..trying to put a HTML File. Seen the folder you have to put it to as researched google...But.... Lets say i want to password protect a folder. Like lets say i have a few music files in a folder which i have hyperlinked to a word on the html index file, so when i click on it i get a username and password to input then to display the contents of that folder. How do i go ahead doing that?
My mate who is Expert at Linux...Suggested
<Directory "/var/www/mikes/mymusic">
Options Indexes FollowSymLinks
AuthType Basic
AuthName "Authorised access only"
AuthUserFile /etc/apache2/httpd-passwords
require user mike
Order allow,deny
Allow from all
But obviously the / for \ and folder different. But just trying to get other answers

Michael