2. 디폴트 페이지의 경로 확인하기
앞서 확인한 디폴트 페이지인 HTML 파일은 Nginx를 설치할 때 생성된 디렉토리 경로에 저장되어 있음
C:\nginx:\html경로 확인
→ 50x.html index.html 파일이 조회됨
index.html 파일의 내용 조회
terminal
# /c/nginx/html
$ cat index.html실행 결과
index.html
<!DOCTYPE html>
<html>
<head>
<title>Welcome to nginx!</title>
<style>
html { color-scheme: light dark; }
body { width: 35em; margin: 0 auto;
font-family: Tahoma, Verdana, Arial, sans-serif; }
</style>
</head>
<body>
<h1>Welcome to nginx!</h1>
<p>If you see this page, the nginx web server is successfully installed and
working. Further configuration is required.</p>
<p>For online documentation and support please refer to
<a href="http://nginx.org/">nginx.org</a>.<br/>
Commercial support is available at
<a href="http://nginx.com/">nginx.com</a>.</p>
<p><em>Thank you for using nginx.</em></p>
</body>
</html>→ curl localhost:80을 통해 CLI 환경에서 접근하였을 때의 응답 결과와 동일한 결과가 응답됨
Last updated on