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

Semantic Versioning NodeJS
admin07/07/2023

Semantic Versioning NodeJS
How to Use Semantic Versioning in NPM
JOI - API schema validation
admin12/06/2023

JOI - API schema validation
Data validation is one of topics that I am interesting. I always review my code after developed features or fixed bugs. There are many places where need to validate data, it is really terrible. Some cases, we need to validate data input because ensure the data into API, it will not make any problems to crash system.
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.
Mới nhất

TypeScript Design Pattern - Adapter
admin08/08/2023

TypeScript Design Pattern - Adapter
This design pattern acts as a bridge between two different interfaces.
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.
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.
Đ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