<VirtualHost localhost2>
ServerAdmin postmaster@localhost2
DocumentRoot "/workspace/localhost2"
ServerName localhost2
ErrorLog "logs/localhost2.error.log"
CustomLog "logs/localhost2.access.log" combined
</VirtualHost>
<VirtualHost localhost>
ServerAdmin postmaster@localhost
DocumentRoot "/xampplite/htdocs"
ServerName localhost
ErrorLog "logs/localhost.error.log"
CustomLog "logs/localhost.access.log" combined
</VirtualHost>
위와 같이 로컬에서 http://localhost2/ 와 http://localhost/ 두가지 호스트를 돌리려고 합니다.
system32 폴더에서 어디론가 들어가 host 설정하는 데에 localhost2도 추가 해뒀고요.
문제는 localhost2라고 치든 localhost라고 치든 virtualhost의 맨 첫번째 설정이 모두 적용되고 있습니다. 즉 위와 같은 경우는 localhost2가 무조건 뜨고, virtualhost 설정 두개의 순서를 바꾸면 localhost가 뜨게 됩니다.
혹시 어디를 더 살펴봐야 할지 힌트 주시면 감사하겠습니다. ^^
ServerAdmin postmaster@localhost2
DocumentRoot "/workspace/localhost2"
ServerName localhost2
ErrorLog "logs/localhost2.error.log"
CustomLog "logs/localhost2.access.log" combined
</VirtualHost>
<VirtualHost localhost>
ServerAdmin postmaster@localhost
DocumentRoot "/xampplite/htdocs"
ServerName localhost
ErrorLog "logs/localhost.error.log"
CustomLog "logs/localhost.access.log" combined
</VirtualHost>
위와 같이 로컬에서 http://localhost2/ 와 http://localhost/ 두가지 호스트를 돌리려고 합니다.
system32 폴더에서 어디론가 들어가 host 설정하는 데에 localhost2도 추가 해뒀고요.
문제는 localhost2라고 치든 localhost라고 치든 virtualhost의 맨 첫번째 설정이 모두 적용되고 있습니다. 즉 위와 같은 경우는 localhost2가 무조건 뜨고, virtualhost 설정 두개의 순서를 바꾸면 localhost가 뜨게 됩니다.
혹시 어디를 더 살펴봐야 할지 힌트 주시면 감사하겠습니다. ^^
댓글 3개
게시글 목록
| 번호 | 제목 |
|---|---|
| 209 |
개발자
질문은 아니지만..
1
|
| 202 | |
| 193 | |
| 192 | |
| 185 | |
| 177 | |
| 174 | |
| 171 | |
| 167 | |
| 162 |
개발자
latest() sql
4
|
| 160 | |
| 157 | |
| 150 |
디자이너
포토샵 색상문제 좀 봐주세요.
6
|
| 147 | |
| 145 |
개발자
헉........
1
|
| 142 |
개발자
플래쉬파일로
3
|
| 138 | |
| 133 | |
| 130 | |
| 127 |
개발자
php질문좀 하겠습니다.
2
|
| 117 | |
| 115 | |
| 111 |
디자이너
샘플같이 글씨 쓰는 방법...?
3
|
| 105 |
디자이너
글꼴 이름 좀 부탁드립니다.
5
|
| 102 | |
| 98 |
개발자
php 질문(초초보)
3
|
| 90 |
개발자
어떻게 하면...
7
|
| 77 | |
| 73 |
디자이너
그라이언트 주는 방법?
3
|
| 70 |
디자이너
투명도 주는 방법?
2
|
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기