내용으로 건너뛰기
GINS WIKI 긴스 위키
사용자 도구
로그인
사이트 도구
검색
도구
문서 보기
이전 판
역링크
최근 바뀜
미디어 관리자
사이트맵
로그인
>
최근 바뀜
미디어 관리자
사이트맵
현재 위치:
긴스위키 GINS wiki
»
웹 툴 & 개발
»
apache
»
httpd.conf 수정해서 할 수 있는 것
추적:
webapp:apache:http.conf-2
이 문서는 읽기 전용입니다. 원본을 볼 수는 있지만 바꿀 수는 없습니다. 문제가 있다고 생각하면 관리자에게 문의하세요.
<title>httpd.conf 수정해서 할 수 있는 것</title> ''vi /etc/httpd/conf/httpd.conf'' 수정. httpd.conf 위치는 컴파일 하면 아마, /usr/local/apache/httpd? ====== directory 브라우징 블럭 ====== 디렉토리 설정에서 Options 항목에 -Indexes 추가 <code apache> <Directory /> Options FollowSymLinks AllowOverride None Options -Indexes </Directory> </code> ======= 유저 개인마다 public_html로 웹 게시 기능 ===== 각 유저마다 www 웹을 게시할 수 있게. vhost를 설정하면, 이 기능을 쓸모 없었졌다. 설정이 뭔가 잘못한듯. <code apache> <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> </code> 이 후에 <code apache> chmod 711 /home/{userid}/public_html </code> 각 개인 폴더에 권한 설정 <code apache> <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> </code> ====== rewriteRule ===== rewrite 모듈 사용시 로그 확인을 위한 로그 정보 <code apache> RewriteLog "/var/log/httpd/rewrite.log" RewriteLogLevel 9 </code> ====== virtual host ====== <code apache> NameVirtualHost {Your IP}:80 <VirtualHost {New Domain}> ServerAdmin {Your email} DocumentRoot {www full-path} ServerName {New Domain} ErrorLog logs/{New Domain}-error_log CustomLog logs/{New Domain}-access_log common <IfModule mod_cband.c> #CBandLimit 10Ki #CBandPeriod 1D CBandSpeed 102400 20 60 CBandRemoteSpeed 600 5 10 </IfModule> <Directory "{www full-path}"> Options Indexes FollowSymLinks AllowOverride None Deny from all Allow from {some IP} </Directory> </VirtualHost> </code> ======= cband setting ===== <code apache> LoadModule cband_module /usr/lib/httpd/modules/mod_cband.so # # c-band setting # <IfModule mod_cband.c> <Location /cband-status> SetHandler cband-status Order deny,allow Deny from all Allow from {some IP} </Location> <Location /cband-status-me> SetHandler cband-status-me Order deny,allow Deny from all Allow from {some IP} </Location> </IfModule> </code> 이건 설치 법이 간단하지 않다. - cband 소스를 받아야 한다. - 기본 설치해도 apxs, cband 설치 - yum -y install httpd-devel.i386 -> 개발툴 설치 - mod-cband-0.9.7.5.tgz 압축 푼다. - mod-cband-0.9.7.5 폴더로 이동 <code bash> # http를 yum(자동설치)한 경우 # ./configure --with-apxs=/usr/sbin/apxs ./configure make make install </code> 까지 하면 자동으로 설치된다. 컴파일해서 설치하는게 싫어도 선택 여지가 없는 듯. 참조. 1번이 설치에는 유용, 2번이 세팅에 필요한 정보. -> 설치, 사용법은 따로 정리해야 할만큼 복잡하다. - http://www.starhost.co.kr/xe/?mid=hosting_tip_server&document_srl=38274&sort_index=readed_count&order_type=asc - http://sangchul.kr/4806117 - http://nicesolo.com/search/?search=apxs - http://www.linux.co.kr/home/lecture/index.php?leccode=10588 - http://faq.hostway.co.kr/xe/1254 ====== etc ===== <code apache> # 아이피와 포트 추가 ServerName {Your IP}:80 </code>
webapp/apache/http.conf-2.txt
· 마지막으로 수정됨: 2024/04/23 22:44 저자
127.0.0.1
문서 도구
문서 보기
이전 판
역링크
맨 위로