CategoryTagArticle

admin

I'm a Full-stack developer

Tag

Linked List
Data Structure
Chat GPT
Design Pattern
Microservices
API
AWS CDK
ReactJS
AWS Lightsail
Flutter Mobile
Part 2: Setup Custom Domain Zone + SSL for Ghost on AWS Lightsail
Published date: 17/06/2023

In this section, I will continue to show you how to point Ghost Instance Static IP to your domain. Don't worry because you don't have a Ghost blog page for yourself, you can follow my instructions in part 1


Enable HTTPS on your Ghost Instance


  • Connect to instance
  • Run bncert tool with the command below
sudo /opt/bitnami/bncert-tool
  • Enter the main domain name and the alternate domain name separated by a space as shown below

  • Type Y and press Enter to continue

  • Enter your email address

  • Type Y and press Enter to continue

  • The certificate has been successfully verified

  • Modify the Apache configuration file
sudo vi /opt/bitnami/apache2/conf/httpd.conf



  • Search in the file and update below
<IfModule headers_module>
    #
    # Avoid passing HTTP_PROXY environment to CGI's on this or any proxied
    # backend servers which have lingering "httpoxy" defects.
    # 'Proxy' request header is undefined by the IETF, not listed by IANA
    #
    RequestHeader unset Proxy early
    RequestHeader set X-Forwarded-Proto "https"
</IfModule>



  • Restart Ghost and Apache
sudo /opt/bitnami/ctlscript.sh restart ghost
sudo /opt/bitnami/ctlscript.sh restart apache


Check your website


Custom domain


  • I use matbao for SSL and domain management. dinhthanhcong.info was created on matbao. We need to delete the DNS and A, CNAME records then add 2 records to AWS Lightsail.

  • On matbao, we need to update the DNS records that we have from AWS Lightsail.

At this point, setting up the domain name for your Ghost blog has been successful. You can check by entering the URL https://www.dinhthanhcong.info/ from a web browser and something similar to https://<PusblishIP>


Thanks for reading !!!

Recommend

Data structure: Singly Linked List
admin07/04/2024

Data structure: Singly Linked List
In this article, I will show you how to set up a singly linked list algorithm in Python.
Part 5: Creating a Tag List Page on Ghost CMS
admin17/06/2023

Part 5: Creating a Tag List Page on Ghost CMS
In this article, I will show you how to create a Tag list page using the Casper theme.
Create Cognito User Pool with AWS CDK
admin09/06/2023

Create Cognito User Pool with AWS CDK
In the previous post, I showed you how to create a simple S3 bucket. Next, in this article, I will guide you to create a Cognito User Pool.
Newest

TypeScript Design Pattern - Bridge
admin08/08/2023

TypeScript Design Pattern - Bridge
Decouple an abstraction from its implementation so that the two can vary independently.
Part 3: Upgrade Latest Ghost Ver On AWS Lightsail
admin17/06/2023

Part 3: Upgrade Latest Ghost Ver On AWS Lightsail
You are a beginner with Ghost CMS, Bitanami, AWS Lightsail and don't know much about the documentation yet. So, in this article, I introduce step by step to upgrade Ghost CMS to the latest version.
Design Patterns
admin07/08/2023

Design Patterns
The design pattern does not be a specific programming language. Almost programming languages might apply design patterns that to resolve a problem repeat.
Đinh Thành Công Blog

My website, where I write blogs on a variety of topics and where I have some experiments with new technologies.

hotlinelinkedinskypezalofacebook
DMCA.com Protection Status
Feedback
Name
Phone number
Email
Content
Download app
hotline

copyright © 2023 - AGAPIFA

Privacy
Term
About