<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개
게시글 목록
| 번호 | 제목 |
|---|---|
| 633 | |
| 632 |
개발자
appdev.kr 제작 동영상
|
| 629 | |
| 623 | |
| 621 | |
| 618 |
디자이너
제가 컴터랑 별로 안 친해서
2
|
| 616 | |
| 614 | |
| 600 | |
| 594 |
기획자
기획을 많이 하면??!!
5
|
| 590 |
기획자
기획의 중요성...
3
|
| 568 | |
| 557 | |
| 556 | |
| 553 | |
| 550 | |
| 548 |
개발자
에러 메세지- 도와주세요
1
|
| 545 | |
| 543 |
개발자
if문 질문입니다.
1
|
| 540 |
디자이너
자유이미지 다운방법
2
|
| 535 | |
| 531 | |
| 530 | |
| 527 | |
| 523 | |
| 520 | |
| 519 | |
| 517 | |
| 515 |
개발자
팝업창 문의.
1
|
| 512 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기