프로그램 사용/apache
apache2 2.4.7 문서 경로 수정하기
구차니
2014. 11. 24. 16:37
Ubuntu 14.10 LTS ? 같은데
기본설정상 우분투에서 아파치의 htdocs는 /var/www 이지만
이 녀석을 다른 곳에서 사용하기 위해서는 다른 파일을 수정해야 한다.
/etc/apache2/apache2.conf <<
/etc/apache2/sites-enabled/000-default
기존의 2.2.22 (10.04 LTS) 에서는 site-enabled/000-default에 설정하면 되었으나
2.4.7 부터는 설정이 바뀌어서 apache2.conf 에서
허용되는 경로 부터 바꾸어 주어야 하는 듯 하다.
아래는 index.html의 도움말. 역시 써놓은건 잘 읽어야해 -_-
The default Ubuntu document root is /var/www/html. You can make your own virtual hosts under /var/www. This is different to previous releases which provides better security out of the box.
기본설정상 우분투에서 아파치의 htdocs는 /var/www 이지만
이 녀석을 다른 곳에서 사용하기 위해서는 다른 파일을 수정해야 한다.
/etc/apache2/apache2.conf <<
/etc/apache2/sites-enabled/000-default
기존의 2.2.22 (10.04 LTS) 에서는 site-enabled/000-default에 설정하면 되었으나
2.4.7 부터는 설정이 바뀌어서 apache2.conf 에서
허용되는 경로 부터 바꾸어 주어야 하는 듯 하다.
아래는 index.html의 도움말. 역시 써놓은건 잘 읽어야해 -_-
Document Roots
By default, Ubuntu does not allow access through the web browser to any file apart of those located in/var/www, public_html directories (when enabled) and /usr/share (for web applications). If your site is using a web document root located elsewhere (such as in /srv) you may need to whitelist your document root directory in /etc/apache2/apache2.conf.