Body of Knowledge

knowledge sharing - wiki brain

Archive for June, 2009

Big-IP v4 redirect

If you want to generate an unconditional redirect from siteA to siteB, just write this:  

if (http_host starts_with “www.siteA.com”) {
                                                redirect to http://www.siteB.com:%p/%u

}

Where:
- %p stands for the port.
- %u stands for the url path.

1 comment

fc bash command

“fc” will bring the last command typed into an editor, “vi” if that’s the default editor. Of course you can specify a different editor by using the -e switch as follows:
$ fc -e emacs
To list last few commands, type:
$ fc -l
For the last 10 commands it will be:
$ fc -l -10

No comments

acl on ext2/ext3

Ever wandered how to have a full file ACL on your Linux filesystem instead of the usual user:password:others?

apt-get install libattr1 libacl1 acl

setfacl
getfacl
Interesting links:

http://www.adelux.fr/libre/howto/en/samba_ext3_acl

No comments