{"id":3465,"date":"2010-03-12T16:06:51","date_gmt":"2010-03-12T20:06:05","guid":{"rendered":"http:\/\/www.opticality.com\/blog\/?p=3465"},"modified":"2010-03-12T16:10:26","modified_gmt":"2010-03-12T20:10:26","slug":"nginx-and-wordpress-openid-plugin","status":"publish","type":"post","link":"https:\/\/opticality.com\/blog\/2010\/03\/12\/nginx-and-wordpress-openid-plugin\/","title":{"rendered":"NginX and WordPress OpenID Plugin"},"content":{"rendered":"<p>I normally have super powers when it comes to persevering through annoying technical problems. On rare occasions, Kryptonite appears out of nowhere and strips me of those powers.<\/p>\n<p>This blog is powered by <a title=\"WordPress.org\" href=\"http:\/\/wordpress.org\/\" target=\"_blank\">WordPress.org<\/a> software. I use a variety of plugins to make my life a bit easier. One of my favorites is the <a title=\"OpenID WordPress Plugin\" href=\"http:\/\/wordpress.org\/extend\/plugins\/openid\/\" target=\"_blank\">OpenID WordPress Plugin<\/a>. I\u2019ve been using it since it first came out and I\u2019m very happy with it.<\/p>\n<p>Because I was using it from the beginning, I lived through a few rough upgrades (not complaining, just explaining). The problems always got sorted out quickly.<\/p>\n<p>Back in <a title=\"NginX Reporting for Duty\" href=\"https:\/\/www.opticality.com\/blog\/2008\/06\/09\/nginx-reporting-for-duty\/\" target=\"_blank\">June 2008<\/a> (yes, a long time ago), I switched from Apache to <a title=\"NginX\" href=\"http:\/\/nginx.org\/\" target=\"_blank\">NginX<\/a> and have never looked back. The trickiest part of switching a WordPress site (especially <a title=\"WordPress MU\" href=\"http:\/\/mu.wordpress.org\/\" target=\"_blank\">WordPress MU<\/a>, even more so with <a title=\"BuddyPress\" href=\"http:\/\/buddypress.org\/\" target=\"_blank\">BuddyPress<\/a> installed!) is converting the Rewrite Rules that are typically stored in a .htaccess file into nginx syntax.<\/p>\n<p>While I got my initial attempt to work, I\u2019ve grown way more comfortable and familiar with nginx over the past year, and I\u2019ve tweaked my rewrite rules quite a bit.<\/p>\n<p>Along the way, there were numerous updates of the OpenID Plugin as well. Most times things just kept working. Once, OpenID stopped working, and I tried to track it down. I gave up pretty quickly because I had seen that behavior before with an individual update of the plugin. Sure enough, the next update got me working again.<\/p>\n<p>Then at some point, it stopped again. At this point I had conditioned myself to ignore it, and I went back to logging in with a password (something I really prefer not to do). This lasted for months. At some point, the plugin got updated at least twice, and things still didn\u2019t work for me. Now I was getting annoyed.<\/p>\n<p>I stopped trying to use OpenID. Two days ago I tried again, I can\u2019t explain why. I got a strange Google Toolbar redirect error message. I did a search, and someone was complaining about something that looked similar, but had nothing to do with WordPress. A Google employee responded to him that he should temporarily disable the Toolbar (in Firefox) and see if the problem went away.<\/p>\n<p>I decided to try that and instead of a strange Google error, I simply got a 404. What? A simple 404 couldn\u2019t be the plugin\u2019s fault. Time to dig in (finally).<\/p>\n<p>I turned on nginx debugging and tried to log in. I was shocked when I saw that the error had nothing to do with the plugin. Instead, my nginx rules weren\u2019t even calling in to PHP to let the plugin do its work.<\/p>\n<p>Without a doubt, I had an error in one of my rewrite rules in nginx. There\u2019s a possibility that at some point, the plugin changed the way it redirects, so that it was a combination of a new URL coming back to me (that I wasn\u2019t catching correctly) or simply one of my changes in nginx, without the plugin doing anything different.<\/p>\n<p>I added a new rule and was able to log in (for the first time in over six months!) via OpenID.<\/p>\n<p>In this case, I let my own normal persistence fade, because I incorrectly assumed that the problem was contained in the plugin. Shame on me!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I normally have super powers when it comes to persevering through annoying technical problems. On rare occasions, Kryptonite appears out of nowhere and strips me of those powers. This blog is powered by WordPress.org software. I use a variety of plugins to make my life a bit easier. One of my favorites is the OpenID [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"activitypub_content_warning":"","activitypub_content_visibility":"","activitypub_max_image_attachments":4,"activitypub_interaction_policy_quote":"anyone","activitypub_status":"","footnotes":""},"categories":[4,3,2],"tags":[643,235,301,642,21],"class_list":["post-3465","post","type-post","status-publish","format-standard","hentry","category-4","category-3","category-2","tag-buddypress","tag-computers","tag-nginx","tag-openid","tag-wordpress"],"_links":{"self":[{"href":"https:\/\/opticality.com\/blog\/wp-json\/wp\/v2\/posts\/3465","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/opticality.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/opticality.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/opticality.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/opticality.com\/blog\/wp-json\/wp\/v2\/comments?post=3465"}],"version-history":[{"count":2,"href":"https:\/\/opticality.com\/blog\/wp-json\/wp\/v2\/posts\/3465\/revisions"}],"predecessor-version":[{"id":3467,"href":"https:\/\/opticality.com\/blog\/wp-json\/wp\/v2\/posts\/3465\/revisions\/3467"}],"wp:attachment":[{"href":"https:\/\/opticality.com\/blog\/wp-json\/wp\/v2\/media?parent=3465"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/opticality.com\/blog\/wp-json\/wp\/v2\/categories?post=3465"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/opticality.com\/blog\/wp-json\/wp\/v2\/tags?post=3465"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}