가상호스트를 작성하고, ServerAlias www.my.be DocumentRoot /home/my/www/html/
사이트 enable한 다음에, www/html/index.html www/img/logo.gif 디렉토리 경로를 만들었습니다.
그런데 index.html에서 logo.gif을 불러오지 못합니다. index.html에서 img src="../img/logo.gif" 로 상대경로를 주었습니다.
DocumentRoot /home/my/www/html/ 이거면 여기에 있는 index.html 에서 ../img/logo.gif 를 불러오라고 하면 www/img/logo.gif 를 접근하지 못하죠. logo.gif를 www/html/img/logo.gif로 옮기고 경로는 ./img/logo.gif로 하세요.
단순한 거였군요. 고맙습니다. n_____n
텍스트 포맷에 대한 자세한 정보
<code>
<blockcode>
<apache>
<applescript>
<autoconf>
<awk>
<bash>
<c>
<cpp>
<css>
<diff>
<drupal5>
<drupal6>
<gdb>
<html>
<html5>
<java>
<javascript>
<ldif>
<lua>
<make>
<mysql>
<perl>
<perl6>
<php>
<pgsql>
<proftpd>
<python>
<reg>
<spec>
<ruby>
<foo>
[foo]
...
DocumentRoot /home/my/www/html/ 이거면 여기에 있는 index.html 에서 ../img/logo.gif 를 불러오라고 하면 www/img/logo.gif 를 접근하지 못하죠. logo.gif를 www/html/img/logo.gif로 옮기고 경로는 ./img/logo.gif로 하세요.
아...
단순한 거였군요. 고맙습니다. n_____n
댓글 달기