질문&답변
클라우드/리눅스에 관한 질문과 답변을 주고 받는 곳입니다.
리눅스 분류

Redirect 설정 후 에러..

작성자 정보

  • 우석진 작성
  • 작성일

컨텐츠 정보

본문

<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>

공지사항


뉴스광장


  • 현재 회원수 :  60,138 명
  • 현재 강좌수 :  36,196 개
  • 현재 접속자 :  509 명