<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개
게시글 목록
| 번호 | 제목 |
|---|---|
| 1108 | |
| 1105 |
디자이너
무슨문제인지..
2
|
| 1099 | |
| 1096 | |
| 1090 | |
| 1088 | |
| 1087 | |
| 1085 | |
| 1074 |
디자이너
입이 근질근질 하네요.
10
|
| 1072 | |
| 1069 |
기획자
유사 사이트와 협력
2
|
| 1067 | |
| 1063 | |
| 1060 | |
| 1055 | |
| 1040 |
기획자
헛소리가 좋아요
14
|
| 1039 |
개발자
조언부탁드립니다.
|
| 1036 | |
| 1032 | |
| 1029 | |
| 1017 | |
| 1013 | |
| 994 |
기획자
경쟁 사이트 흡수
18
|
| 989 | |
| 984 | |
| 981 | |
| 974 |
기획자
우리 이미 기획자입니다.
6
|
| 971 |
디자이너
어플개발해주실분?
2
|
| 966 | |
| 957 |
기획자
저도 기획자 할래요
8
|
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기