Protecting a folder on nginx

15 sec read

|| how to protecting a folder with password on nginx
| generate htpasswd password using perl

# perl -le 'print crypt("yourpassword", "salt")'

| make htpasswd

# vi /etc/nginx/conf/htpasswd

| setup on nginx.conf / vhost

# vi /etc/nginx/nginx.conf
# add line like this
location ^~/afoldername {
        auth_basic            "Restricted";
        auth_basic_user_file  /etc/nginx/conf/htpasswd;

| restarting nginx

# /etc/init.d/nginx restart

|| links
| google
| snippet

How to fix problem with the editor ‘vi’

:: git error with vi error: There was a problem with the editor 'vi'   :: how to fix the problem 0. check path...
10 sec read

Apache :: MP4 Streaming

:: How to Enable mp4 Streaming in Apache + Installing mod h624 streaming wget // tar -xzf apache_mod_h264_streaming-2.2.7.tar.gz cd mod_h264_streaming-2.2.7/ ./configure --with-apxs=`which apxs2` make...
18 sec read

Apache :: Flash / FLV Streaming

:: How to Configure Apache for FLV Streaming + Installing mod_flvx wget // which apxs /usr/bin/apxs /usr/bin/apxs -cia mod_flvx.c + setup mod_flvx in http.conf...
15 sec read

Leave a Reply

Your email address will not be published. Required fields are marked *