LightSail로 웹 서버 만들기
개시하다
비망각으로 투고하다.
인스턴스 생성하기




정적 IP 주소 만들기
Lightsail의 홈페이지 화면 > [네트워크] 탭 > [정적 IP 제작]
독립 도메인 이름 가져오기
FC 2는 비교적 저렴한 것 같지만 이미 다른 도메인 이름이 있습니다.com에서 취득했기 때문에 이름.네트워크에서 가져오기
DNS 영역 만들기


DNS 레코드 추가
Lightsail의 홈 화면 > [네트워크] 탭 > 제작된 DNS 영역 선택

공급자 측에서 이름 서버를 설정합니다
공급업체의 콘솔을 사용하여 방금 저장한 이름 서버를 설정합니다.
성함이 어떻게 되십니까?com에 로그인


yoshiki@mbp ~ % nslookup xxxxxxxxxxxxxx.com
Non-authoritative answer:
Name: xxxxxxxxxxxxxxx.com
Address: xxx.xxx.xxx.xxx
HTTPS화
Bitnami는 bncert-tool이라는 독특한 HTTPS 설정 도구를 제공합니다.
이 도구는 다음 프로그램을 자동으로 실행합니다.
· 비트나미 스택을 통한 HTTPS 인증서 설정
• 인증서 작성 자동 업데이트
• HTTP에서 HTTPS로의 리디렉션 설정
AWS 공식 Howdo I installa standard Let's Enncrypt SSL certificate in a Lightsail instance?
1. SSH를 통한 인스턴스 로그인
2. Bitnami 도구 설치
문서 사이트 wget -O bncert-linux-x64.run https://downloads.bitnami.com/files/bncert/latest/bncert-linux-x64.run
sudo mkdir /opt/bitnami/bncert
sudo mv bncert-linux-x64.run /opt/bitnami/bncert/
sudo chmod +x /opt/bitnami/bncert/bncert-linux-x64.run
sudo ln -s /opt/bitnami/bncert/bncert-linux-x64.run /opt/bitnami/bncert-tool
3. BitnamiHTTPS 구성 도구 실행
sudo /opt/bitnami/bncert-tool
4. 비트나미와의 대화에 대답
명령을 입력해야 하는 곳에 별을 붙이다.bitnami@ip-xxx-xxx-xxx-xxx:~$ sudo /opt/bitnami/bncert-tool
★An updated version is available. Would you like to download it? You would need to run it manually later. [Y/n]: y
The tool will exit now. To run the updated version run the following command:
/opt/bitnami/bncert-tool
bitnami@ip-xxx-xxx-xxx-xxx:~$ sudo /opt/bitnami/bncert-tool
----------------------------------------------------------------------------
Welcome to the Bitnami HTTPS Configuration tool.
----------------------------------------------------------------------------
Domains
Please provide a valid space-separated list of domains for which you wish to
configure your web server.
★Domain list []: (独自ドメイン)
★The following domains were not included: www.(独自ドメイン). Do you want to add them? [Y/n]: n
Warning: No www domains (e.g. www.example.com) or non-www domains (e.g.
www.example.com) have been provided, so the following redirections will be
disabled: non-www to www, www to non-www.
★Press [Enter] to continue:
----------------------------------------------------------------------------
Enable/disable redirections
Please select the redirections you wish to enable or disable on your Bitnami
installation.
★Enable HTTP to HTTPS redirection [Y/n]:
----------------------------------------------------------------------------
Changes to perform
The following changes will be performed to your Bitnami installation:
1. Stop web server
2. Configure web server to use a free Let's Encrypt certificate for the domains:
(独自ドメイン)
3. Configure a cron job to automatically renew the certificate each month
4. Configure web server name to: (独自ドメイン)
5. Enable HTTP to HTTPS redirection (example: redirect http://(独自ドメイン)
to https://(独自ドメイン))
6. Start web server once all changes have been performed
★Do you agree to these changes? [Y/n]:
----------------------------------------------------------------------------
Create a free HTTPS certificate with Let's Encrypt
Please provide a valid e-mail address for which to associate your Let's Encrypt
certificate.
Domain list: (独自ドメイン)
Server name: (独自ドメイン)
★E-mail address []:(メールアドレス)
The Let's Encrypt Subscriber Agreement can be found at:
https://letsencrypt.org/documents/LE-SA-v1.2-November-15-2017.pdf
★Do you agree to the Let's Encrypt Subscriber Agreement? [Y/n]: y
----------------------------------------------------------------------------
Performing changes to your installation
The Bitnami HTTPS Configuration Tool will perform any necessary actions to your
Bitnami installation. This may take some time, please be patient.
----------------------------------------------------------------------------
Success
5. HTTPS화 확인
웹 페이지를 실제로 방문하여 URL 표시줄에 난징 자물쇠 표지가 표시되었는지 확인하세요.
참조 링크
Amazon Lightsail을 통한 웹 사이트 구축(LAMP 환경)
Reference
이 문제에 관하여(LightSail로 웹 서버 만들기), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다
https://qiita.com/yoshiki_mbp/items/9fb32bbd4d16b0f62266
텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
우수한 개발자 콘텐츠 발견에 전념
(Collection and Share based on the CC Protocol.)
wget -O bncert-linux-x64.run https://downloads.bitnami.com/files/bncert/latest/bncert-linux-x64.run
sudo mkdir /opt/bitnami/bncert
sudo mv bncert-linux-x64.run /opt/bitnami/bncert/
sudo chmod +x /opt/bitnami/bncert/bncert-linux-x64.run
sudo ln -s /opt/bitnami/bncert/bncert-linux-x64.run /opt/bitnami/bncert-tool
sudo /opt/bitnami/bncert-tool
bitnami@ip-xxx-xxx-xxx-xxx:~$ sudo /opt/bitnami/bncert-tool
★An updated version is available. Would you like to download it? You would need to run it manually later. [Y/n]: y
The tool will exit now. To run the updated version run the following command:
/opt/bitnami/bncert-tool
bitnami@ip-xxx-xxx-xxx-xxx:~$ sudo /opt/bitnami/bncert-tool
----------------------------------------------------------------------------
Welcome to the Bitnami HTTPS Configuration tool.
----------------------------------------------------------------------------
Domains
Please provide a valid space-separated list of domains for which you wish to
configure your web server.
★Domain list []: (独自ドメイン)
★The following domains were not included: www.(独自ドメイン). Do you want to add them? [Y/n]: n
Warning: No www domains (e.g. www.example.com) or non-www domains (e.g.
www.example.com) have been provided, so the following redirections will be
disabled: non-www to www, www to non-www.
★Press [Enter] to continue:
----------------------------------------------------------------------------
Enable/disable redirections
Please select the redirections you wish to enable or disable on your Bitnami
installation.
★Enable HTTP to HTTPS redirection [Y/n]:
----------------------------------------------------------------------------
Changes to perform
The following changes will be performed to your Bitnami installation:
1. Stop web server
2. Configure web server to use a free Let's Encrypt certificate for the domains:
(独自ドメイン)
3. Configure a cron job to automatically renew the certificate each month
4. Configure web server name to: (独自ドメイン)
5. Enable HTTP to HTTPS redirection (example: redirect http://(独自ドメイン)
to https://(独自ドメイン))
6. Start web server once all changes have been performed
★Do you agree to these changes? [Y/n]:
----------------------------------------------------------------------------
Create a free HTTPS certificate with Let's Encrypt
Please provide a valid e-mail address for which to associate your Let's Encrypt
certificate.
Domain list: (独自ドメイン)
Server name: (独自ドメイン)
★E-mail address []:(メールアドレス)
The Let's Encrypt Subscriber Agreement can be found at:
https://letsencrypt.org/documents/LE-SA-v1.2-November-15-2017.pdf
★Do you agree to the Let's Encrypt Subscriber Agreement? [Y/n]: y
----------------------------------------------------------------------------
Performing changes to your installation
The Bitnami HTTPS Configuration Tool will perform any necessary actions to your
Bitnami installation. This may take some time, please be patient.
----------------------------------------------------------------------------
Success
Amazon Lightsail을 통한 웹 사이트 구축(LAMP 환경)
Reference
이 문제에 관하여(LightSail로 웹 서버 만들기), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다 https://qiita.com/yoshiki_mbp/items/9fb32bbd4d16b0f62266텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
우수한 개발자 콘텐츠 발견에 전념
(Collection and Share based on the CC Protocol.)