Danh mụcThẻBài viết

admin

I'm a Full-stack developer

Thẻ

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
Ngày đăng: 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 !!!

Đề xuất

TypeScript Design Pattern - Abstract Factory
admin07/08/2023

TypeScript Design Pattern - Abstract Factory
The abstract factory pattern is one of five design patterns in the Creational Design Pattern group. The abstract factory provides an interface for creating families of related or dependent objects without specifying their concrete classes.
Part 1: Build a Chat App with ReactJS + Material UI
admin13/09/2023

Part 1: Build a Chat App with ReactJS + Material UI
In this article, I would like to introduce using ReactJS and material UI to build a Chat App.
Create Project with Express + TypeScript + ESLint + Auto Reload
admin12/06/2023

Create Project with Express + TypeScript + ESLint + Auto Reload
In this article, I introduce to you how to initialize an Express + TypeScript project.
Mới nhất

RESTful API - How to design?
admin09/06/2023

RESTful API - How to design?
In this article, I will describe the useful points of designing a good API.
How to secure your API gateway
admin17/04/2024

How to secure your API gateway
In this blog, I will cover the 6 methods that technology leaders need to incorporate to secure and protect APIs.
Microservice in a Monorepo
admin22/06/2023

Microservice in a Monorepo
Microservice in a Monorepo
Đ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
Góp ý
Họ & Tên
Số điện thoại
Email
Nội dung
Tải ứng dụng
hotline

copyright © 2023 - AGAPIFA

Privacy
Term
About