<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Nginx on sugar, spice, &amp;terminal? nice</title>
    <link>https://terminal.space/tag/nginx/</link>
    <description>Recent content in Nginx on sugar, spice, &amp;terminal? nice</description>
    <generator>Hugo</generator>
    <language>en</language>
    <lastBuildDate>Wed, 02 Jun 2021 11:01:09 +0000</lastBuildDate>
    <atom:link href="https://terminal.space/tag/nginx/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Matching socks: Nginx &#43; php = Wordpress (Part 3)</title>
      <link>https://terminal.space/tech/matching-socks-nginx-php-wordpress-part-3/</link>
      <pubDate>Wed, 02 Jun 2021 11:01:09 +0000</pubDate>
      <guid>https://terminal.space/tech/matching-socks-nginx-php-wordpress-part-3/</guid>
      <description>&lt;figure&gt;&lt;img src=&#34;https://terminal.space/tech/matching-socks-nginx-php-wordpress-part-3/images/alfred-rowe-1zTetyivDYE-unsplash.jpg&#34;&gt;&#xA;&lt;/figure&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&#34;https://terminal.space/tech/wordpress-hosting-docker-style-part-1/&#34;&gt;Part 1: Wordpress hosting, docker style&lt;/a&gt;&lt;br&gt;&#xA;&lt;a href=&#34;https://terminal.space/tech/cron-letsencrypt-docker-style-part-2/&#34;&gt;Part 2: Cron + LetsEncrypt, docker style&lt;/a&gt;&lt;br&gt;&#xA;&lt;a href=&#34;https://terminal.space/tech/matching-socks-nginx-php-wordpress-part-3/&#34;&gt;Part 3: Matching socks: Nginx + php = Wordpress&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Previously, we&amp;rsquo;ve covered terminating SSL connections and running cron jobs. Now it&amp;rsquo;s time to actually set up a wordpress installation. The two main ingredients are a web server, and a php server. All requests go through the web server (nginx, again in this case). If the filepath ends in a .php extension, then the request gets forwarded to the php-fpm (basically php with a &lt;a href=&#34;https://stackoverflow.com/a/2089297/3029173&#34;&gt;FastCGI&lt;/a&gt; implementation) to do the server-side processing.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Wordpress hosting, docker style (Part 1)</title>
      <link>https://terminal.space/tech/wordpress-hosting-docker-style-part-1/</link>
      <pubDate>Tue, 09 Mar 2021 07:07:32 +0000</pubDate>
      <guid>https://terminal.space/tech/wordpress-hosting-docker-style-part-1/</guid>
      <description>&lt;figure&gt;&lt;img src=&#34;https://terminal.space/tech/wordpress-hosting-docker-style-part-1/images/beanca-du-toit-pCNiuZ8lvpc-unsplash.jpg&#34;&#xA;    alt=&#34;A whale, coming out of the water&#34;&gt;&lt;figcaption&gt;&#xA;      &lt;p&gt;A whale, coming out of the water&lt;/p&gt;&#xA;    &lt;/figcaption&gt;&#xA;&lt;/figure&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&#34;https://terminal.space/tech/wordpress-hosting-docker-style-part-1/&#34;&gt;Part 1: Wordpress hosting, docker style&lt;/a&gt;&lt;br&gt;&#xA;&lt;a href=&#34;https://terminal.space/tech/cron-letsencrypt-docker-style-part-2/&#34;&gt;Part 2: Cron + LetsEncrypt, docker style&lt;/a&gt;&lt;br&gt;&#xA;&lt;a href=&#34;https://terminal.space/tech/matching-socks-nginx-php-wordpress-part-3/&#34;&gt;Part 3: Matching socks: Nginx + php = Wordpress&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Those &lt;a href=&#34;https://terminal.space/tech/wordpress-hosting-from-scratch/&#34;&gt;segfaults&lt;/a&gt; I mentioned? Yeah, they proved unsolvable. Nginx Unit seems to be having a rough time and un-extracting Nginx Unit from the install script was more difficult than expected too.&lt;/p&gt;&#xA;&lt;p&gt;Instead, I spent more time than that setting up my &lt;a href=&#34;https://github.com/AnilRedshift/www_docker/&#34;&gt;own cluster of docker containers&lt;/a&gt;. The benefit is that I can now run a whole copy locally, test changes, and then push to production. It also allows me to track what changes to all the various .conf files I&amp;rsquo;ve been making. Today, I&amp;rsquo;ll talk about setting up a SSL-terminating reverse-proxy, and how to host it with docker-compose.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Wordpress hosting from scratch</title>
      <link>https://terminal.space/tech/wordpress-hosting-from-scratch/</link>
      <pubDate>Fri, 26 Feb 2021 11:58:43 +0000</pubDate>
      <guid>https://terminal.space/tech/wordpress-hosting-from-scratch/</guid>
      <description>&lt;figure&gt;&lt;img src=&#34;https://terminal.space/tech/wordpress-hosting-from-scratch/images/vilmar-simion-ffREEWWVimk-unsplash-1.jpg&#34;&gt;&#xA;&lt;/figure&gt;&#xA;&#xA;&lt;p&gt;Alternative title: Why it&amp;rsquo;s worth it to pay for wordpress hosting.&lt;br&gt;&#xA;Alternative title 2: Why is Ansible so complicated?&lt;/p&gt;&#xA;&lt;p&gt;I have no idea why someone would scan the outside of a PSU, but it makes for a segue to this lede - which promises to be the best part of this post:&lt;/p&gt;&#xA;&lt;div style=&#34;position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden;&#34;&gt;&#xA;      &lt;iframe allow=&#34;accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share; fullscreen&#34; loading=&#34;eager&#34; referrerpolicy=&#34;strict-origin-when-cross-origin&#34; src=&#34;https://www.youtube.com/embed/bOfpQt4KFCc?autoplay=0&amp;amp;controls=1&amp;amp;end=0&amp;amp;loop=0&amp;amp;mute=0&amp;amp;start=0&#34; style=&#34;position: absolute; top: 0; left: 0; width: 100%; height: 100%; border:0;&#34; title=&#34;YouTube video&#34;&gt;&lt;/iframe&gt;&#xA;    &lt;/div&gt;&#xA;&#xA;&lt;p&gt;Just your typical barcode jam sesh&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
