HOME 개발팁 리눅스 apache 웹세팅 #1

프로그램 작업하다 좋은 팁, 정보, 테스트를 기록하는 곳입니다.


웹서버 | 리눅스 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

[주소복사] https://www.goodsweb.kr/?u=D41rY0FX
SNS 알리기
핀터레스트
텔레그램로
블로그로
카카오스토리
카톡 공유

관련 블로그
로딩중


4명  IP : 3.144.♡.232
001 52.♡.144.219 전체검색 결과
(/bbs/search.php?sfl=wr_subject%7C%7Cwr_content&stx=6&sop=and&gr_id=&srows=10&onetable=service&page=2)
002 34.♡.82.65 개인정보 처리방침
(/bbs/content.php?co_id=privacy)
003 3.♡.220.120 MD5 - 개발팁
(/bbs/board.php?bo_table=tip&wr_id=222&sca=ASP)
004 18.♡.45.162 오류안내 페이지
(/bbs/download.php?bo_table=bookmark&wr_id=18&no=0)

접속자
  • 오늘 : 199
  • 어제 : 346
  • 최대 : 874
  • 전체 : 403,758

검색로봇(Robots) 최근 방문시간
  • NAVER : 5시간 전
  • GOOGLE : 19시간 전
  • BING : 1일 전
  • DAUM : 3일 전

ETH : 0x8abf3B748ab78828AE07685e4fd53d1a606f18D3



페이스북 네이버 블로그 굿스웹 쇼핑몰 네이버 카페 굿스웹 트위터 굿스웹 티스토리 Google Play