apache2 ubuntu내 환경설정 및 index.html 다운로드

페이지 정보

작성자 박진희 댓글 0건 조회 6,992회 작성일 15-04-15 16:36

본문

1. 아파치를 설치한다
 우분투에서는 설정파일이 분산되어있음

2. sites-available/000-default.conf 파일 수정
#DocumentRoot /var/www/html
DocumentRoot 원하는 홈 디렉토리 위치

3.mods-available의 userdir.conf , userdir.load 파일을 mods-enable로 복사
userdir.conf내 UserDir public_html을 홈 디렉토리명으로 변경 (ex)s20123654/www면 www만 입력

4. /etc/apache2/apache2.conf
ServerName 지정
<Directory />
..
#Require all denied(알아서 수정~~!)
</Directory>

5. 권한 확인 /home/유저 디렉토리 명/www 경우, 세 폴더 다 권한이 701 or 755여야함
이게 다를 시 Forbiden이 계속 뜸




+) 인터넷 검색하면서 설정했을 때 타 Os 경우 httpd.conf라고 함.
그래서 php를 사용하려면 mime.conf 에 AddType로 지정하라고 하는 데 그거 지정하면 index.html 무지 다운 받아짐ㅜ

AddType application/x-httpd-php .php .phtml .html .htm


+) 아파치 받고 php 받아야한다고 함

댓글목록

등록된 댓글이 없습니다.