{"id":19096,"date":"2021-04-03T18:33:14","date_gmt":"2021-04-03T18:33:14","guid":{"rendered":"https:\/\/davidgerard.co.uk\/blockchain\/?p=19096"},"modified":"2021-05-14T21:17:36","modified_gmt":"2021-05-14T21:17:36","slug":"this-site-is-now-served-via-nginx","status":"publish","type":"post","link":"https:\/\/davidgerard.co.uk\/blockchain\/2021\/04\/03\/this-site-is-now-served-via-nginx\/","title":{"rendered":"This site is now served via nginx"},"content":{"rendered":"<p>I&#8217;ve just moved this site from <a href=\"https:\/\/en.wikipedia.org\/wiki\/Apache_HTTP_Server\">Apache httpd<\/a> to <a href=\"https:\/\/en.wikipedia.org\/wiki\/Nginx\">nginx<\/a> with <a href=\"https:\/\/en.wikipedia.org\/wiki\/PHP#PHPFPM\">PHP-FPM.<\/a><\/p>\n<p>I&#8217;ve been meaning to do since the last time a page was super-popular (the <a href=\"https:\/\/davidgerard.co.uk\/blockchain\/2020\/06\/06\/the-brave-web-browser-is-hijacking-links-and-inserting-affiliate-codes\/\">Brave post<\/a> last June) \u2014 the server coped just fine, but Apache is really bad at floods of SSL connections.<\/p>\n<p>Everything seems to work properly with nginx and PHP-FPM \u2014 please let me know of any weirdness you notice.<\/p>\n<p>Now for the hard part: getting certbot to renew the SSL certificate automatically. <strong>Update:<\/strong> achieved!<\/p>\n<br><br><div align=\"center\"><p><a href=\"https:\/\/www.patreon.com\/bePatron?u=8420236\"><img src=\"https:\/\/davidgerard.co.uk\/blockchain\/wp-content\/uploads\/2021\/10\/become_a_patron_button.svg\" alt=\"Become a Patron!\" title=\"Become a Patron!\" width=217 height=51><\/a><br><p style=\"align:center;\" class=\"patreon-badge\"><i>Your subscriptions keep this site going. <a href=\"https:\/\/www.patreon.com\/bePatron?u=8420236\">Sign up today!<\/a><\/i><\/p><\/div>","protected":false},"excerpt":{"rendered":"<p>Everything seems to work properly with nginx and PHP-FPM \u2014 please let me know of any weirdness you notice.<\/p>\n","protected":false},"author":1,"featured_media":19097,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[1],"tags":[],"class_list":["post-19096","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorised"],"jetpack_featured_media_url":"https:\/\/davidgerard.co.uk\/blockchain\/wp-content\/uploads\/2021\/04\/nginx-logo-header.png","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/davidgerard.co.uk\/blockchain\/wp-json\/wp\/v2\/posts\/19096","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/davidgerard.co.uk\/blockchain\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/davidgerard.co.uk\/blockchain\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/davidgerard.co.uk\/blockchain\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/davidgerard.co.uk\/blockchain\/wp-json\/wp\/v2\/comments?post=19096"}],"version-history":[{"count":5,"href":"https:\/\/davidgerard.co.uk\/blockchain\/wp-json\/wp\/v2\/posts\/19096\/revisions"}],"predecessor-version":[{"id":19418,"href":"https:\/\/davidgerard.co.uk\/blockchain\/wp-json\/wp\/v2\/posts\/19096\/revisions\/19418"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/davidgerard.co.uk\/blockchain\/wp-json\/wp\/v2\/media\/19097"}],"wp:attachment":[{"href":"https:\/\/davidgerard.co.uk\/blockchain\/wp-json\/wp\/v2\/media?parent=19096"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/davidgerard.co.uk\/blockchain\/wp-json\/wp\/v2\/categories?post=19096"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/davidgerard.co.uk\/blockchain\/wp-json\/wp\/v2\/tags?post=19096"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}