botbotbot 's blog

DevOps

Varany vs. Docker

Vagrant is a tool for managing virtual machines.
Docker is a tool for building and deploying applications by packaging them into lightweight containers.

Nginx ByPass Confixguration

bypass.conf

server {
    listen 80;

    location / {
        proxy_pass http://127.0.0.1:8000;
    }
}
# debian
$ sudo apt-get install nginx
$ sudo vim /etc/nginx/sites-available/<your>.conf
$ sudo rm /etc/ngin/sites-enabled/default.conf
$ suo ln -f /etc/nginx/sites-available/<your>.conf /etc/sites-enabled/
$ sudo services nginx reload

Nginx Allow File browser list

# debain
$ cd /usr/share/nginx/html
$ ln -s <path> <link_name>

edit your nginx.conf

    location /<url> {
      alias /usr/share/nginx/html/<link_name>
      autoindex on;
      autoindex_exact_size off;
      autoindex_localtime on;
      auth_basic "Restricted";                #For Basic Auth
      auth_basic_user_file <your .htpasswd>;  #For Basic Auth
    }

Useful command

Rsync

  1. How to Backup Linux? 15 rsync Command Examples
  2. How To Use Rsync to Sync Local and Remote Directories on a VPS

Ref::

  1. How to enable file browser mode in Nginx?
  2. How To Set Up HTTP Authentication With Nginx On Ubuntu 12.10
  3. วิธี setup Nginx ให้บริการ HTTPS
  4. DevOps for Developers (Nginx + Ruby)
  5. How To Use Fabric To Automate Administration Tasks And Deployments
  6. How to Deploy Python WSGI Apps Using Gunicorn HTTP Server Behind Nginx
  7. How To Create a SSL Certificate on nginx for Ubuntu 12.04
  8. Auto Reload Gunicorn On File Change Event
  9. 20 Linux System Monitoring Tools Every SysAdmin Should Know
  10. Awesome Sysadmin
  11. Server Admin for Programmers
  12. Ops School Curriculum
  13. serverspec automation testing your configured(Ruby)
  14. Building Microservices Nginx
  15. Ansible is a radically simple IT automation platform
  16. Vargrant GETTING STARTED
  17. LEARN CHEF