NEW Nmail PHP 3 업그레이드 할인
자세히 보기

가상호스트 설정과정에서 요구하신 파일을 복사했어 올립니다.

h******e 2007.02.13 17:41 조회 13976

※ 필수입력정보 ※

▷ 제품버젼 : nmailphp
▷ 오류발생 메뉴/주소 :
▷ 에러메세지 :

▷ 질문내용 :
질문답변에서 파일을 올리라고 해서 이렇게 복사해서 올립니다.
좋은 답변 기다리겠습니다.

아래의 내용은 virtualhost.conf 파일 내용입니다.
##########################################
#
# 버처 호스트 설정파일입니다.
#
##########################################

NameVirtualHost *:80

# localhost 호스트
<VirtualHost *:80>
ServerAdmin ****@****
DocumentRoot C:\NmailPHP\nmail
ServerName mail.ezpia.info
ServerAlias mail.ezpia.info
</VirtualHost>

그리고 다음에 있는 내용은 httpd.conf 입니다.
맨 아래보면 virtualhost 이 include 되어 있다고 나오네요.
그것이 위에 있는 파일인 것 같습니다.

##########################################################
##########################################################
#
# RWAPM-X Server 5.7.3.3 (2006.12.17 버전)
# 토토루 (http://kldp.net/projects/rwapm/).(http://www.rwapm.server.ne.kr)
# (http://rwapm.com)
# Apache-2.2.3
#
##########################################################
##########################################################

#서버 루트
ServerRoot "C:/RWAPM/RTM20040531"

PidFile logs/httpd.pid
Timeout 300
KeepAlive On
MaxKeepAliveRequests 100
KeepAliveTimeout 5
UseCanonicalName Off
ServerTokens Full
ServerSignature On
HostnameLookups Off

#멀티 쓰레드.
#접속자가 많으면 아래 100 수치를 늘려주세요.
ThreadsPerChild 100
MaxRequestsPerChild 0

#접속 포트번호.
#접속할 포트번호입니다.
#80포트가 막힌경우 다른포트로 지정하셔도됩니다.
Listen 80

#사용 모듈 로드.
LoadModule actions_module modules/mod_actions.so
LoadModule alias_module modules/mod_alias.so
LoadModule asis_module modules/mod_asis.so
LoadModule auth_basic_module modules/mod_auth_basic.so
#LoadModule auth_digest_module modules/mod_auth_digest.so
#LoadModule authn_anon_module modules/mod_authn_anon.so
#LoadModule authn_dbm_module modules/mod_authn_dbm.so
LoadModule authn_default_module modules/mod_authn_default.so
LoadModule authn_file_module modules/mod_authn_file.so
#LoadModule authz_dbm_module modules/mod_authz_dbm.so
LoadModule authz_default_module modules/mod_authz_default.so
LoadModule authz_groupfile_module modules/mod_authz_groupfile.so
LoadModule authz_host_module modules/mod_authz_host.so
LoadModule authz_user_module modules/mod_authz_user.so
#LoadModule authz_owner_module modules/mod_authz_owner.so
#LoadModule authn_alias_module modules/mod_authn_alias.so
#LoadModule authn_mysql_module modules/mod_authn_mysql.so
#LoadModule auth_phpbb_module modules/mod_auth_phpbb.so
#LoadModule auth_xml_module modules/mod_auth_xml.so
LoadModule autoindex_module modules/mod_autoindex.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 deflate_module modules/mod_deflate.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 imagemap_module modules/mod_imagemap.so
LoadModule include_module modules/mod_include.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_ajp_module modules/mod_proxy_ajp.so
#LoadModule proxy_balancer_module modules/mod_proxy_balancer.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

#SSL사용시 아래 2줄 #제거하세요.
#LoadModule ssl_module modules/mod_ssl.so
#Include conf/ssl.conf

#대역폭 제한
#1024 50000이란 1024kb이상의 파일에 대하여 50000(50kb)의 대역폭으로 제한하라는뜻이다.
#즉 1mb이상의 파일을 다운로드할경우 다운로드 속도를 50kb로 제한한다는뜻.
#사용자에 맞게 적절히 조절해서 사용하세요.
#사용하실분은 아래 3줄 # 제거하세요.
#LoadModule bw_module modules/mod_bw.so
#BandWidthModule On
#LargeFileLimit * 1024 50000

#보안설정 security_module 방화벽을 사용하려면 아래 두줄에서 #을 지워주시고 RWAPM을 재시작해주세요. 그리고 #SecFilterEngine Off 이부분도 찾아 #을 지워주세요.
#LoadModule security2_module modules/mod_security2.so
#Include conf/security.conf

#php5 로드 모듈
LoadModule php5_module "C:/RWAPM/RTM20040531/bin/php5apache2_2.dll"
PHPIniDir "C:/RWAPM/RTM20040531/bin"

#한글 파일 인코딩 모듈 및 dav.
LoadModule encoding_module modules/mod_encoding.so
EncodingEngine On
SetServerEncoding UTF-8
DefaultClientEncoding CP949

#날짜별 로그관리.
LoadModule log_rotate_module modules/mod_log_rotate.so
RotateLogs On
RotateLogsLocalTime On
RotateInterval 86400

#압축전송
#<Location />
#BrowserMatch ^Mozilla/4 gzip-only-text/html
#BrowserMatch ^Mozilla/4\.0[678] no-gzip
#BrowserMatch \bMSI[E] !no-gzip !gzip-only-text/html
#SetEnvIfNoCase Request_URI \.(?:gif|jpe?g|png|bmp|zip|tar|rar|alz|a00|ace|txt|mp3|mpe?g|wav|asf|wma|wmv|swf|exe|pdf|doc|xsl|hwp|css|js|java|c|t?gz|bz2|7z)$ no-gzip dont-vary
#Header append Vary User-Agent env=!dont-vary
#</Location>

#서버 관리자 메일 주소.
ServerAdmin ****@****

#서버 도메인 주소.
#도메인이 있을경우 도메인을 입력하세요.
#예로 ServerName test.com
ServerName localhost

<Directory />
Options FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>

#기본 계정 웹경로.홈 디렉터리
DocumentRoot "C:/RWAPM/www"
<Directory "C:/RWAPM/www">
#SetOutputFilter DEFLATE
Options Includes ExecCGI
AddHandler cgi-script .cgi .pl
AllowOverride None
Order allow,deny
Allow from all
</Directory>

#유저 디렉터리
UserDir "C:/RWAPM/user/*/www"
<Directory "C:/RWAPM/user/*/www">
#SetOutputFilter DEFLATE
Options Includes ExecCGI
AddHandler cgi-script .cgi .pl
AllowOverride None
Order allow,deny
Allow from all
</Directory>

#디렉터리 첫 파일명
DirectoryIndex index.html index.htm index.php index.phtml index.php3 index.cgi index.pl

#엑세스 파일
AccessFileName .htaccess

#접근금지
<FilesMatch "^\.ht">
Order allow,deny
Deny from all
</FilesMatch>

#이미지 캐쉬를 위해 만기헤더를 사용한다
#클라이언트 캐쉬의 image 그림은 한 달후에 만기한다
ExpiresActive On
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'"

#로그의 저장 레벨수준.
LogLevel error
LogFormat "%h %l %u %t \"%!414r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %b" common

#에러로그 저장경로.
ErrorLog logs/error.log

#로그저장 경로.
CustomLog logs/access%Y%m%d.log combined env=!nolog

#자동인덱스.
IndexOptions FancyIndexing HTMLTable 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

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 us-ascii.ascii .us-ascii
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 .cyr .iso-ru
AddCharset ISO-8859-6 .iso8859-6 .arb .arabic
AddCharset ISO-8859-7 .iso8859-7 .grk .greek
AddCharset ISO-8859-8 .iso8859-8 .heb .hebrew
AddCharset ISO-8859-9 .iso8859-9 .latin5 .trk
AddCharset ISO-8859-10 .iso8859-10 .latin6
AddCharset ISO-8859-13 .iso8859-13
AddCharset ISO-8859-14 .iso8859-14 .latin8
AddCharset ISO-8859-15 .iso8859-15 .latin9
AddCharset ISO-8859-16 .iso8859-16 .latin10
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 .b5
AddCharset cn-Big5 .cn-big5
AddCharset WINDOWS-1251 .cp-1251 .win-1251
AddCharset CP866 .cp866
AddCharset KOI8 .koi8
AddCharset KOI8-E .koi8-e
AddCharset KOI8-r .koi8-r .koi8-ru
AddCharset KOI8-U .koi8-u
AddCharset KOI8-ru .koi8-uk .ua
AddCharset ISO-10646-UCS-2 .ucs2
AddCharset ISO-10646-UCS-4 .ucs4
AddCharset UTF-7 .utf7
AddCharset UTF-8 .utf8
AddCharset UTF-16 .utf16
AddCharset UTF-16BE .utf16be
AddCharset UTF-16LE .utf16le
AddCharset UTF-32 .utf32
AddCharset UTF-32BE .utf32be
AddCharset UTF-32LE .utf32le
AddCharset euc-cn .euc-cn
AddCharset euc-gb .euc-gb
AddCharset euc-jp .euc-jp
AddCharset euc-kr .euc-kr
AddCharset EUC-TW .euc-tw
AddCharset gb2312 .gb2312 .gb
AddCharset iso-10646-ucs-2 .ucs-2 .iso-10646-ucs-2
AddCharset iso-10646-ucs-4 .ucs-4 .iso-10646-ucs-4
AddCharset shift_jis .shift_jis .sjis

Alias /icons/ "C:/RWAPM/RTM20040531/icons/"
<Directory "C:/RWAPM/RTM20040531/icons">
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>

#phpmyadmin 알리아스
Alias /mysql "C:/RWAPM/phpMyAdmin/"
<Directory "C:/RWAPM/phpMyAdmin">
#SecFilterEngine Off
Options FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>

#웹로그 알리아스
Alias /weblog "C:/RWAPM/weblog/tmp/"
<Directory "C:/RWAPM/weblog/tmp">
Options MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>

#관리자
Alias /rwapmadmin "C:/RWAPM/rwapmadmin/"
<Directory "C:/RWAPM/rwapmadmin">
Options FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>

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

DefaultType text/plain

#에러 메시지를 다국어로 나타나게함.
Alias /error/ "C:/RWAPM/RTM20040531/error/"
<Directory "C:/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 ko en cs de es fr it ja nl pl pt-br ro sv tr
ForceLanguagePriority Prefer Fallback
</Directory>

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

댓글 2
이전 글 한가지는 해결했습니다만 다른 문제가 발생했습니다. 1 h*****e 2007.02.13
다음 글 [설치관련질문] 등록된 네임서버 확인하는 부분에서 질문 1 h*****e 2007.02.13