아파치 설정 질문요
작성자 정보
- 윤은국 작성
- 작성일
컨텐츠 정보
- 1,668 조회
- 0 추천
- 목록
본문
/var/www/html/aaa
위에서 aaa라는 곳에 php파일을 가져다 놓구 웹서비스를 하구 싶은데요
그래서 httpd.conf 파일에서
DocumentRoot "/var/www/html/aaa"로 그리고
#
# Possible values for the Options directive are "None", "All",
# or any combination of:
# Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
# The Options directive is both complicated and important. Please see
# http://httpd.apache.org/docs-2.0/mod/core.html#options
# for more information.
#
Options Indexes FollowSymLinks
#
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
# Options FileInfo AuthConfig Limit
#
AllowOverride None
#
# Controls who can get stuff from this server.
#
Order allow,deny
Allow from all
이렇게 수정했습니다.
그리고
/etc/init.d/httpd restart 하니깐
[root@Delta /]# /etc/init.d/httpd restart
Stopping httpd: [FAILED]
Starting httpd: Syntax error on line 265 of /etc/httpd/conf/httpd.conf:
DocumentRoot must be a directory
[FAILED]
[root@Delta /]#
이렇게 나오더군요.. 위에서 265 라인은
DocumentRoot "/var/www/html/aaa"
입니다.
제가 리눅스에 대해 처음 배우고 있는 터라...
아무것도 모릅니다.
죄송하지만..
특정 디렉트로의 index.php파일부터 시작하려구 하는데 혹시 방법이 있으면 알려주시면 감사하겠습니다.
고수님들 도와주세요..
관련자료
-
이전
-
다음