레드마인 웹루트 변경

1 개요[ | ]

레드마인 웹루트 변경

2 문제상황[ | ]

  • http://서버주소/redmine 로 접속해야 레드마인이 나타난다.
  • http://서버주소/ 로 접속하면 아파치 기본페이지가 나타난다.
  • 이렇게 된 것은 DocumentRoot인 /var/www/html에 직접 설치한 것이 아니고 그 하위폴더 /var/www/html/redmine에 설치했기 때문이다.
  • 서버주소로 접속하면 바로 레드마인이 뜨도록 변경하고 싶다.

3 방법1: index.html 리다이렉트 ★[ | ]

root@zetawiki:~# cd /var/www/html/
root@zetawiki:/var/www/html# mv index.html index.html.orig
root@zetawiki:/var/www/html# echo '<meta http-equiv="refresh" content="0;url=/redmine">' > index.html
root@zetawiki:/var/www/html# cat index.html
<meta http-equiv="refresh" content="0;url=/redmine">

4 방법2: RewriteEngine 적용[ | ]

... (생략)

5 방법3: DocumentRoot 변경[ | ]

root@zetawiki:~# vi /etc/apache2/sites-enabled/000-default.conf
... (생략)
        ServerAdmin webmaster@localhost
        #DocumentRoot /var/www/html
        DocumentRoot /var/www/html/redmine
... (생략)
root@zetawiki:~# service apache2 restart
 * Restarting web server apache2                                                    [ OK ]

6 같이 보기[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}