<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>Nginx on The Lonesome Crowded Web</title>
    <link>https://www.lonesomecrowdedweb.com/tags/nginx/</link>
    <description>Recent content in Nginx on The Lonesome Crowded Web</description>
    <image>
      <title>The Lonesome Crowded Web</title>
      <url>https://www.lonesomecrowdedweb.com/papermod-cover.png</url>
      <link>https://www.lonesomecrowdedweb.com/papermod-cover.png</link>
    </image>
    <generator>Hugo -- 0.149.0</generator>
    <language>en</language>
    <lastBuildDate>Tue, 21 Feb 2017 00:00:00 +0000</lastBuildDate>
    <atom:link href="https://www.lonesomecrowdedweb.com/tags/nginx/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>A Broken Redirect - Why My Certificate Wouldn&#39;t Renew</title>
      <link>https://www.lonesomecrowdedweb.com/blog/broken-redirect/</link>
      <pubDate>Tue, 21 Feb 2017 00:00:00 +0000</pubDate>
      <guid>https://www.lonesomecrowdedweb.com/blog/broken-redirect/</guid>
      <description>&lt;p&gt;I was recently trying to renew the Let&amp;rsquo;s Encrypt certificate for this site, but doing so failed with the following error (and an accompanying 404 Not Found):&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-plaintext&#34; data-lang=&#34;plaintext&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;Cert is due for renewal, auto-renewing...
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;Renewing an existing certificate
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;Performing the following challenges:
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;http-01 challenge for lonesomecrowdedweb.com
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;http-01 challenge for www.lonesomecrowdedweb.com
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;Waiting for verification...
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;Cleaning up challenges
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;Attempting to renew cert from /etc/letsencrypt/renewal/lonesomecrowdedweb.com.conf produced an unexpected error: Failed authorization procedure. www.lonesomecrowdedweb.com (http-01): urn:acme:error:unauthorized :: The client lacks sufficient authorization
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;Domain: www.lonesomecrowdedweb.com
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;Type:   unauthorized
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;Detail: Invalid response from http://www.lonesomecrowdedweb.com/.well-known/acme-challenge/ ...
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;This was because my redirects in NGINX were not configured appropriately, and I didn&amp;rsquo;t notice due to my use of &lt;a href=&#34;https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Strict-Transport-Security&#34;&gt;HTTP Strict-Transport-Security&lt;/a&gt;. Correcting the bindings allowed me to renew the certificate successfully.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
