RadarURL

조회 수 2416 추천 수 0 댓글 0
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄

1. 사용자 계정(유저)별로 웹서버 운영하기 위해 아파치 설정 파일 httpd.conf 을 열어 UserDir 항목으로 이동한다.

2. UserDir 항목으로 이동하여 UserDir disable 로 되어 있는 부분을 주석처리한다.

3. UserDir public_html 부분의 주석을 해제해서 활성화시켜 준다.

<Directory/home/*/public_html> ~ </Directory> 태크로 되어 있는 것을 확인할 수 있는데 이 내용의 주석을 모두 해제하여 활성화시킨다.


<IfModule mod_userdir.c>
UserDir public_html
</IfModule>


Control access to UserDir directories. The following is an example
for a site where these directories are restricted to read-only.

<Directory /home/*/public_html>
AllowOverride FileInfo AuthConfig Limit
Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
<Limit GET POST OPTIONS PROPFIND>
Order allow,deny
Allow from all
</Limit>
<LimitExcept GET POST OPTIONS PROPFIND>
Order deny,allow
Deny from all
</LimitExcept>
</Directory>

4. 아파치 웹 서버를 재시작 합니다.

[root@localhost root]# /usr/local/apache/bin/apachectl restart
/usr/local/apache/bin/apachectl restart: httpd restarted


5. 루트권한이 필요한것은 여기까지 입니다. 이제는 일반 계정으로 접속하여 홈디렉토리에

웹문서를 작성해봅니다.

유저를 생성하고 비밀번호를 부여합니다.

유저 아래에 public_html 디렉토리를 생성하고 권한설정 chmod 하고 index 화일을 만듭니다.


6. 작성하고 권한 설정을 했으니 외부 웹브라우저에서 접속합니다.

http://아이피주소/~hansung 접속이 안됩니다..

http://아이피주소/~hansung/ 접속이 됩니다.

http://아이피주소/~hansung/index.html 접속이 됩니다.

http://아이피주소/~hansung 뒤에 "/"를 붙여야 합니다..

 

출처 : http://holyqt.com/xe/hompi02/33870

?

공부 게시판

공부에 도움되는 글을 올려주세요.

  1. [공지] 공부 게시판 입니다.

    Date2003.08.18 By처누 Views950294
    read more
  2. [Rocky Linux 9] /home 용량 줄이고 /root 용량 늘리기

    Date2026.04.03 Category유닉스/리눅스 ByYooN Views53
    Read More
  3. [Rocky Linux] LVM 환경에서 /root 파티션 공간 부족 해결

    Date2026.04.03 Category유닉스/리눅스 ByYooN Views40
    Read More
  4. 일반적인 Htaccess 301 리디렉션 규칙

    Date2026.04.01 Category웹서버,WAS ByYooN Views67
    Read More
  5. [Linux/Rocky] SSH Root 로그인하는 방법 (root 접속 허용)

    Date2026.04.01 Category유닉스/리눅스 ByYooN Views41
    Read More
  6. MariaDB my.cnf 설정 파일

    Date2026.03.03 Category데이터베이스 ByYooN Views89
    Read More
  7. MariaDB 설정 파일 개요와 구조

    Date2026.03.03 Category데이터베이스 ByYooN Views91
    Read More
  8. 윈도우11 비밀번호 분실시 설정 변경방법 (Windows10 포함)

    Date2025.11.06 Category윈도우즈 ByYooN Views719
    Read More
  9. 리눅스 서버 설치 중 에러 "Failed to find a suitable stage1 device"

    Date2025.10.03 Category유닉스/리눅스 ByYooN Views892
    Read More
  10. Linux 11 . Linux 설치 시 lvm 수동설정

    Date2025.10.03 Category유닉스/리눅스 ByYooN Views798
    Read More
  11. [Rocky Linux] 누구나 쉽게 따라하는 Rocky Linux 9.0 OS 다운로드 및 설치 방법~!!

    Date2025.10.03 Category유닉스/리눅스 ByYooN Views764
    Read More
  12. Linux/Rocky Linux Rocky Linux : Composer 설치

    Date2025.09.29 Category유닉스/리눅스 ByYooN Views1032
    Read More
  13. [Rocky Linux] 록키 리눅스 최신 업데이트 적용 방법

    Date2025.09.29 Category유닉스/리눅스 ByYooN Views948
    Read More
  14. rocky linux 커널 업데이트

    Date2025.09.29 Category유닉스/리눅스 ByYooN Views802
    Read More
  15. [Windows] OWASP ZAP 사용법

    Date2025.09.29 Category웹서버,WAS ByYooN Views824
    Read More
  16. [웹 취약점] 웹서버 디렉토리 리스팅 방지

    Date2025.09.29 Category웹서버,WAS ByYooN Views708
    Read More
  17. Clonezilla(클론질라) 백업파일 하드디스크로 복구 방법

    Date2025.09.28 Category유닉스/리눅스 ByYooN Views886
    Read More
  18. 클론질라 사용 방법 - OS 이미지 백업 CloneZilla

    Date2025.09.28 Category유닉스/리눅스 ByYooN Views912
    Read More
  19. [Linux / Rocky] FTP 접속 관련 설정 실습 예제

    Date2025.09.23 Category유닉스/리눅스 ByYooN Views947
    Read More
  20. Could not reliably determine the server's fully qualified domain name

    Date2025.09.23 Category유닉스/리눅스 ByYooN Views1005
    Read More
  21. [아파치] 아파치 웹서버에 .htaccess 파일 설정하는 방법

    Date2025.09.23 Category유닉스/리눅스 ByYooN Views905
    Read More
Board Pagination Prev 1 2 3 4 5 6 7 8 9 10 ... 35 Next
/ 35


즐겨찾기 (가족)

JAESOO's HOMEPAGE


장여은 홈페이지


장여희 홈페이지


장여원 홈페이지


즐겨찾기 (업무)

알리카페 홀릭

숭실대 컴퓨터 통신연구실 (서창진)

말레이시아 KL Sentral 한국인 GuestHouse


즐겨찾기 (취미)

어드민아이디

유에코 사랑회

아스가르드 좋은사람/나쁜사람

JServer.kr

제이서버 메타블로그

재수 티스토리


즐겨찾기 (강의, 커뮤니티)

재수 강의 홈페이지


한소리


VTMODE.COM


숭실대 인공지능학과


숭실대 통신연구실


베너