웹서버 설치
localhost/index.html
컴퓨터에 브라우저와 서버를 동시에 설치한 상태.
1. localhost : 웹브라우저가 설치된 이 컴퓨터의 웹서버
2. index.html : 웹 브라우저가 index.html파일을 요청
3. 웹서버가 default파일에 index.html을 읽어 보내줌.
4. 다른 주소를 칠 경우, 존재하지 않는다고함.
opentutorials.org/index.html
1. 웹브라우저가 웹서버 opentutorials.org에 index.html파일을 요청한다.
2. 웹서버는 htdocs(특수 디렉토리:document root-웹서버가 문서를 찾는 최상위 디렉토리)파일에서 index.html을 읽어옴.
3. 웹서버가 웹브라우저에게 내용을 전달.
HTML
'서버의 정석' 카테고리의 다른 글
웹 어플리케이션 만들기1 (0) | 2015.07.20 |
---|