Servers for Hackers (The Book, Case Studies & Videos)
Servers for Hackers
Server Administration for Programmers
About the Book
Don't catch Accidental Sysadmin Syndrome™
Application development is getting more complex, and we developers need to know how to setup and maintain the servers that run our applications. Don’t get stuck at 3am with a broken server, or in the middle of your workday fighting configuration. Learn how to administer your servers!
Run & Manage Web Servers
Learn how to install and configure Nginx, Apache so you can serve your web applications.
Multi-Server Setup
Learn how to connect multiple servers so they can work together for load balancing, caching, redundancy and more.
Latest Technologies
Learn how to install and manage the latest technologies, including setting up queues/workers, monitoring processes so they don’t fail, handling server and applications logging and more!
Setup and Security
Learn how to setup each server with needed software and security configuration to keep your applications and their data safe.
This includes preventing unauthorized access, managing permissions and users, learning how to use the iptables firewall, configuring SSH, enabling SSL certificates and more!
Case Studies
Read the case studies to learn from specific examples from real-world usage.
These includes examples of load balancing, web server configuration, caching and more!
Packages
The Book, Case Studies & Videos
In addition to the Servers for Hackers eBook and the Case Studies, you'll receive 12+ instructional videos on Ansible, SSL Certificates, Vagrant, and Supervisord.
Includes:
Case Studies
Examples of real-world use of configurations found in the book (and some extras)!
English
PDF
EPUB
MOBI
WEB
The Book
The Servers for Hackers eBook, including 35+ chapters and over 300 pages of information programmers need to know about their servers!
English
PDF
EPUB
MOBI
WEB
The Book + Case Studies
In addition to the content of the Servers for Hackers eBook, you'll receive the case studies with examples of real-world use of examples in the book!
Includes:
Case Studies
Examples of real-world use of configurations found in the book (and some extras)!
English
PDF
EPUB
MOBI
WEB
Bundles that include this book
Table of Contents
-
-
Servers
- Video Site
- Book Issues
-
Servers
-
Introduction
-
Accidental Sysadmin Syndrome
- Assumptions
- Linux Distributions
-
The Sandbox
- Install Virtualbox and Vagrant
- Configure Vagrant
- Vagrant Up!
- Basic Commands
- Basic Software
- Review
-
Accidental Sysadmin Syndrome
-
Security
-
Users and Access
- IP Addresses
- Creating a New User
- Making Our User a Super User
-
Setting Up the Firewall: Iptables
- Adding these rules
- Inserting Rules
- Deleting Rules
- Saving Firewall Rules
- Defaulting to DROP Over ACCEPT
- Logging Dropped Packets
- Firewalls with UFW
-
Fail2Ban
- Iptables Integration
- Installation
- Configuration
- Automatic Security Updates
-
Users and Access
-
Package Managers
-
Apt
- New (as of 16.04 Xenial, continuing into 18.04 Bionic)
- Installing
- Repositories
- Examples
- Searching Packages
-
Apt
-
Permissions and User Management
-
Permissions
- Checking Permissions
- Changing Permissions
-
User Management
- Creating Users
- Umask & Group ID Bit
- ACL’s
- Running Processes
-
Permissions
-
Webservers
-
HTTP, Web Servers and Web Sites
- A Quick Note on DNS
-
DNS & Hosts File
- Xip.io
- Virtual Hosts
-
Hosting Web Applications
- Three Actors
-
Apache
- Installing
- Configuration
- Virtual Hosts
- Apache and Web Applications
- MPM Configuration
- Security Configuration
- Envvars
-
Nginx
- Features
- Installation
- Web Server Configuration
- Servers (virtual hosts)
- Integration with Web Applications
-
PHP
- Installation
- Configuration
- PHP-FPM
- PHP in Nginx: Subdirectories
-
Server Setup for Multi-Tenancy Apps
- DNS
- Multi-Tenancy in Apache
- Multi-Tenancy in Nginx
-
HTTP, Web Servers and Web Sites
-
SSL Certificates
-
SSL Overview
- Using SSL in Your Application
-
Creating Self-Signed Certificates
- Creating a Wildcard Self-Signed Certificate
- Apache Setup
- Nginx Setup
- One Server Block
- Extra SSL Tricks
-
LetsEncrypt
- Web Server Security
- Install Letsencrypt
- Install a Certificate
- Nginx Configuration
- Renewal
-
SSL Overview
-
Multi-Server Environments
-
Implications of Multi-Server Environments
- Asset Management
- Sessions
- Lost Client Information
- SSL Traffic
- Logs
-
Load Balancing with Nginx
- Balancing Algorithms
- Configuration
- Mapping Headers
-
SSL with Nginx
- SSL-Termination
- SSL-Passthru Support
- When to use Pass-Thru
- Load Balancer (Server A, at 52.90.130.140):
- Web Server (Server B, at 52.23.215.245):
-
Load Balancing with HAProxy
- Common Setups
- Installation
- HAProxy Configuration
- Monitoring HAProxy
- Sample NodeJS Web Server
-
SSL with HAProxy
- HAProxy with SSL Termination
- HAProxy with SSL Pass-Through
- Sample NodeJS Web Server
-
Implications of Multi-Server Environments
-
Web Cache
-
Nuts and Bolts of HTTP Caching
- Object Caches
- Web Caches
- Types of HTTP Caches
-
An Origin Server
- Testing Caching Mechanisms
-
Nginx Web Caching
- Use Cases
- How It Will Work
- Origin Server
- Cache Server
- Proxy Caching
- Example: Caching Specific URIs
-
Varnish
- Origin Server
- Install Varnish
- Basic Configuration
- Increasing Cache Hit Rate
- Varnish Tools
- Extra Resources
-
Nuts and Bolts of HTTP Caching
-
Logs
-
Logrotate
- What does Logrotate do?
- Configuring Logrotate
- Going Further
-
Rsyslog
- Configuration
- Usage
- Should I Use Rsyslog?
- Sending To Rsyslog From An Application
-
Logrotate
-
File Management, Deployment & Configuration Management
-
Managing Files
- Copying Files Locally
- SCP: Secure Copy
- Rsync: Sync Files Across Hosts
- Deployment
-
Auto-deploy with GitHub
- How it Works
- Node Listener
- Shell Script
- Putting it together
- Firewall
-
Configuration Management with Ansible
- Install
- Managing Servers
- Basic: Running Commands
- Basic Playbook
- Roles
- Facts
- Vault
-
Managing Files
-
SSH
- Logging in
- SSH Config
-
SSH Tunneling
- Local Port Forwarding
- Remote Port Forwarding
-
One-Off Commands & Multiple Servers
- Basic Ansible
-
Monitoring Processes
- A Sample Script
-
System Services
- System V Init (SysVinit, SysV)
- Systemd
- Upstart
- The Service Command
- Using These Systems
-
Supervisord
- A Chain of Process Monitors
- Installation
- Configuration
- Controlling Processes
- Web Interface
-
Forever
- Installation
- Usage
-
Circus
- Installation
- Configuration
- Controlling Processes
- Web Interface
- Starting on Boot
-
Development and Servers
-
Serving Static Content
- Built-In
- NodeJS
- Dynamic Content
-
Serving Static Content
Authors have earned$9,880,448writing, publishing and selling on Leanpub, earning 80% royalties while saving up to 25 million pounds of CO2 and up to 46,000 trees.
Learn more about writing on Leanpub
The Leanpub 45-day 100% Happiness Guarantee
Within 45 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.
See full terms
Free Updates. DRM Free.
If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).
Most Leanpub books are available in PDF (for computers), EPUB (for phones and tablets) and MOBI (for Kindle). The formats that a book includes are shown at the top right corner of this page.
Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.
Learn more about Leanpub's ebook formats and where to read them
Top Books
C++ Best Practices
Jason TurnerLevel up your C++, get the tools working for you, eliminate common problems, and move on to more exciting things!
Functional Design and Architecture
Alexander GraninSoftware Design in Functional Programming, Design Patterns and Practices, Methodologies and Application Architectures. How to build real software in Haskell with less efforts and low risks. The first complete source of knowledge.
OpenIntro Statistics
David Diez, Christopher Barr, Mine Cetinkaya-Rundel, and OpenIntroA complete foundation for Statistics, also serving as a foundation for Data Science.
Leanpub revenue supports OpenIntro (US-based nonprofit) so we can provide free desk copies to teachers interested in using OpenIntro Statistics in the classroom and expand the project to support free textbooks in other subjects.
More resources: openintro.org.
Mastering STM32
Carmine NovielloWith more than 600 microcontrollers, STM32 is probably the most complete ARM Cortex-M platform on the market. This book aims to be the first guide around that introduces the reader to this exciting MCU portfolio from ST Microelectronics and its official CubeHAL.
R Programming for Data Science
Roger D. PengThis book brings the fundamentals of R programming to you, using the same material developed as part of the industry-leading Johns Hopkins Data Science Specialization. The skills taught in this book will lay the foundation for you to begin your journey learning data science. Printed copies of this book are available through Lulu.
C++20
Rainer GrimmC++20 is the next big C++ standard after C++11. As C++11 did it, C++20 changes the way we program modern C++. This change is, in particular, due to the big four of C++20: ranges, coroutines, concepts, and modules.
Atomic Kotlin
Bruce Eckel and Svetlana IsakovaFor both beginning and experienced programmers! From the author of the multi-award-winning Thinking in C++ and Thinking in Java together with a member of the Kotlin language team comes a book that breaks the concepts into small, easy-to-digest "atoms," along with exercises supported by hints and solutions directly inside IntelliJ IDEA!
Invest In Digital Health - The Medical Futurist's Guide
Dr. Bertalan MeskoArtificial Intelligence and Digital Health are booming. In this book, we explain why now it's a good time to invest in Digital Health and give recommendations on where to invest by looking at the top 24 technological trends we find the most promising.
I am a Software Engineer and I am in Charge
Alexis Monville and Michael DoyleI am a Software Engineer and I am in Charge is a real-world, practical book that helps you increase your impact and satisfaction at work no matter who you work with.
In the book, we will follow Sandrine, a fictional character who learns to think in a new way enabling her to take a different course of action.
The Hundred-Page Machine Learning Book
Andriy BurkovEverything you really need to know in Machine Learning in a hundred pages.
Top Bundles
- #1
Software Architecture for Developers: Volumes 1 & 2 - Technical leadership and communication
2 Books
"Software Architecture for Developers" is a practical and pragmatic guide to modern, lightweight software architecture, specifically aimed at developers. You'll learn:The essence of software architecture.Why the software architecture role should include coding, coaching and collaboration.The things that you really need to think about before... - #2
The Future of Digital Health
6 Books
We put together the most popular books from The Medical Futurist to provide a clear picture about the major trends shaping the future of medicine and healthcare. Digital health technologies, artificial intelligence, the future of 20 medical specialties, big pharma, data privacy and how technology giants such as Amazon or Google want to conquer... - #3
Cisco CCNA 200-301 Complet
4 Books
Ce lot comprend les quatre volumes du guide préparation à l'examen de certification Cisco CCNA 200-301. - #4
CCDE Practical Studies (All labs)
3 Books
CCDE lab - #5
"The C++ Standard Library" and "Concurrency with Modern C++"
2 Books
Get my books "The C++ Standard Library" and "Concurrency with Modern C++" in a bundle. The first book gives you the details you should know about the C++ standard library; the second one dives deeper into concurrency with modern C++. In sum, you get more than 600 pages full of modern C++ and about 250 source files presenting the standard library... - #6
Modern Management Made Easy
3 Books
Read all three Modern Management Made Easy books. Learn to manage yourself, lead and serve others, and lead the organization. - #7
Vagrant Ansible
2 Books
Unveil the power of Ansible and Vagrant with this bundle at a special price. You'll have everything you need to get started with Vagrant - learn the basics and how to create your virtual development environments, using Ansible as provisioner! About Vagrant Cookbook Vagrant Cookbook is a complete guide to get started with Vagrant and create your... - #8
Abandon Your Job - Leaving the Rat Race with Python
8 Books
Now, get all the great Python and Freelancing books from finxter.com in one single bundle!Coffee Break Python - All Python BasicsCoffee Break Python Workbook - Practice the basics of PythonCoffee Break Python Mastery Workouts - Practice advanced Python conceptsCoffee Break Python Slicing - All about SlicingCoffee Break Python NumPy - Get started... - #9
Programming with Ease
3 Books
Alle drei Bände der Serie Programming with Ease in einem Paket. Darin findest du alles, was ich dir zu den wichtigsten Phasen der Softwareentwicklung im Hinblick auf Clean Code Development für langfristig hohe Produktivität sagen kann.Im Band Slicing findest du die Anforderungsanalyse im Rahmen eines iterativ-inkrementellen Vorgehensmodells aus... - #10
The Python Craftsman
3 Books
The Python Craftsman series comprises The Python Apprentice, The Python Journeyman, and The Python Master. The first book is primarily suitable for for programmers with some experience of programming in another language. If you don't have any experience with programming this book may be a bit daunting. You'll be learning not just a programming...