검색이 쉽게 하기위해 제목을 좀 이상하게 달았습니다 .
일단 문제는 http://domain.com/~user 와 http://domain.com/~user/ 의 차이는 틸드문자의 차이겠죠.
httpd.conf에서 servername이 주석처리 되어있다면 아파치는 도메인을 재조합해서 ("/")를 붙여주지를 못합니다.
서버네임을 적어주고 아파치를재시작후에 http://domain.com/~user 로접속을 하면 http://domain.com/~user/
페이지로 이동하는것을 볼수있을겁니다.
좀더 자세한것은 아래에 링크된 문서의 9번을 참고하시면 됩니다.
http://httpd.apache.org/docs/misc/FAQ-E.html


FAQ내용은 아래와 같습니다.
--------------------------------------------------------------------
Why does accessing directories only work when I include the trailing "/"
(e.g., http://foo.domain.com/~user/) but not when I omit it(e.g., http://foo.domain.com/~user)?
When you access a directory without a trailing "/", Apache needs to send what is called a redirect to the
client to tell it to add the trailing slash. If it did not do so, relative URLs would not work properly. When it sends the redirect,


it needs to know the name of the server so that it can include it in the redirect.
There are two ways for Apache to find this out;either it can guess, or you can tell it. If your DNS is
configured correctly, it can normally guess without any problems.
If it is not, however, then you need to tell it. Add a ServerName directive to the config file to tell it what the domain name of the server is.
-------------------------------------------------------------------

또한 servername지시자에대한 설명은 아래링크를 참고하세요.
http://httpd.apache.org/docs/mod/core.html#servername

+ Recent posts