리눅스 분류
Redirect 설정 후 에러..
작성자 정보
- 우석진 작성
- 작성일
컨텐츠 정보
- 1,588 조회
- 1 댓글
- 0 추천
- 목록
본문
<VirtualHost www.test.com>
ServerAdmin webmaster@test.com
DocumentRoot /home/test/public_html
ServerName www.test.com
ErrorLog logs/test-error_log
</VirtualHost>
<VirtualHost test.com>
ServerAdmin webmaster@test.com
DocumentRoot /home/test/public_html
ServerName www.test.com
ErrorLog logs/test-error_log
Redirect / http://www.test.com/
</VirtualHost>
이렇게 redirect 설정후 아파치를 스타트 시키면 Hostname and service name not provided or found : Could not resolve host name test.com -- ignoring!
이라고 에러가 뜨는데 무슨 이유인가요??
관련자료
-
이전
-
다음
댓글 1
냐옹띠님의 댓글
- 냐옹띠
- 작성일
흠...? 설정이 너무 중복되서 그런거 아닐까요.....?
www.test.com 에서... Redirect / http://www.test.com/ 로
왜 리다이렉트 시키세요.....? 똑같은거 결론은 똑같자나요......
그리고 버철호스트도 웨 두개시죠....?
ServerAlias 로 하면 되자나요...ㅡㅡㅋ
저기 위에 있는 소스를 미테처럼...
<VirtualHost 200.200.200.200:80>
ServerAdmin webmaster@test.com
DocumentRoot /home/test/public_html
ServerName test.com
ServerAlias www.test.com
ErrorLog logs/test-error_log
Redirect / https://www.test.com => 즉 요런식으로 ㅡㅡㅋ
</VirtualHost>
www.test.com 에서... Redirect / http://www.test.com/ 로
왜 리다이렉트 시키세요.....? 똑같은거 결론은 똑같자나요......
그리고 버철호스트도 웨 두개시죠....?
ServerAlias 로 하면 되자나요...ㅡㅡㅋ
저기 위에 있는 소스를 미테처럼...
<VirtualHost 200.200.200.200:80>
ServerAdmin webmaster@test.com
DocumentRoot /home/test/public_html
ServerName test.com
ServerAlias www.test.com
ErrorLog logs/test-error_log
Redirect / https://www.test.com => 즉 요런식으로 ㅡㅡㅋ
</VirtualHost>