Setting up a www subdomain on a self-hosted Ghost blog

This page summarizes the projects mentioned and recommended in the original post on dev.to

SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.
surveyjs.io
featured
InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
  • Ghost

    Independent technology for modern publishing, memberships, subscriptions and newsletters.

  • Ghost CMS makes it fairly easy to link your blog to your own domain and set up SSL. The ghost setup command in ghost-cli basically does it for you. However, for me it didn't automatically set up a www subdomain. So I could access, say, https://https://myblog.lol, but https://www.myblog.lol would result in a 502. I was thinking of just adding a CNAME or ALIAS record in my providers DNS settings, but that didn't work somehow. So I just set an A record to point from www to the IP of my Ghost blog, which worked fine, but I didn't have any SSL then on my www subdomain. Thus, I had to tinker a bit in the nginx configs of Ghost, so that it automatically redirects all www traffic to the apex. I think that that's a pretty safe solution.

  • SurveyJS

    Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.

    SurveyJS logo
  • acme.sh

    A pure Unix shell script implementing ACME client protocol

  • server { listen 80; listen [::]:80; server_name www.myblog.lol; root /var/www/ghost/system/nginx-root; # Used for acme.sh SSL verification (https://acme.sh) location / { return 301 https://myblog.lol$request_uri; } location ~ /.well-known { allow all; } client_max_body_size 50m; }

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • Setting up a Homelab: Part 1 Proxmox and LetsEncrypt

    1 project | dev.to | 26 Apr 2024
  • Dehydrated: Letsencrypt/acme client implemented as a shell-script

    11 projects | news.ycombinator.com | 19 Apr 2024
  • How to Build Email Server with Exim on Alma Linux 9

    1 project | dev.to | 20 Apr 2024
  • Ask HN: What is your experience with ZeroSSL?

    1 project | news.ycombinator.com | 20 Mar 2024
  • The Bureau of Meteorology website does not support connections via HTTPS

    2 projects | news.ycombinator.com | 2 Jan 2024