쿠키를 보낼때 등 직접도메인을 지정해서 보내야하는 경우가 있다.
이때 도메인 셋팅은c:\windows\system32\drivers\etc\hosts 파일을 메모장이나 에딧플러스 따위로열면
이런식으로 적혀있는데,
# localhost name resolution is handled within DNS itself.
# 127.0.0.1 localhost
# ::1 localhost
이와같이 주석처리되있는곳 아래정도에 모르겠음 아무라인이나상관없음.
127.0.0.1 test.test.com
이런식으로 한줄을 넣어주면된다.
그럼 localhost:8080/exproject/test.jsp 도 물론사용가능하고
test.test.com:8080/exproject/test.jsp 이렇게도 대신할수있다.
'프로그래밍 > 웹' 카테고리의 다른 글
[php][javascript] 문자열 url 주소에 a 링크 추가 코드. (0) | 2016.04.08 |
---|---|
무료 호스팅 서버에 wordpress (워드프레스) 설치하기 (0) | 2015.08.12 |
No mapping found for HTTP request with URI 해결. (0) | 2013.03.12 |
이클립스, 톰캣 out of memory 해결/ 메모리 늘리기 (0) | 2013.01.16 |
[jquery] input type text 찾기 (0) | 2012.11.20 |