2020. 5. 6.

[Linux] apache 서버 계정 설정 정리


웹이란 계정을 만들고
계정만 할수잇게
웹페이지 수정 이런건 모두 애만

useradd web
passwd web


# 환경 설정
# 웹페이지의 시작 주소를 설정해준다.
vi  /app/apache/conf/httpd.conf
DocumentRoot "/home/web/httpd/html"



# 폴더 만들어준다.
# 권한이 있어야 접속이 된다.
mkdir -p /home/web/httpd/html
chmod -R o+rx /home/web


# 해당 폴더에 index.html 넣어준다.

cd /app/apache/htdocs
cp index.html /home/web/httpd/html


# 아파치 서버 재시작
/app/apache/bin/apachectl restart


확인



댓글 없음:

댓글 쓰기