사용하고 싶은 도메인 이름을 Check 해봅니다. ‘Free’라는 태그가 붙은 도메인은 무료이므로 사용하고 싶은 것을 고르면 됩니다. [Get it now!]를 클릭합니다. 버튼이 [Selected]로 바뀌면 발급이 완료된 것입니다.
Period 에서 무료로 사용할 수 있는 기간을 선택할 수 있습니다. 12개월을 선택 후 [Continue]를 클릭합니다.
구글 로그인으로 무료 체크아웃하기
생성된 도메인은 상단의 [Services] -> [My Domains]를 클릭하면 위와 같이 구매한 도메인을 확인할 수 있습니다.
2. Route 53 에 도메인 등록
이제 AWS 콘솔로 넘어가겠습니다. Route 53 콘솔로 들어가 [Hosted zones] -> [Create Hosted Zone]을 클릭합니다.
Domain Name에 이전에 발급받은 도메인을 기입합니다. [Create]를 클릭합니다.
생성 완료!
NS 타입과 SOA 타입의 레코드 셋이 생성되어 있는 것을 확인할 수 있습니다. NS는 네임 서버 레코드, SOA는 권한 시작 레코드입니다.
레코드 생성 버튼을 클릭해 빠른 레코드를 생성합니다.
Name 에는 하위 도메인을 설정할 수 있습니다. 여기서는 일반적으로 쓰이는 www를 사용하겠습니다. Type은 A 레코드를 선택하고 값에 인스턴스 퍼블릭 IP 주소를 입력합니다. 설정을 마쳤으면 [Create]를 클릭합니다.
레코드 생성 완료!
Record Set에 방금 생성한 A 레코드의 도메인을 확인할 수 있습니다. 하지만 여기서 끝난 것이 아닙니다. 네임서버를 이전에 발급받은 무료 도메인에 적용해 주어야 합니다.
3. 도메인 AWS Route53의 NameServer로 변경
freenom 사이트의 My Domains에서 구매한 도메인의 [Manage Domain]을 클릭합니다.
[Management Tools] -> [Nameservers] 를 클릭한 다음, Use custom nameservers (enter below)를 체크하고 Route 53 NS 레코드의 Value 값을 넣어줍니다. 전부 입력하고 [Change Nameservers]를 클릭합니다.
네트워크 전파 속도 때문에 네임서버를 변경하면 바로 적용이 안 되기 때문에 몇 분 내지는 몇 시간의 시간이 필요합니다.
위의 url 로 파라미터를 던지고 결과를 받아야 하는데 아래와 같은 오류가 발생할 것이다.
Mixed Content: The page at ‘https://page.com‘ was loaded over HTTPS, but requested an insecure XMLHttpRequest endpointThis request has been blocked; the content must be served over HTTPS.
이럴 경우 2가지의 해결 방법이 있다.
싱글페이지를 포기하고 https 주소가 꼭 필요한 부분에서만 https 주소를 사용하는 페이지로 이동을 한다.
Microsoft Windows [Version 10.0.19041.804]
(c) 2020 Microsoft Corporation. All rights reserved.
C:\Users\bit\Documents\boiler-plate>git init
Initialized empty Git repository in C:/Users/bit/Documents/boiler-plate/.git/
C:\Users\bit\Documents\boiler-plate>git status
On branch master
No commits yet
Untracked files:
(use "git add <file>..." to include in what will be committed)
index.js
models/
node_modules/
package-lock.json
package.json
nothing added to commit but untracked files present (use "git add" to track)
C:\Users\bit\Documents\boiler-plate>
git add를 하면 소ㅑㄹ라소ㅑㄹ라~~ 라이브러리까지 다 올라감.. (staging area에)
C:\Users\bit\Documents\boiler-plate>git add .
warning: LF will be replaced by CRLF in node_modules/.bin/mime.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in node_modules/.bin/mime.ps1.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in node_modules/.bin/semver.
The file will have its original line endings in your working directory
C:\Users\bit\Documents\boiler-plate>git status
On branch master
No commits yet
Changes to be committed:
(use "git rm --cached <file>..." to unstage)
new file: index.js
new file: models/User.js
new file: node_modules/.bin/mime
new file: node_modules/.bin/mime.cmd
new file: node_modules/.bin/mime.ps1
new file: node_modules/.bin/semver
new file: node_modules/.bin/semver.cmd
C:\Users\bit\Documents\boiler-plate>git status
On branch master
No commits yet
Changes to be committed:
(use "git rm --cached <file>..." to unstage)
new file: index.js
new file: models/User.js
new file: package-lock.json
new file: package.json
Untracked files:
(use "git add <file>..." to include in what will be committed)
.gitignore
C:\Users\bit\Documents\boiler-plate>git commit -m "처음 저장소 올림"
[master (root-commit) 1540315] 처음 저장소 올림
4 files changed, 668 insertions(+)
create mode 100644 index.js
create mode 100644 models/User.js
create mode 100644 package-lock.json
create mode 100644 package.json
C:\Users\bit\Documents\boiler-plate>git status
On branch master
Untracked files:
(use "git add <file>..." to include in what will be committed)
.gitignore
C:\Users\bit\Documents\boiler-plate>git commit -m "깃이그노어 추가"
[master 684ec62] 깃이그노어 추가
1 file changed, 1 insertion(+)
create mode 100644 .gitignore
C:\Users\bit\Documents\boiler-plate>git status
On branch master
nothing to commit, working tree clean
C:\Users\bit\Documents\boiler-plate>