Quote:
Originally Posted by unSpawn
If you're talking strictly about the location of the password file then in theory it could be anywhere as long as you (can) reference it in your "AuthUserFile" statement. In practice it should be placed, since it contains passwords, outside the DOCROOT. (BTW a more appropriate thread title would have included the words "htpassword" and "location".)
|
Hi unSpawn,
I solved my problem partially with following steps;
On Firefox;
Tools --> Add-ons --> Get-Extensions --> Search "bookmarks synchronizer"
found 2 items;
1)
Box.net Bookmarks Synchronizer
2)
Bookmark Sync and Sort
Code:
by rhaebuster .
Bookmark Sync and Sort is a Mozilla Firefox extension that lets you connect to an FTP/WebDAV server and synchronize your bookmarks that are stored in an XML file. Setup is easy; just write in your FTP/WebDAV server address, username, password and...
Installed "Bookmark Sync and Sort 1.0.7" and restarted Firefox
Continued;
# htpasswd -m -c /var/www/bookmarks/.htpasswd satimis
New password:
Re-type new password:
Adding password for user satimis
# mkdir /var/www/bookmarks
# chown -R -c www-data:www-data /var/www/bookmarks
Code:
changed ownership of `/var/www/bookmarks' to www-data:www-data
# ls /etc/apache2/
Code:
apache2.conf envvars mods-available
conf.d httpd.conf mods-enabled sites-available
dav_svn.passwd ports.conf sites-enabled
Edited /etc/apache2/http.conf adding following lines on it;
Code:
## Location of the DavLock file
DavLockDB /usr/share/apache2/var/DavLock
## Set up the bookmarks directory to use WebDAV and authentication
<Directory "/var/www/bookmarks">
Dav On
AuthName "WebDAV Login"
AuthType Basic
AuthUserFile /var/www/bookmarks/.htpasswd
## Limit access for enhanced security
<LimitExcept GET HEAD OPTIONS POST>
require valid-user
</LimitExcept>
Order allow,deny
Allow from all
</Directory>
# /etc/init.d/apache2 restart
Code:
* Forcing reload of web server (apache2)... [ OK ]
On the same PC login as satimis and start Firefox
1)
http://satimis.com/bookmarks/
Code:
Index of /bookmarks
[ICO] Name Last modified Size Description
[DIR] Parent Directory -
Apache/2.2.3 (Ubuntu) DAV/2 SVN/1.4.3 PHP/5.2.1 mod_ssl/2.2.3 OpenSSL/0.9.8c Server at satimis.com Port 80
No login page started.
2)
https://satimis.com/bookmarks/
Code:
Index of /bookmarks
[ICO] Name Last modified Size Description
[DIR] Parent Directory -
Apache/2.2.3 (Ubuntu) DAV/2 SVN/1.4.3 PHP/5.2.1 mod_ssl/2.2.3 OpenSSL/0.9.8c Server at satimis.com Port 443
Also no login page started
3)
http://test.webdav.org/dav/
Code:
Not Found
The requested URL /dav/ was not found on this server.
Advice would be appreciated. TIA
satimis