Enable Directory Listing in Nginx Webserver

Here is a simple way to enable directory listing in Nginx Webserver.
I have a subdomain repository.wowtutorial.org and i want repository.wowtutorial.org to have ability to listing a directory.

All we need to do just modify the vhosts or nginx.conf
Add autoindex on;

Please see the example below

Example :

#nano /usr/local/etc/nginx/vhosts/repository.wowtutorial.org

server {
        listen  80;
        server_name  repository.wowtutorial.org;
        autoindex on;

        location / {
            root   /home/xxx/repository;
            index  index.php index.html index.htm;
        }

        location ~ \.php$ {
                fastcgi_pass   127.0.0.1:9000;
                fastcgi_param  SCRIPT_FILENAME  /home/xxx/repository$fastcgi_script_name;
                fastcgi_param PATH_INFO $fastcgi_script_name;
                include        /usr/local/etc/nginx/fastcgi_params;
        }

        location ~ /\.ht {
            deny  all;
        }
}

Share

Bridge to Terabithia (2007)

Jesse Aarons trained all summer to become the fastest runner in school, so he's very upset when newcomer Leslie Burke outruns him and everyone else. Despite this and other differences, including that she's rich, he's poor, and she's a city girl, he's a country boy, the two become fast friends. Together, they create Terabithia, a land of monsters, trolls, ogres, and giants and rule as king and queen. This friendship helps Jess cope with the tragedy that makes him realize what Leslie taught him. Written by Popdivaprincess3000

A little imagination can sometimes go a long way. The story of young and artistically talented Jesse Aarons, who is sharing concerns and money problems with his family. He's having trouble at school with the bullies and there is a bully like troll who charges the kids a dollar to go and pee. He is fighting for the attention of his father, against his baby sister. Life for young Jesse isn't looking up, that is until the adventurous, imaginative and non-conformist Leslie Burke arrives in town. Together they form a bond and Jesse's life shall never, again, be the same. Adventures and amazement in other worlds center around these two kindred spirits, and for once, for Jesse, life isn't so bad after all. If your mind is wide enough then let your imagination take you over the Bridge to Terabithia. Written by Cinema_Fan

Read more

Share

Linux Distributions

A must read to learn and know the origins of different flavors of Linux distros.

You'l end up wondering 'why didn't I notice this before?…'  🙂

http://en.wikipedia.org/wiki/List_of_Linux_distributions

http://www.webmin.com/support.html

Share

PowerDNS Cache dump in CSV

The objective is simple, a periodic cron cache dump of powerdns recursor on a setup.

1. create a shell code as below using nano-

#nano /usr/local/bin/pdns-cache-dump.sh

#!/bin/sh
DAY=`/bin/date +%Y%m%d`
TFILE="/var/log/pdns-cache/$(basename $0).$DAY.csv"
rec_control dump-cache $TFILE
echo "cache dump completed, dump script by rumi (hasan.emdad@mango.com.bd)"

Read more

Share

Canon scanner N340P/ N640P problem on windows 7 or vista Operating System

I was trying to use my old scanner Canon flatbed scanner "CanoScan N 640P ex" model. The driver installation didn't give any compatibility issue. However, after the OEM driver installed and tried to scan something- I was receiving this error-

canocraft cs-p 3.8 profile not found error code 0x24050010

After googling got it up & running :). So here goes the tid bits-

One:: log out of your user account it will not run in the user account.
Two:: log in to admin account then unzip the file in to a blank folder you should have disk one two three.
Three:: open the folder names disk one.
Four:: right click on the file that say's setup.exe right click it. then select properties then on the tabs click on compatibility tab
Five:: check run this program in compatibility mode for : select in the drop down box windows 2000 then click apply
Six:: click on the setup.exe file and run it.
Seven:: when the setup is done check mark i will start my computer me self. the finsh.
Eight:: after the box is gone restart the computer.
Nine:: log back in admin account and load the CanoCraft CS-P 3.8 do a preview scan you should have a preview show up.
Ten:: you get a preview page then test for a save file jpg what I did.
Then when thats done log out and back to your user account. scan all you want. Note do not !!! add it as a device it will blue screen you "blue screen of death"

Share

endian: How to configure the OpenVPN client on a Linux workstation

Go to VPN > OpenVPN Server

Download the CA certificate using the link Download CA Certificate

Save the certificate locally as, lets say, /home/user/cacert.pem

Start the OpenVPN client using the following command line:

openvpn –client –pull –comp-lzo –nobind –dev tap0 –ca /home/user/cacert.pem –auth-user-pass –remote your.remote.efw

Share