Fideloper
Here we use LetsEncrypt (certbot) with the CloudFlare DNS plugin to generate a free, auto-renewing TLS certificate to use with Nginx. Then we configure Nginx to use that TLS certificate and create a configuration to support multi-tenancy in our applications. We use a special configuration to capture the value of the subdomain so we can pass it off...
Let's see how to install, setup, and configure LetsEncrypt (certbot) with Nginx to get an SSL certificate in something like 30 seconds. This will help you get and configure an TSL certificate that auto-renews itself via LetsEncrypt - you never have to think about it again! When you install certbot, it will add a systemd timer. This timer periodically...
Fixing Nginx's default configuration. Nginx's default configuration is fine, but could use some help! The quickest way to improve Nginx's default configuration is to use H5BP's Nginx configuration. The Problems with Defaults There's a few "problems" (things we can improve) with the default configuration. No caching for easily-cached static...
Your app may need to allow users/teams/tenants/whatever the ability to have their own subdomain. If your domain is myapp.com, this means letting tenants use foo.myapp.com to access their account. This affects your code base quite a but, but what I want to show you is a server setup for this. I'll be doing videos on this for development and production,...
The nginx try_files directive is actually interesting! Not, like, amazingly interesting - but it has more depth than appears at first glance. First, Nginx almost doesn't need try_files. Without it, Nginx could serve static files just fine: server { listen 80; server_name _; root /var/www/html/public; index index.html index.html;...
PHP is, historically, stateless. This is mostly a result of HTTP being stateless as well. Each HTTP request has no knowledge of any request before it. PHP is much the same. Under "traditional" process models, it rebuilds its entire world on each request! There's no global state. Language Comparison In the video, we compare other popular languages...