60°F

Aaron Parecki

  • Articles
  • Notes
  • Photos
  • shabegom https://github.com/shabegom   •   May 7

    #94 Doesn't follow 301 redirects

    Aaron Parecki

    Your Micropub endpoint should never be returning HTTP 301, I'm guessing there is something wrong with the nginx config. Maybe you have an http-to-https redirect? Maybe the proxy_pass config is wrong?

    If the micropub endpoint on your website linked from your GitHub profile is the one in question, it looks like the problem is with the slash. Your website links to /micropub, but the nginx config is for /micropub/, and nginx is sending a redirect from https://shbgm.ca/micropub to https://shbgm.ca/micropub/. If you instead include https://shbgm.ca/micropub/ as your micropub endpoint on your website, Quill should be able to post to it just fine.

    In general, it's not a good idea for a POST request to follow 301 redirects, which is why browsers have implemented that by making a GET request to the new location. The Micropub spec itself doesn't say anything about this, but I don't think any Micropub clients will follow a 301 redirect on the micropub endpoint itself. You're better off linking to the actual Micropub endpoint from your site in the first place.

    Portland, Oregon • 55°F
    Wed, May 9, 2018 8:11am -07:00
Posted in /replies using quill.p3k.io

Hi, I'm Aaron Parecki, Director of Identity Standards at Okta, and co-founder of IndieWebCamp. I maintain oauth.net, write and consult about OAuth, and participate in the OAuth Working Group at the IETF. I also help people learn about video production and livestreaming. (detailed bio)

I've been tracking my location since 2008 and I wrote 100 songs in 100 days. I've spoken at conferences around the world about owning your data, OAuth, quantified self, and explained why R is a vowel. Read more.

  • Director of Identity Standards at Okta
  • IndieWebCamp Founder
  • OAuth WG Editor
  • OpenID Board Member

  • 🎥 YouTube Tutorials and Reviews
  • 🏠 We're building a triplex!
  • ⭐️ Life Stack
  • ⚙️ Home Automation
  • All
  • Articles
  • Bookmarks
  • Notes
  • Photos
  • Replies
  • Reviews
  • Trips
  • Videos
  • Contact
© 1999-2025 by Aaron Parecki. Powered by p3k. This site supports Webmention.
Except where otherwise noted, text content on this site is licensed under a Creative Commons Attribution 3.0 License.
IndieWebCamp Microformats Webmention W3C HTML5 Creative Commons
WeChat ID
aaronpk_tv