웹마스터 팁
page_full_width" class="col-xs-12" |cond="$__Context->page_full_width">
간단팁 서버 Info!
2002.06.21 00:49
간단히 서버상태를 알아볼수있는 아파치의 기능 server-info 를 봅시다^^
1. 쉘에서 다음과 같이 입력
# vi /usr/local/apache/conf/httpd.conf
(prefix 경로가 다른분은 알아서 수정하시길^^)
그리고 vi 의 검색기능인 "/" 를 이용하여 다음부분을 찾습니다..
(검색어는 server-info)
#
# Allow remote server configuration reports, with the URL of
# http://servername/server-info (requires that mod_info.c be loaded).
# Change the ".your-domain.com" to match your domain to enable.
#
<Location /server-info>
SetHandler server-info
Order deny,allow
Deny from all
Allow from 111.111.111.111 (이부분을 없애면 localhost 이외의 모든호스트가 요청할수없음)
</Location>
그러면 다음과 같은 부분이 나옵니다. 원래 주석처리(맨앞에 # 을 붙임)되어잇지만, 주석을 풀어주시구요
Allow from 에 고정아이피면 자신의 아이피주소(다른사람의 해킹 및, 서버정보를 알아가는걸 방지하기
위해서) 유동아이피면, Allow from 을 지워줍니다. 그럼 Deny from all 에 의해 서버측에서 실행하는
serverinfo 이외에는 정보를 주지않습니다(단 서버에서 linx 브라우져나,x-window 를 지원해야 볼수있겠죠?)
그럼 세팅을 마치구요
하나더세팅합시다^^ server-info 바로 위에보면 server-status 가있습니다..
역시 같은 방법으로 수정합니다..
#
# Allow server status reports, with the URL of http://servername/server-status
# Change the ".your-domain.com" to match your domain to enable.
#
<Location /server-status>
SetHandler server-status
Order deny,allow
Deny from all
Allow from 111.111.111.111 (이부분을 없애면 localhost 이외의 모든호스트가 요청할수없음)
</Location>
그럼 다 수정한후에
데몬을 restart(재시작) 시킵니다
다음과 같이 입력합니다.
# /usr/local/apache/bin/apachectl restart
(경로는 알아서 수정^^)
그럼 재시작이 되었죠? 그럼 브라우져에서 다음과 같이 입력합니다
http://아이피주소/server-info
http://아이피주소/server-status
Ex) 대충 이런식으로 나온답니다^^
Apache Server Status for 도메인네임
Server Version: Apache/1.3.23 (Unix) PHP/4.1.0
Server Built: May 2 2002 11:06:09
Current Time: Friday, 21-Jun-2002 00:51:23 KST
Restart Time: Friday, 21-Jun-2002 00:50:56 KST
Parent Server Generation: 2 ................
이상 간단한 팁이었습니다 잘 안되는건 http://www.mcing.com 에 들어오셔서 리눅스 메뉴를 클릭해주세요^^
(홈페이지 홍보 안되나요--?)
1. 쉘에서 다음과 같이 입력
# vi /usr/local/apache/conf/httpd.conf
(prefix 경로가 다른분은 알아서 수정하시길^^)
그리고 vi 의 검색기능인 "/" 를 이용하여 다음부분을 찾습니다..
(검색어는 server-info)
#
# Allow remote server configuration reports, with the URL of
# http://servername/server-info (requires that mod_info.c be loaded).
# Change the ".your-domain.com" to match your domain to enable.
#
<Location /server-info>
SetHandler server-info
Order deny,allow
Deny from all
Allow from 111.111.111.111 (이부분을 없애면 localhost 이외의 모든호스트가 요청할수없음)
</Location>
그러면 다음과 같은 부분이 나옵니다. 원래 주석처리(맨앞에 # 을 붙임)되어잇지만, 주석을 풀어주시구요
Allow from 에 고정아이피면 자신의 아이피주소(다른사람의 해킹 및, 서버정보를 알아가는걸 방지하기
위해서) 유동아이피면, Allow from 을 지워줍니다. 그럼 Deny from all 에 의해 서버측에서 실행하는
serverinfo 이외에는 정보를 주지않습니다(단 서버에서 linx 브라우져나,x-window 를 지원해야 볼수있겠죠?)
그럼 세팅을 마치구요
하나더세팅합시다^^ server-info 바로 위에보면 server-status 가있습니다..
역시 같은 방법으로 수정합니다..
#
# Allow server status reports, with the URL of http://servername/server-status
# Change the ".your-domain.com" to match your domain to enable.
#
<Location /server-status>
SetHandler server-status
Order deny,allow
Deny from all
Allow from 111.111.111.111 (이부분을 없애면 localhost 이외의 모든호스트가 요청할수없음)
</Location>
그럼 다 수정한후에
데몬을 restart(재시작) 시킵니다
다음과 같이 입력합니다.
# /usr/local/apache/bin/apachectl restart
(경로는 알아서 수정^^)
그럼 재시작이 되었죠? 그럼 브라우져에서 다음과 같이 입력합니다
http://아이피주소/server-info
http://아이피주소/server-status
Ex) 대충 이런식으로 나온답니다^^
Apache Server Status for 도메인네임
Server Version: Apache/1.3.23 (Unix) PHP/4.1.0
Server Built: May 2 2002 11:06:09
Current Time: Friday, 21-Jun-2002 00:51:23 KST
Restart Time: Friday, 21-Jun-2002 00:50:56 KST
Parent Server Generation: 2 ................
이상 간단한 팁이었습니다 잘 안되는건 http://www.mcing.com 에 들어오셔서 리눅스 메뉴를 클릭해주세요^^
(홈페이지 홍보 안되나요--?)
댓글 4
-
김형찬
2002.06.25 13:46
-
임현
2002.06.27 11:19
포비든 에러는.. 접속 호스트를 거부해서 그렇습니다.
Deny from all
이부분을 없애주시면 됩니다^^ 그래도 안되면..
다시질문주세요 -
김인홍
2002.12.31 09:25
저기 위에 했는것은 deny 부분을 먼저 처리하도록 되어 있습니다
위 부분의 Order deny,allow 부분을
Order allow,deny 로 수정하셔서 allow부분이 먼저 처리된후에
deny부분이 (all)처리되도록 하시면 되겠습니다 -
u2em
2004.08.02 01:46
mod_info와 mod_status모듈리 올라가야 합니다..
제목 | 글쓴이 | 날짜 |
---|---|---|
상태바에 시계띄우기.. 허접제작; | 홍윤식 | 2002.07.29 |
개판 오분전 넷 오디오 최종 수정판 [6] | 미친개 | 2002.07.28 |
넷 오디오 업그레이드 0.95 | 미친개 | 2002.07.25 |
개판 오분전 넷 오디오 v 0.9 [2] | 미친개 | 2002.07.22 |
간단한 BGM 스크립트 [7] | ZipShin | 2002.07.21 |
창틀 엄는 윈도우 개판 오분전 버전.........ㅡ,.ㅡ [11] | 미친개 | 2002.07.20 |
[BGM]♬가상프레임에서 배경음악 켜고끄는 버튼 만들기 ^^; [10] | abulo | 2002.07.19 |
input 태그에 포커스 맞추기.. [5] | ZipShin | 2002.07.18 |
업그레이드 태그 연습장 [6] | 미친개 | 2002.07.18 |
16777216 -- ??? | 미친개 | 2002.07.18 |
폼의 입력 값의 공백 및 자릿 수 검사 코드 [1] | Technician | 2002.07.17 |
사용자가 입력한 키 알아내기(KeyCode) [4] | ZipShin | 2002.07.16 |
인터넷익스플로러 타이틀바에 제목나타내기 [3] | ZipShin | 2002.07.12 |
해상도가 몇인지를 구해주는 스크립트 [3] | ZipShin | 2002.07.07 |
원하는 홈페이지를 시작페이지 설정하기!!!! [3] | 오길호 | 2002.07.05 |
제목이 계속 바뀝니다. [1] | 행복=진만 | 2002.07.03 |
간단한 쿠키 &세션 확인용 | M2Vis | 2002.07.01 |
input버튼으로 뒤로가기 앞으로 가기 만들어보자~~ [1] | ZipShin | 2002.06.26 |
자바스크립트로 메타태그 리프레쉬 효과를 보여주자. [5] | ZipShin | 2002.06.26 |
순수 자바스크립트로 작성된 계산기... [2] | 용가리 | 2002.06.22 |
퍼미션은 701, 755, 777 다 줘봤는데 똑같은데요..