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

How to integrate ChatGPT-3.5 Turbo into Node.js
admin10/01/2024

How to integrate ChatGPT-3.5 Turbo into Node.js
Step-by-Step Guide to Incorporating ChatGPT-3.5 Turbo into Node.js for Basic ReactJS Applications
Difference Between Stack and Queue
admin07/04/2024

Difference Between Stack and Queue
In the fundamental data structure, besides the linked list, the stack and queue are also used widely in computer science and programming.
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.
Mới nhất

TypeScript Design Pattern - Proxy
admin11/08/2023

TypeScript Design Pattern - Proxy
Provide a surrogate or placeholder for another object to control access to it.
NodeJS Verify and Decode Cognito JWT Tokens
admin12/06/2023

NodeJS Verify and Decode Cognito JWT Tokens
In this article, I will show you how to verify and decode the Cognito JWT Tokens token.
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