ubuntu

htaccess password protected dir

 

.htaccess
AuthType Basic
AuthName “restricted area”
AuthUserFile /home//public_html//.htpassword
require valid-user

eg

AuthType Basic
AuthName “restricted area”
AuthUserFile /home/workassis/public_html/documents/.htpassword
require valid-user

.htpassword
bikesh:papAq5PwY/QQM
raju:lofN7oBa7bM4w

 

http://davidwalsh.name/password-protect-directory-using-htaccess

http://davidwalsh.name/htaccess-username-password-generator

By bm on January 10, 2014 | ubuntu | A comment?

ubuntu enable right click open terminal

1. Open the Terminal (ctrl-alt-t).

user@scorpio:~$

2. Install nautilus addon.

user@scorpio:~$ sudo apt-get install nautilus-open-terminal

3. Restart Nautilus.

user@scorpio:~$ nautilus -q
By bm on October 25, 2013 | ubuntu | A comment?

Adding windows xampp htdocs to ubuntu www

If you are using dual booting, some times we need to access windows xampp htdocs folder from ubuntu.

steps

1. get drive id

 sudo blkid

2. Mount windows drive

udisks --mount /dev/sda6 --mount-options umask=022

3. if it is already mounted the un  mount

sudo umount /dev/sda6

3. make a link (shor cut) of xamp htdocs and rename to www

4. rename or delete* /var/www folder

sudo mv www www_backup

5. copy that link (short cut   ) www to /var/

mv www /var/www

 

give permission if it require

 

By bm on | ubuntu | A comment?