묻고답하기
page_full_width" class="col-xs-12" |cond="$__Context->page_full_width">
윈도우에서 아파치 구동시 rewrite관련 질문입니다.
2005.12.04 15:42
지금 저는 RWAPM을 이용해 태터 1.0b1을 설치해 보려고 합니다만, 다 좋은데, 설치과정 3단계에서 Rewrite엔진을 사용할수 없다면서 걸려버립니다.
3단계 : 설치 요구 사항을 확인하고 있습니다.
환경
운영체제:
웹서버: X-Server/Korea Rwapm
X-Server/Korea Rwapm Server at localhost Port 80
PHP 버전: 5.0.5
MySQL 버전: 5.0.15-nt-max
PHP
OK
MySQL
Character Set: OK
Collation: OK
테이블 생성 권한: OK
데이터베이스 테이블
OK
파일 시스템 권한
웹 설정 파일: OK (경고: "C:/RWAPM/www/.htaccess" 파일을 덮어 쓰게 됩니다)
설정 파일: OK
첨부 디렉토리: OK
캐시 디렉토리: OK
스킨 디렉토리: OK
Apache Rewrite Engine
Rewrite를 사용할 수 없습니다.
일단 Apache에서 mod_rewrite.so를 로딩시켰습니다만, 그래도 되질 않군요.
이쪽 관련된 페이지들을 찾아봤지만 다들 리눅스쪽이라서.. 난감하더군요 -_-;
다음은 httpd.conf파일 내용입니다.
##########################################################
##########################################################
#
# RWAPM-3.1.0 (2005.10.28 버전)
# 토토루 (http://kldp.net/projects/rwapm/).(http://www.rwapm.server.ne.kr)
#
##########################################################
##########################################################
ServerRoot "/RWAPM/RTM20040531"
PidFile logs/httpd.pid
Timeout 300
KeepAlive On
MaxKeepAliveRequests 100
KeepAliveTimeout 15
# WinNT MPM 메모리
ThreadsPerChild 250
MaxRequestsPerChild 0
# 포트번호
Listen 80
# 로드 모듈
LoadModule access_module modules/mod_access.so
LoadModule actions_module modules/mod_actions.so
LoadModule alias_module modules/mod_alias.so
LoadModule asis_module modules/mod_asis.so
LoadModule auth_module modules/mod_auth.so
#LoadModule auth_anon_module modules/mod_auth_anon.so
#LoadModule auth_dbm_module modules/mod_auth_dbm.so
#LoadModule auth_digest_module modules/mod_auth_digest.so
#LoadModule autoindex_module modules/mod_autoindex.so
LoadModule autoindex_color_module modules/mod_autoindex_color.so
#LoadModule cern_meta_module modules/mod_cern_meta.so
LoadModule cgi_module modules/mod_cgi.so
#LoadModule dav_module modules/mod_dav.so
#LoadModule dav_fs_module modules/mod_dav_fs.so
LoadModule dir_module modules/mod_dir.so
LoadModule env_module modules/mod_env.so
LoadModule expires_module modules/mod_expires.so
#LoadModule file_cache_module modules/mod_file_cache.so
LoadModule headers_module modules/mod_headers.so
LoadModule imap_module modules/mod_imap.so
LoadModule include_module modules/mod_include.so
LoadModule deflate_module modules/mod_deflate.so
#LoadModule info_module modules/mod_info.so
LoadModule isapi_module modules/mod_isapi.so
LoadModule log_config_module modules/mod_log_config.so
LoadModule mime_module modules/mod_mime.so
#LoadModule mime_magic_module modules/mod_mime_magic.so
#LoadModule proxy_module modules/mod_proxy.so
#LoadModule proxy_connect_module modules/mod_proxy_connect.so
#LoadModule proxy_http_module modules/mod_proxy_http.so
#LoadModule proxy_ftp_module modules/mod_proxy_ftp.so
LoadModule negotiation_module modules/mod_negotiation.so
LoadModule rewrite_module modules/mod_rewrite.so
LoadModule setenvif_module modules/mod_setenvif.so
#LoadModule speling_module modules/mod_speling.so
#LoadModule status_module modules/mod_status.so
LoadModule unique_id_module modules/mod_unique_id.so
LoadModule userdir_module modules/mod_userdir.so
#LoadModule usertrack_module modules/mod_usertrack.so
#LoadModule vhost_alias_module modules/mod_vhost_alias.so
LoadModule bw_module modules/mod_bw.so
# 대역폭 제한
# 1024 50000이란 1024kb이상의 파일에 대하여 50000(50kb)의 대역폭으로 제한하라는뜻이다.
#즉 1mb이상의 파일을 다운로드할경우 다운로드 속도를 10kb로 제한한다는뜻.
#사용자에 맞게 적절히 조절해서 사용하세요.
BandWidthModule On
LargeFileLimit * 1024 50000
# SSL로드파일,모듈부분.SSL사용안할시 아래 3줄 # 처리하세요.
LoadFile bin/libeay32.dll
LoadFile bin/ssleay32.dll
LoadModule ssl_module modules/mod_ssl.so
# SSL 버처설정.사용안할시 아래3줄 # 처리하세요.
Include conf/ssl.conf
# 보안설정 security_module
LoadModule security_module modules/mod_security.so
Include conf/security.conf
# php 로드 모듈
LoadFile bin/php5ts.dll
LoadModule php5_module bin/php5apache2.dll
PHPIniDir bin
# 압축전송
# 필터를 추가한다
SetOutputFilter DEFLATE
# Netscape 4.x에 문제가 있다...
BrowserMatch ^Mozilla/4 gzip-only-text/html
# Netscape 4.06-4.08에 더 문제가 있다
BrowserMatch ^Mozilla/4.0[678] no-gzip
# MSIE은 Netscape라고 자신을 알리지만, 문제가 없다
# BrowserMatch bMSIE !no-gzip !gzip-only-text/html
# 주의: 아파치 2.0.48까지 mod_setenvif의 버그때문에
# 위의 정규표현식은 동작하지 않는다. 원하는 효과를
# 얻기위해 다음과 같이 수정하여 사용한다:
BrowserMatch bMSI[E] !no-gzip !gzip-only-text/html
# 이미지를 압축하지 않는다
SetEnvIfNoCase Request_URI .(?:gif|jpe?g|png|bmp)$ no-gzip dont-vary
# 프록시가 잘못된 내용을 전달하지않도록 한다
Header append Vary User-Agent env=!dont-vary
# 보안, Allow from all 이 아닌 디렉토리는 접근 차단.
Options FollowSymLinks
AllowOverride None
Order allow,deny
Deny from all
# 서버 관리자 메일주소
ServerAdmin local@local
# 도메인 주소
ServerName localhost
UseCanonicalName Off
# 홈 디렉터리
DocumentRoot "/RWAPM/www"
Options Includes ExecCGI
AddHandler cgi-script .cgi .pl
AllowOverride None
Order allow,deny
Allow from all
# 유저 디렉터리
UserDir "C:/RWAPM/user/*/www"
Options Includes ExecCGI
AddHandler cgi-script .cgi .pl
AllowOverride None
Order allow,deny
Allow from all
# 디렉터리 첫 파일명
DirectoryIndex index.html index.htm index.php index.php3 index.cgi index.pl index.html.var
# 엑세스 파일
AccessFileName .htaccess
# 접근금지
Order allow,deny
Deny from all
TypesConfig conf/mime.types
# 만기헤더를 사용한다
ExpiresActive On
# 클라이언트 캐쉬의 image 그림은 한 달후에 만기한다
ExpiresByType image/gif A2592000
ExpiresByType image/jpeg A2592000
ExpiresByType image/png A2592000
ExpiresByType image/bmp A2592000
# p3p 규약
Header add P3P "CP='CAO PSA CONi OTR OUR DEM ONL'"
DefaultType text/plain
MIMEMagicFile conf/magic
HostnameLookups Off
# 로그파일
LogLevel error
LogFormat "%h %l %u %t "%!414r" %>s %b "%{Referer}i" "%{User-Agent}i" (%{ratio}n)" combined
LogFormat "%h %l %u %t "%r" %>s %b" common
LogFormat "%{Referer}i -> %U" referer
LogFormat "%{User-agent}i" agent
ErrorLog logs/error.log
CustomLog logs/access.log combined env=!nolog
ServerTokens Full
ServerSignature On
Alias /icons/ "/RWAPM/RTM20040531/icons/"
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
# phpmyadmin 알리아스
Alias /mysql "/RWAPM/phpMyAdmin/"
Options FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
# 웹로그 알리아스
Alias /weblog "/RWAPM/weblog/tmp/"
Options MultiViews
AllowOverride None
Order allow,deny
Allow from all
IndexOptions FancyIndexing VersionSort
AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip
AddIconByType (TXT,/icons/text.gif) text/*
AddIconByType (IMG,/icons/image2.gif) image/*
AddIconByType (SND,/icons/sound2.gif) audio/*
AddIconByType (VID,/icons/movie.gif) video/*
AddIcon /icons/binary.gif .bin .exe
AddIcon /icons/binhex.gif .hqx
AddIcon /icons/tar.gif .tar
AddIcon /icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv
AddIcon /icons/compressed.gif .Z .z .tgz .gz .zip
AddIcon /icons/a.gif .ps .ai .eps
AddIcon /icons/layout.gif .html .shtml .htm .pdf
AddIcon /icons/text.gif .txt
AddIcon /icons/c.gif .c
AddIcon /icons/p.gif .pl .py
AddIcon /icons/f.gif .for
AddIcon /icons/dvi.gif .dvi
AddIcon /icons/uuencoded.gif .uu
AddIcon /icons/script.gif .conf .sh .shar .csh .ksh .tcl
AddIcon /icons/tex.gif .tex
AddIcon /icons/bomb.gif core
AddIcon /icons/back.gif ..
AddIcon /icons/hand.right.gif README
AddIcon /icons/folder.gif ^^DIRECTORY^^
AddIcon /icons/blank.gif ^^BLANKICON^^
DefaultIcon /icons/unknown.gif
ReadmeName README.html
HeaderName HEADER.html
IndexIgnore .??* *~ *# HEADER* README* RCS CVS *,v *,t
AddEncoding x-compress Z
AddEncoding x-gzip gz tgz
AddLanguage ca .ca
AddLanguage cs .cz .cs
AddLanguage da .dk
AddLanguage de .de
AddLanguage el .el
AddLanguage en .en
AddLanguage eo .eo
AddLanguage es .es
AddLanguage et .et
AddLanguage fr .fr
AddLanguage he .he
AddLanguage hr .hr
AddLanguage it .it
AddLanguage ja .ja
AddLanguage ko .ko
AddLanguage ltz .ltz
AddLanguage nl .nl
AddLanguage nn .nn
AddLanguage no .no
AddLanguage pl .po
AddLanguage pt .pt
AddLanguage pt-BR .pt-br
AddLanguage ru .ru
AddLanguage sv .sv
AddLanguage zh-CN .zh-cn
AddLanguage zh-TW .zh-tw
LanguagePriority ko en ca cs da de el eo es et fr he hr it ja ltz nl nn no pl pt pt-BR ru sv zh-CN zh-TW
ForceLanguagePriority Prefer Fallback
AddCharset ISO-8859-1 .iso8859-1 .latin1
AddCharset ISO-8859-2 .iso8859-2 .latin2 .cen
AddCharset ISO-8859-3 .iso8859-3 .latin3
AddCharset ISO-8859-4 .iso8859-4 .latin4
AddCharset ISO-8859-5 .iso8859-5 .latin5 .cyr .iso-ru
AddCharset ISO-8859-6 .iso8859-6 .latin6 .arb
AddCharset ISO-8859-7 .iso8859-7 .latin7 .grk
AddCharset ISO-8859-8 .iso8859-8 .latin8 .heb
AddCharset ISO-8859-9 .iso8859-9 .latin9 .trk
AddCharset ISO-2022-JP .iso2022-jp .jis
AddCharset ISO-2022-KR .iso2022-kr .kis
AddCharset ISO-2022-CN .iso2022-cn .cis
AddCharset Big5 .Big5 .big5
AddCharset WINDOWS-1251 .cp-1251 .win-1251
AddCharset CP866 .cp866
AddCharset KOI8-r .koi8-r .koi8-ru
AddCharset KOI8-ru .koi8-uk .ua
AddCharset ISO-10646-UCS-2 .ucs2
AddCharset ISO-10646-UCS-4 .ucs4
AddCharset UTF-8 .utf8
AddCharset GB2312 .gb2312 .gb
AddCharset utf-7 .utf7
AddCharset utf-8 .utf8
AddCharset big5 .big5 .b5
AddCharset EUC-TW .euc-tw
AddCharset EUC-JP .euc-jp
AddCharset EUC-KR .euc-kr
AddCharset shift_jis .sjis
AddType application/x-compress .Z
AddType application/x-gzip .gz .tgz
AddType application/x-httpd-php .php
AddType application/x-httpd-php .php3
AddType application/x-httpd-php .phtml
AddType application/x-httpd-php .inc
AddType application/x-httpd-php .html
AddType application/x-httpd-php .htm
AddType application/x-httpd-php-source .phps
AddType image/x-icon .ico
AddHandler type-map var
# 에러 메시지를 다국어로 나타나게함.
Alias /error/include/ "/RWAPM/RTM20040531/error/include/"
Alias /error/ "/RWAPM/RTM20040531/error/"
AllowOverride None
AddType text/html .html
Options IncludesNoExec
AddOutputFilter Includes html
AddHandler type-map var
Order allow,deny
Allow from all
LanguagePriority en cs de es fr it ja ko nl pl pt-br ro sv tr
ForceLanguagePriority Prefer Fallback
ErrorDocument 400 /error/HTTP_BAD_REQUEST.html.var
ErrorDocument 401 /error/HTTP_UNAUTHORIZED.html.var
ErrorDocument 403 /error/HTTP_FORBIDDEN.html.var
ErrorDocument 404 /error/HTTP_NOT_FOUND.html.var
ErrorDocument 405 /error/HTTP_METHOD_NOT_ALLOWED.html.var
ErrorDocument 408 /error/HTTP_REQUEST_TIME_OUT.html.var
ErrorDocument 410 /error/HTTP_GONE.html.var
ErrorDocument 411 /error/HTTP_LENGTH_REQUIRED.html.var
ErrorDocument 412 /error/HTTP_PRECONDITION_FAILED.html.var
ErrorDocument 413 /error/HTTP_REQUEST_ENTITY_TOO_LARGE.html.var
ErrorDocument 414 /error/HTTP_REQUEST_URI_TOO_LARGE.html.var
ErrorDocument 415 /error/HTTP_UNSUPPORTED_MEDIA_TYPE.html.var
ErrorDocument 500 /error/HTTP_INTERNAL_SERVER_ERROR.html.var
ErrorDocument 501 /error/HTTP_NOT_IMPLEMENTED.html.var
ErrorDocument 502 /error/HTTP_BAD_GATEWAY.html.var
ErrorDocument 503 /error/HTTP_SERVICE_UNAVAILABLE.html.var
ErrorDocument 506 /error/HTTP_VARIANT_ALSO_VARIES.html.var
BrowserMatch "Mozilla/2" nokeepalive
BrowserMatch "MSIE 4.0b2;" nokeepalive downgrade-1.0 force-response-1.0
BrowserMatch "RealPlayer 4.0" force-response-1.0
BrowserMatch "Java/1.0" force-response-1.0
BrowserMatch "JDK/1.0" force-response-1.0
BrowserMatch "Microsoft Data Access Internet Publishing Provider" redirect-carefully
BrowserMatch "^WebDrive" redirect-carefully
BrowserMatch "^WebDAVFS/1.[012]" redirect-carefully
BrowserMatch "^gnome-vfs" redirect-carefully
# CodeRed/Nimda 로그 남기지 않음
SetEnvIfNoCase Request_Uri "^(.*)/co_count(.*)$" nolog
SetEnvIfNoCase Request_Uri "^(.*)default.ida(.*)$" nolog
SetEnvIfNoCase Request_Uri "^(.*)null.ida(.*)$" nolog
SetEnvIfNoCase Request_Uri "^(.*)root.exe(.*)$" nolog
SetEnvIfNoCase Request_Uri "^(.*)cmd.exe(.*)$" nolog
SetEnvIfNoCase Request_Uri "^(.*)cmd32.exe(.*)$" nolog
SetEnvIfNoCase Request_Uri "^(.*)admin.dll(.*)$" nolog
SetEnvIfNoCase Request_Uri "^(.*)msadcs.dll(.*)$" nolog
SetEnvIfNoCase Request_Uri "^(.*)nsiislog.dll(.*)$" nolog
SetEnvIfNoCase Request_Uri "^(.*)biztalkhttpreceive.dll(.*)$" nolog
SetEnvIfNoCase Request_Uri "^(.*)/_vti_bin(.*)$" nolog
SetEnvIfNoCase Request_Uri "^(.*)/iisadmpwd(.*)$" nolog
SetEnvIfNoCase Request_Uri "^(.*)/scripts(.*)$" nolog
SetEnvIfNoCase Request_Uri "^(.*)/advworks(.*)$" nolog
SetEnvIfNoCase Request_Uri "^(.*)/adsamples(.*)$" nolog
SetEnvIfNoCase Request_Uri "^(.*)/msadc(.*)$" nolog
SetEnvIfNoCase Request_Uri "^(.*)/MSOffice(.*)$" nolog
SetEnvIfNoCase Request_Uri "^(.*)/_mem_bin(.*)$" nolog
SetEnvIfNoCase Request_Uri "^(.*)/c/winnt(.*)$" nolog
SetEnvIfNoCase Request_Uri "^(.*)/d/winnt(.*)$" nolog
SetEnvIfNoCase Request_Uri "^(.*)/iisprotect/admin(.*)$" nolog
SetEnvIfNoCase Request_Uri "^(.*)/ADMIN%24(.*)$" nolog
SetEnvIfNoCase Referer "^(.*)default.ida(.*)$" nolog
SetEnvIfNoCase Referer "^(.*)null.ida(.*)$" nolog
SetEnvIfNoCase Referer "^(.*)root.exe(.*)$" nolog
SetEnvIfNoCase Referer "^(.*)cmd.exe(.*)$" nolog
SetEnvIfNoCase Referer "^(.*)cmd32.exe(.*)$" nolog
SetEnvIfNoCase Referer "^(.*)admin.dll(.*)$" nolog
SetEnvIfNoCase Referer "^(.*)msadcs.dll(.*)$" nolog
SetEnvIfNoCase Referer "^(.*)nsiislog.dll(.*)$" nolog
SetEnvIfNoCase Referer "^(.*)biztalkhttpreceive.dll(.*)$" nolog
# CodeRed/Nimda/등..차단/리다이렉트시켜 MS 홈으로 이동.
RedirectMatch Permanent "^(.*)default.ida(.*)$" http://www.microsoft.com
RedirectMatch Permanent "^(.*)null.ida(.*)$" http://www.microsoft.com
RedirectMatch Permanent "^(.*)root.exe(.*)$" http://www.microsoft.com
RedirectMatch Permanent "^(.*)cmd.exe(.*)$" http://www.microsoft.com
RedirectMatch Permanent "^(.*)cmd32.exe(.*)$" http://www.microsoft.com
RedirectMatch Permanent "^(.*)admin.dll(.*)$" http://www.microsoft.com
RedirectMatch Permanent "^(.*)msadcs.dll(.*)$" http://www.microsoft.com
RedirectMatch Permanent "^(.*)nsiislog.dll(.*)$" http://www.microsoft.com
RedirectMatch Permanent "^(.*)biztalkhttpreceive.dll(.*)$" http://www.microsoft.com
RedirectMatch Permanent "^(.*)/_vti_bin(.*)$" http://www.microsoft.com
RedirectMatch Permanent "^(.*)/iisadmpwd(.*)$" http://www.microsoft.com
RedirectMatch Permanent "^(.*)/advworks(.*)$" http://www.microsoft.com
RedirectMatch Permanent "^(.*)/adsamples(.*)$" http://www.microsoft.com
RedirectMatch Permanent "^(.*)/msadc(.*)$" http://www.microsoft.com
RedirectMatch Permanent "^(.*)/MSOffice(.*)$" http://www.microsoft.com
RedirectMatch Permanent "^(.*)/_mem_bin(.*)$" http://www.microsoft.com
RedirectMatch Permanent "^(.*)/c/winnt(.*)$" http://www.microsoft.com
RedirectMatch Permanent "^(.*)/d/winnt(.*)$" http://www.microsoft.com
RedirectMatch Permanent "^(.*)/iisprotect/admin(.*)$" http://www.microsoft.com
RedirectMatch Permanent "^(.*)/ADMIN%24(.*)$" http://www.microsoft.com
# 로컬 호스트 접속일때 로그 남기지 않음
#SetEnvIfNoCase Remote_Addr "^127.0.0.1$" nolog
# 이미지 파일 자바스크립트 파일등.. 남기지 않음.
SetEnvIfNoCase Request_Uri ".(bmp|gif|jpg|jpeg|png|css|js|java)$" nolog
# 버처 드렉터리
#Include conf/virtualHost.conf
3단계 : 설치 요구 사항을 확인하고 있습니다.
환경
운영체제:
웹서버: X-Server/Korea Rwapm
X-Server/Korea Rwapm Server at localhost Port 80
PHP 버전: 5.0.5
MySQL 버전: 5.0.15-nt-max
PHP
OK
MySQL
Character Set: OK
Collation: OK
테이블 생성 권한: OK
데이터베이스 테이블
OK
파일 시스템 권한
웹 설정 파일: OK (경고: "C:/RWAPM/www/.htaccess" 파일을 덮어 쓰게 됩니다)
설정 파일: OK
첨부 디렉토리: OK
캐시 디렉토리: OK
스킨 디렉토리: OK
Apache Rewrite Engine
Rewrite를 사용할 수 없습니다.
일단 Apache에서 mod_rewrite.so를 로딩시켰습니다만, 그래도 되질 않군요.
이쪽 관련된 페이지들을 찾아봤지만 다들 리눅스쪽이라서.. 난감하더군요 -_-;
다음은 httpd.conf파일 내용입니다.
##########################################################
##########################################################
#
# RWAPM-3.1.0 (2005.10.28 버전)
# 토토루 (http://kldp.net/projects/rwapm/).(http://www.rwapm.server.ne.kr)
#
##########################################################
##########################################################
ServerRoot "/RWAPM/RTM20040531"
PidFile logs/httpd.pid
Timeout 300
KeepAlive On
MaxKeepAliveRequests 100
KeepAliveTimeout 15
# WinNT MPM 메모리
ThreadsPerChild 250
MaxRequestsPerChild 0
# 포트번호
Listen 80
# 로드 모듈
LoadModule access_module modules/mod_access.so
LoadModule actions_module modules/mod_actions.so
LoadModule alias_module modules/mod_alias.so
LoadModule asis_module modules/mod_asis.so
LoadModule auth_module modules/mod_auth.so
#LoadModule auth_anon_module modules/mod_auth_anon.so
#LoadModule auth_dbm_module modules/mod_auth_dbm.so
#LoadModule auth_digest_module modules/mod_auth_digest.so
#LoadModule autoindex_module modules/mod_autoindex.so
LoadModule autoindex_color_module modules/mod_autoindex_color.so
#LoadModule cern_meta_module modules/mod_cern_meta.so
LoadModule cgi_module modules/mod_cgi.so
#LoadModule dav_module modules/mod_dav.so
#LoadModule dav_fs_module modules/mod_dav_fs.so
LoadModule dir_module modules/mod_dir.so
LoadModule env_module modules/mod_env.so
LoadModule expires_module modules/mod_expires.so
#LoadModule file_cache_module modules/mod_file_cache.so
LoadModule headers_module modules/mod_headers.so
LoadModule imap_module modules/mod_imap.so
LoadModule include_module modules/mod_include.so
LoadModule deflate_module modules/mod_deflate.so
#LoadModule info_module modules/mod_info.so
LoadModule isapi_module modules/mod_isapi.so
LoadModule log_config_module modules/mod_log_config.so
LoadModule mime_module modules/mod_mime.so
#LoadModule mime_magic_module modules/mod_mime_magic.so
#LoadModule proxy_module modules/mod_proxy.so
#LoadModule proxy_connect_module modules/mod_proxy_connect.so
#LoadModule proxy_http_module modules/mod_proxy_http.so
#LoadModule proxy_ftp_module modules/mod_proxy_ftp.so
LoadModule negotiation_module modules/mod_negotiation.so
LoadModule rewrite_module modules/mod_rewrite.so
LoadModule setenvif_module modules/mod_setenvif.so
#LoadModule speling_module modules/mod_speling.so
#LoadModule status_module modules/mod_status.so
LoadModule unique_id_module modules/mod_unique_id.so
LoadModule userdir_module modules/mod_userdir.so
#LoadModule usertrack_module modules/mod_usertrack.so
#LoadModule vhost_alias_module modules/mod_vhost_alias.so
LoadModule bw_module modules/mod_bw.so
# 대역폭 제한
# 1024 50000이란 1024kb이상의 파일에 대하여 50000(50kb)의 대역폭으로 제한하라는뜻이다.
#즉 1mb이상의 파일을 다운로드할경우 다운로드 속도를 10kb로 제한한다는뜻.
#사용자에 맞게 적절히 조절해서 사용하세요.
BandWidthModule On
LargeFileLimit * 1024 50000
# SSL로드파일,모듈부분.SSL사용안할시 아래 3줄 # 처리하세요.
LoadFile bin/libeay32.dll
LoadFile bin/ssleay32.dll
LoadModule ssl_module modules/mod_ssl.so
# SSL 버처설정.사용안할시 아래3줄 # 처리하세요.
Include conf/ssl.conf
# 보안설정 security_module
LoadModule security_module modules/mod_security.so
Include conf/security.conf
# php 로드 모듈
LoadFile bin/php5ts.dll
LoadModule php5_module bin/php5apache2.dll
PHPIniDir bin
# 압축전송
# 필터를 추가한다
SetOutputFilter DEFLATE
# Netscape 4.x에 문제가 있다...
BrowserMatch ^Mozilla/4 gzip-only-text/html
# Netscape 4.06-4.08에 더 문제가 있다
BrowserMatch ^Mozilla/4.0[678] no-gzip
# MSIE은 Netscape라고 자신을 알리지만, 문제가 없다
# BrowserMatch bMSIE !no-gzip !gzip-only-text/html
# 주의: 아파치 2.0.48까지 mod_setenvif의 버그때문에
# 위의 정규표현식은 동작하지 않는다. 원하는 효과를
# 얻기위해 다음과 같이 수정하여 사용한다:
BrowserMatch bMSI[E] !no-gzip !gzip-only-text/html
# 이미지를 압축하지 않는다
SetEnvIfNoCase Request_URI .(?:gif|jpe?g|png|bmp)$ no-gzip dont-vary
# 프록시가 잘못된 내용을 전달하지않도록 한다
Header append Vary User-Agent env=!dont-vary
# 보안, Allow from all 이 아닌 디렉토리는 접근 차단.
Options FollowSymLinks
AllowOverride None
Order allow,deny
Deny from all
# 서버 관리자 메일주소
ServerAdmin local@local
# 도메인 주소
ServerName localhost
UseCanonicalName Off
# 홈 디렉터리
DocumentRoot "/RWAPM/www"
Options Includes ExecCGI
AddHandler cgi-script .cgi .pl
AllowOverride None
Order allow,deny
Allow from all
# 유저 디렉터리
UserDir "C:/RWAPM/user/*/www"
Options Includes ExecCGI
AddHandler cgi-script .cgi .pl
AllowOverride None
Order allow,deny
Allow from all
# 디렉터리 첫 파일명
DirectoryIndex index.html index.htm index.php index.php3 index.cgi index.pl index.html.var
# 엑세스 파일
AccessFileName .htaccess
# 접근금지
Order allow,deny
Deny from all
TypesConfig conf/mime.types
# 만기헤더를 사용한다
ExpiresActive On
# 클라이언트 캐쉬의 image 그림은 한 달후에 만기한다
ExpiresByType image/gif A2592000
ExpiresByType image/jpeg A2592000
ExpiresByType image/png A2592000
ExpiresByType image/bmp A2592000
# p3p 규약
Header add P3P "CP='CAO PSA CONi OTR OUR DEM ONL'"
DefaultType text/plain
MIMEMagicFile conf/magic
HostnameLookups Off
# 로그파일
LogLevel error
LogFormat "%h %l %u %t "%!414r" %>s %b "%{Referer}i" "%{User-Agent}i" (%{ratio}n)" combined
LogFormat "%h %l %u %t "%r" %>s %b" common
LogFormat "%{Referer}i -> %U" referer
LogFormat "%{User-agent}i" agent
ErrorLog logs/error.log
CustomLog logs/access.log combined env=!nolog
ServerTokens Full
ServerSignature On
Alias /icons/ "/RWAPM/RTM20040531/icons/"
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
# phpmyadmin 알리아스
Alias /mysql "/RWAPM/phpMyAdmin/"
Options FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
# 웹로그 알리아스
Alias /weblog "/RWAPM/weblog/tmp/"
Options MultiViews
AllowOverride None
Order allow,deny
Allow from all
IndexOptions FancyIndexing VersionSort
AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip
AddIconByType (TXT,/icons/text.gif) text/*
AddIconByType (IMG,/icons/image2.gif) image/*
AddIconByType (SND,/icons/sound2.gif) audio/*
AddIconByType (VID,/icons/movie.gif) video/*
AddIcon /icons/binary.gif .bin .exe
AddIcon /icons/binhex.gif .hqx
AddIcon /icons/tar.gif .tar
AddIcon /icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv
AddIcon /icons/compressed.gif .Z .z .tgz .gz .zip
AddIcon /icons/a.gif .ps .ai .eps
AddIcon /icons/layout.gif .html .shtml .htm .pdf
AddIcon /icons/text.gif .txt
AddIcon /icons/c.gif .c
AddIcon /icons/p.gif .pl .py
AddIcon /icons/f.gif .for
AddIcon /icons/dvi.gif .dvi
AddIcon /icons/uuencoded.gif .uu
AddIcon /icons/script.gif .conf .sh .shar .csh .ksh .tcl
AddIcon /icons/tex.gif .tex
AddIcon /icons/bomb.gif core
AddIcon /icons/back.gif ..
AddIcon /icons/hand.right.gif README
AddIcon /icons/folder.gif ^^DIRECTORY^^
AddIcon /icons/blank.gif ^^BLANKICON^^
DefaultIcon /icons/unknown.gif
ReadmeName README.html
HeaderName HEADER.html
IndexIgnore .??* *~ *# HEADER* README* RCS CVS *,v *,t
AddEncoding x-compress Z
AddEncoding x-gzip gz tgz
AddLanguage ca .ca
AddLanguage cs .cz .cs
AddLanguage da .dk
AddLanguage de .de
AddLanguage el .el
AddLanguage en .en
AddLanguage eo .eo
AddLanguage es .es
AddLanguage et .et
AddLanguage fr .fr
AddLanguage he .he
AddLanguage hr .hr
AddLanguage it .it
AddLanguage ja .ja
AddLanguage ko .ko
AddLanguage ltz .ltz
AddLanguage nl .nl
AddLanguage nn .nn
AddLanguage no .no
AddLanguage pl .po
AddLanguage pt .pt
AddLanguage pt-BR .pt-br
AddLanguage ru .ru
AddLanguage sv .sv
AddLanguage zh-CN .zh-cn
AddLanguage zh-TW .zh-tw
LanguagePriority ko en ca cs da de el eo es et fr he hr it ja ltz nl nn no pl pt pt-BR ru sv zh-CN zh-TW
ForceLanguagePriority Prefer Fallback
AddCharset ISO-8859-1 .iso8859-1 .latin1
AddCharset ISO-8859-2 .iso8859-2 .latin2 .cen
AddCharset ISO-8859-3 .iso8859-3 .latin3
AddCharset ISO-8859-4 .iso8859-4 .latin4
AddCharset ISO-8859-5 .iso8859-5 .latin5 .cyr .iso-ru
AddCharset ISO-8859-6 .iso8859-6 .latin6 .arb
AddCharset ISO-8859-7 .iso8859-7 .latin7 .grk
AddCharset ISO-8859-8 .iso8859-8 .latin8 .heb
AddCharset ISO-8859-9 .iso8859-9 .latin9 .trk
AddCharset ISO-2022-JP .iso2022-jp .jis
AddCharset ISO-2022-KR .iso2022-kr .kis
AddCharset ISO-2022-CN .iso2022-cn .cis
AddCharset Big5 .Big5 .big5
AddCharset WINDOWS-1251 .cp-1251 .win-1251
AddCharset CP866 .cp866
AddCharset KOI8-r .koi8-r .koi8-ru
AddCharset KOI8-ru .koi8-uk .ua
AddCharset ISO-10646-UCS-2 .ucs2
AddCharset ISO-10646-UCS-4 .ucs4
AddCharset UTF-8 .utf8
AddCharset GB2312 .gb2312 .gb
AddCharset utf-7 .utf7
AddCharset utf-8 .utf8
AddCharset big5 .big5 .b5
AddCharset EUC-TW .euc-tw
AddCharset EUC-JP .euc-jp
AddCharset EUC-KR .euc-kr
AddCharset shift_jis .sjis
AddType application/x-compress .Z
AddType application/x-gzip .gz .tgz
AddType application/x-httpd-php .php
AddType application/x-httpd-php .php3
AddType application/x-httpd-php .phtml
AddType application/x-httpd-php .inc
AddType application/x-httpd-php .html
AddType application/x-httpd-php .htm
AddType application/x-httpd-php-source .phps
AddType image/x-icon .ico
AddHandler type-map var
# 에러 메시지를 다국어로 나타나게함.
Alias /error/include/ "/RWAPM/RTM20040531/error/include/"
Alias /error/ "/RWAPM/RTM20040531/error/"
AllowOverride None
AddType text/html .html
Options IncludesNoExec
AddOutputFilter Includes html
AddHandler type-map var
Order allow,deny
Allow from all
LanguagePriority en cs de es fr it ja ko nl pl pt-br ro sv tr
ForceLanguagePriority Prefer Fallback
ErrorDocument 400 /error/HTTP_BAD_REQUEST.html.var
ErrorDocument 401 /error/HTTP_UNAUTHORIZED.html.var
ErrorDocument 403 /error/HTTP_FORBIDDEN.html.var
ErrorDocument 404 /error/HTTP_NOT_FOUND.html.var
ErrorDocument 405 /error/HTTP_METHOD_NOT_ALLOWED.html.var
ErrorDocument 408 /error/HTTP_REQUEST_TIME_OUT.html.var
ErrorDocument 410 /error/HTTP_GONE.html.var
ErrorDocument 411 /error/HTTP_LENGTH_REQUIRED.html.var
ErrorDocument 412 /error/HTTP_PRECONDITION_FAILED.html.var
ErrorDocument 413 /error/HTTP_REQUEST_ENTITY_TOO_LARGE.html.var
ErrorDocument 414 /error/HTTP_REQUEST_URI_TOO_LARGE.html.var
ErrorDocument 415 /error/HTTP_UNSUPPORTED_MEDIA_TYPE.html.var
ErrorDocument 500 /error/HTTP_INTERNAL_SERVER_ERROR.html.var
ErrorDocument 501 /error/HTTP_NOT_IMPLEMENTED.html.var
ErrorDocument 502 /error/HTTP_BAD_GATEWAY.html.var
ErrorDocument 503 /error/HTTP_SERVICE_UNAVAILABLE.html.var
ErrorDocument 506 /error/HTTP_VARIANT_ALSO_VARIES.html.var
BrowserMatch "Mozilla/2" nokeepalive
BrowserMatch "MSIE 4.0b2;" nokeepalive downgrade-1.0 force-response-1.0
BrowserMatch "RealPlayer 4.0" force-response-1.0
BrowserMatch "Java/1.0" force-response-1.0
BrowserMatch "JDK/1.0" force-response-1.0
BrowserMatch "Microsoft Data Access Internet Publishing Provider" redirect-carefully
BrowserMatch "^WebDrive" redirect-carefully
BrowserMatch "^WebDAVFS/1.[012]" redirect-carefully
BrowserMatch "^gnome-vfs" redirect-carefully
# CodeRed/Nimda 로그 남기지 않음
SetEnvIfNoCase Request_Uri "^(.*)/co_count(.*)$" nolog
SetEnvIfNoCase Request_Uri "^(.*)default.ida(.*)$" nolog
SetEnvIfNoCase Request_Uri "^(.*)null.ida(.*)$" nolog
SetEnvIfNoCase Request_Uri "^(.*)root.exe(.*)$" nolog
SetEnvIfNoCase Request_Uri "^(.*)cmd.exe(.*)$" nolog
SetEnvIfNoCase Request_Uri "^(.*)cmd32.exe(.*)$" nolog
SetEnvIfNoCase Request_Uri "^(.*)admin.dll(.*)$" nolog
SetEnvIfNoCase Request_Uri "^(.*)msadcs.dll(.*)$" nolog
SetEnvIfNoCase Request_Uri "^(.*)nsiislog.dll(.*)$" nolog
SetEnvIfNoCase Request_Uri "^(.*)biztalkhttpreceive.dll(.*)$" nolog
SetEnvIfNoCase Request_Uri "^(.*)/_vti_bin(.*)$" nolog
SetEnvIfNoCase Request_Uri "^(.*)/iisadmpwd(.*)$" nolog
SetEnvIfNoCase Request_Uri "^(.*)/scripts(.*)$" nolog
SetEnvIfNoCase Request_Uri "^(.*)/advworks(.*)$" nolog
SetEnvIfNoCase Request_Uri "^(.*)/adsamples(.*)$" nolog
SetEnvIfNoCase Request_Uri "^(.*)/msadc(.*)$" nolog
SetEnvIfNoCase Request_Uri "^(.*)/MSOffice(.*)$" nolog
SetEnvIfNoCase Request_Uri "^(.*)/_mem_bin(.*)$" nolog
SetEnvIfNoCase Request_Uri "^(.*)/c/winnt(.*)$" nolog
SetEnvIfNoCase Request_Uri "^(.*)/d/winnt(.*)$" nolog
SetEnvIfNoCase Request_Uri "^(.*)/iisprotect/admin(.*)$" nolog
SetEnvIfNoCase Request_Uri "^(.*)/ADMIN%24(.*)$" nolog
SetEnvIfNoCase Referer "^(.*)default.ida(.*)$" nolog
SetEnvIfNoCase Referer "^(.*)null.ida(.*)$" nolog
SetEnvIfNoCase Referer "^(.*)root.exe(.*)$" nolog
SetEnvIfNoCase Referer "^(.*)cmd.exe(.*)$" nolog
SetEnvIfNoCase Referer "^(.*)cmd32.exe(.*)$" nolog
SetEnvIfNoCase Referer "^(.*)admin.dll(.*)$" nolog
SetEnvIfNoCase Referer "^(.*)msadcs.dll(.*)$" nolog
SetEnvIfNoCase Referer "^(.*)nsiislog.dll(.*)$" nolog
SetEnvIfNoCase Referer "^(.*)biztalkhttpreceive.dll(.*)$" nolog
# CodeRed/Nimda/등..차단/리다이렉트시켜 MS 홈으로 이동.
RedirectMatch Permanent "^(.*)default.ida(.*)$" http://www.microsoft.com
RedirectMatch Permanent "^(.*)null.ida(.*)$" http://www.microsoft.com
RedirectMatch Permanent "^(.*)root.exe(.*)$" http://www.microsoft.com
RedirectMatch Permanent "^(.*)cmd.exe(.*)$" http://www.microsoft.com
RedirectMatch Permanent "^(.*)cmd32.exe(.*)$" http://www.microsoft.com
RedirectMatch Permanent "^(.*)admin.dll(.*)$" http://www.microsoft.com
RedirectMatch Permanent "^(.*)msadcs.dll(.*)$" http://www.microsoft.com
RedirectMatch Permanent "^(.*)nsiislog.dll(.*)$" http://www.microsoft.com
RedirectMatch Permanent "^(.*)biztalkhttpreceive.dll(.*)$" http://www.microsoft.com
RedirectMatch Permanent "^(.*)/_vti_bin(.*)$" http://www.microsoft.com
RedirectMatch Permanent "^(.*)/iisadmpwd(.*)$" http://www.microsoft.com
RedirectMatch Permanent "^(.*)/advworks(.*)$" http://www.microsoft.com
RedirectMatch Permanent "^(.*)/adsamples(.*)$" http://www.microsoft.com
RedirectMatch Permanent "^(.*)/msadc(.*)$" http://www.microsoft.com
RedirectMatch Permanent "^(.*)/MSOffice(.*)$" http://www.microsoft.com
RedirectMatch Permanent "^(.*)/_mem_bin(.*)$" http://www.microsoft.com
RedirectMatch Permanent "^(.*)/c/winnt(.*)$" http://www.microsoft.com
RedirectMatch Permanent "^(.*)/d/winnt(.*)$" http://www.microsoft.com
RedirectMatch Permanent "^(.*)/iisprotect/admin(.*)$" http://www.microsoft.com
RedirectMatch Permanent "^(.*)/ADMIN%24(.*)$" http://www.microsoft.com
# 로컬 호스트 접속일때 로그 남기지 않음
#SetEnvIfNoCase Remote_Addr "^127.0.0.1$" nolog
# 이미지 파일 자바스크립트 파일등.. 남기지 않음.
SetEnvIfNoCase Request_Uri ".(bmp|gif|jpg|jpeg|png|css|js|java)$" nolog
# 버처 드렉터리
#Include conf/virtualHost.conf
또한 테터툴즈 새로운 버전에서 ReWrite 문제점은 페도라 코어 리눅스 사용자에게서도 발생한 문제점입니다. RWAPM 문제점이 아닙니다.^^ 직접 ReWrite로 통해서 입력되는 부분을 index.php 파일 소스에서 찾으셔서 직접 .htaccess에 입력하셔서 쓰셔도 됩니다.