웹서버 | 리눅스 apache 웹세팅 #1
페이지 정보
작성자 전소현 작성일20-06-02 09:50 조회923회 댓글0건관련링크
본문
User apache
group apache
chcon -R -h -t httpd_sys_content_t /home/db/
chmod -R 755
chgrp -R apache apache
기본 모듈 설치 후
아파치 웹 서버 설정
1. vi /etc/httpd/conf.d/userdir.conf
<IfModule mod_userdir.c>
UserDir disabled root
UserDir public_html
</IfModule>
<Directory "/home/*/public_html">
AllowOverride FileInfo AuthConfig Limit Indexes
Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
Require method GET POST OPTIONS
</Directory>
2. vi /etc/httpd/conf/httpd.conf
<IfModule dir_module>
DirectoryIndex index.html index.php
</IfModule>
3.사용자별 웹 디렉토리 설정
접근권한 설정
- mkdir /home/goodsweb/public_html
- chmod 755 /home/goodsweb/
- chmod 755 /home/goodsweb/public_html
4.SELinux 설정 : 웹서버가 사용자의 컨텐츠에 대한 접근을 할 수 있도록 설정
- 설정 : chcon -R -t httpd_user_content_t /home/goodsweb/public_html
- 확인 : ls -aldZ /home/goodsweb/public_html
systemctl start httpd
systemctl restart httpd
systemctl restart mariadb
vi /etc/httpd/conf/httpd.conf
vi /etc/httpd/conf.d/vhost.conf
group apache
chcon -R -h -t httpd_sys_content_t /home/db/
chmod -R 755
chgrp -R apache apache
기본 모듈 설치 후
아파치 웹 서버 설정
1. vi /etc/httpd/conf.d/userdir.conf
<IfModule mod_userdir.c>
UserDir disabled root
UserDir public_html
</IfModule>
<Directory "/home/*/public_html">
AllowOverride FileInfo AuthConfig Limit Indexes
Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
Require method GET POST OPTIONS
</Directory>
2. vi /etc/httpd/conf/httpd.conf
<IfModule dir_module>
DirectoryIndex index.html index.php
</IfModule>
3.사용자별 웹 디렉토리 설정
접근권한 설정
- mkdir /home/goodsweb/public_html
- chmod 755 /home/goodsweb/
- chmod 755 /home/goodsweb/public_html
4.SELinux 설정 : 웹서버가 사용자의 컨텐츠에 대한 접근을 할 수 있도록 설정
- 설정 : chcon -R -t httpd_user_content_t /home/goodsweb/public_html
- 확인 : ls -aldZ /home/goodsweb/public_html
systemctl start httpd
systemctl restart httpd
systemctl restart mariadb
vi /etc/httpd/conf/httpd.conf
vi /etc/httpd/conf.d/vhost.conf
[주소복사] https://www.goodsweb.kr/?u=D41rY0FX
SNS 알리기
핀터레스트
텔레그램로
블로그로
페이스북
트위터
카카오스토리
카톡 공유
관련 블로그
로딩중