질문&답변
클라우드/리눅스에 관한 질문과 답변을 주고 받는 곳입니다.
리눅스 분류

httpd.conf파일내용 올려드립니다..

작성자 정보

  • 왕초보 작성
  • 작성일

컨텐츠 정보

본문

감사합니다..

이해를 하는데 많은 도움이 되었습니다...

제 httpd.conf파일을 제가 손대본것들만 해서 올려드리겠습니다..

먼저 section 2 main 부분입니다..

<IfModule mod_userdir.c>
    #
    # UserDir is disabled by default since it can confirm the presence
    # of a username on the system (depending on home directory
    # permissions).
    #
    #UserDir disable = 원래 이부분에 주석이 없었습니다.

    #
    # To enable requests to /~user/ to serve the user's public_html
    # directory, remove the "UserDir disable" line above, and uncomment
    # the following line instead:
    #
    UserDir public_html = 이부분에 주석이 있었습니다..

</IfModule>

<Directory /home/*/public_html>
    AllowOverride FileInfo AuthConfig Limit
    Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
    <Limit GET POST OPTIONS>
        Order allow,deny
        Allow from all
    </Limit>
    <LimitExcept GET POST OPTIONS>
        Order deny,allow
        Deny from all
    </LimitExcept>
</Directory>
위 12줄의 주석부분을 모두 제거하였습니다...

DirectoryIndex index.html index.html.var index.htm index.php index.cgi = 이부분을 추가하였습니다.

section 3 virtual host 부분입니다..

<VirtualHost 100.100.100.100>
     SeverAdmin webmaster@comt.co.kr
     DoucumentRoot /home/comt/www
     SeverName comt.co.kr:
     SeverAlias www.comt.co.kr
     ErrorLog home/comt/www_log/error_log
     CustomLog home/comt/www_log/acces_log
</VirtualHost>

named.conf 파일을 올리겠습니다...

include "/etc/rndc.key";
zone "aaa.com" {                              = 이도메인을 서버홈디렉토리(?)에 사용할 도메인
        type master;
        file "aaa.com.zone";
};

zone "comt.co.kr" {                         = 이도메인이 가상호스트로 사용할 도메인입니다..
        type master;
        file "comt.co.kr.zone";
};

/var/named/aaa.com.zone과 comt.co.kr.zone파일을 보여드리겠습니다.

$TTL    86400
@       IN      SOA     ns.aaa.com. root.aaa.com.  (
                                      1997022700 ; Serial
                                      28800      ; Refresh
                                      14400      ; Retry
                                      3600000    ; Expire
                                      86400 )    ; Minimum
                 IN      NS      100.100.100.100.
;
                    IN      A       100.100.100.100
www           IN      A       100.100.100.100
bbs              IN      A       100.100.100.100
ftp               IN      A       100.100.100.100

comt.co.kr.zone 파일입니다..

$TTL    86400
@       IN      SOA     ns.aaa.com. root.comt.co.kr.  (
                                      1997022700 ; Serial
                                      28800      ; Refresh
                                      14400      ; Retry
                                      3600000    ; Expire
                                      86400 )    ; Minimum
                        IN      NS      100.100.100.100.
;
                        IN      A       100.100.100.100
www                IN      A      100.100.100.100

이것도 필요할지 몰라서 올려드립니다..

/etc/resolv.conf 파일입니다..

search aaa.com
nameserver 164.124.101.2
nameserver 100.100.100.100

가상호스트부분에서 주석만 제거하면 아파치가 죽습니다..

사용자계정도 퍼미션 에러가 납니다..

감사합니다....

 

관련자료

댓글 0
등록된 댓글이 없습니다.

공지사항


뉴스광장


  • 현재 회원수 :  60,375 명
  • 현재 강좌수 :  37,050 개
  • 현재 접속자 :  338 명