IzzyMenu.com

SYSTEM(LINUX BSD MYSQL MSSQL etc)°ü·Ã ÀÚ·á¹× ÀÚü °­ÀÇ ÀÚ·á

 ·Î±×ÀÎ  È¸¿ø°¡ÀÔ

[¾ÈÅæÀÛ¼ºÀÚ·á] - APACHE ¼³Á¤
ANTON  2009-06-28 05:05:44, Á¶È¸ : 3,106, Ãßõ : 39

¾ÆÆÄÄ¡ ¼­¹ö ¼³Á¤

(source ¼³Ä¡½Ã Àû¿ëµÇ´Â »çÇ×)

/usr/local/apache/conf/httpd.confÀ» ¼³Á¤
(/etc/httpd/conf/httpd.conf)

srm.conf³ª access.confÆÄÀÏÀº ´õ ÀÌ»ó »ç¿ëµÇÁö ¾Ê°í ¸ðµç ¼³Á¤ ³»¿ëÀÌ httpd.conf·Î ÅëÇÕ

¼³Á¤ÆÄÀÏÀ» º¯°æÇÑ ´ÙÀ½¿¡ ±¸¹®ÀÌ ¸Â´ÂÁö È®ÀÎ ÇÊ¿ä
#/usr/sbin/httpd -t
Syntax OK



httpd.conf ÆÄÀÏ ¼³Á¤

Outline : Å©°Ô 3ºÎºÐÀ¸·Î ³ª´©¾îÁ® ÀÖ´Ù.

1. Global Environment

2. Main server configuration

3. Virtual Hosts



=================httpd.conf =====================

# See <URL:http://www.apache.org/docs/> for detailed information about

### Section 1: Global Environment

~



ServerType standalone
# ¾ÆÆÄÄ¡ À¥ ¼­¹ö°¡ ¾î¶² ¸ðµå·Î ½ÇÇàÇÒ °ÍÀÎÁö °áÁ¤ÇÏ´Â ¼­¹ö À¯Çü

ServerRoot "/usr/local/apache"
#¼­¹öÀÇ ±âº»ÀÌ µÇ´Â root directory

#LockFile /usr/local/httpd/logs/httpd.lock

# PidFile: The file in which the server should record its process
# identification number when it starts.

PidFile /usr/local/httpd/logs/httpd.pid
#¾ÆÆÄÄ¡ À¥¼­¹ö°¡ ½ÇÇàµÉ ¶§ ÀÚ½ÅÀÇ ÇÁ·Î¼¼½º ¹øÈ£¸¦ ±â·ÏÇÏ´Â ÆÄÀÏ.

ScoreBoardFile /usr/local/httpd/logs/httpd.scoreboard
# ScoreBoardFile: File used to store internal server process information.

# The commented-out values below are the built-in defaults.  You can have the
server ignore these files altogether by using "/dev/null" (for Unix) or
# "nul" (for Win32) for the arguments to the directives.

#ResourceConfig conf/srm.conf
#AccessConfig conf/access.conf
#¿äÁîÀ½Àº httpd.conf·Î Á¦¾î Çϱ⠶§¹®¿¡ ÀÌ ºÎºÐÀ» remarkÇØ ÁØ´Ù.

Timeout 300
#Ŭ¶óÀ̾ðÆ®¿¡¼­ Á¢¼ÓÀ»(¹Þ±â¿Í º¸³»±â) ²÷±â Àü¿¡ ¼­¹ö°¡ ±â´Ù¸®´Â ½Ã°£

KeepAlive On
#ÇÑ ¹øÀÇ Á¢¼ÓÀ¸·Î ¿©·¯ °³ÀÇ ¿äûÀ» ó¸®ÇÒ °ÍÀÎÁö °áÁ¤

MaxKeepAliveRequests 100
#Á¢¼Ó´ç ÃÖ´ë ¿äû ó¸® °Ç¼ö, 0ÀÌ¸é ¹«ÇÑ´ë

KeepAliveTimeout 15
#Keepaliveµ¿¾È °°Àº Á¢¼Ó °°Àº Ŭ¶óÀ̾ðÆ®¿¡¼­ ´ÙÀ½ ¿äûÀÌ µé¾î¿Ã ¶§±îÁö ±â´Ù´Â ½Ã°£

MinSpareServers 5
#¾ÆÆÄÄ¡°¡ ½ÇÇàµÉ ¶§ ÃÖ¼Ò ¿¹ºñ ÇÁ·Î¼¼½º °³¼ö
#5°³À» ´Ù »ç¿ëÇϸé ÃÖ¼ÒÇÑ 5°³´Â ´õ ¸¸µé¾î ³õ´Â´Ù.

MaxSpareServers 10
#¾ÆÆÄÄ¡°¡ ½ÇÇàµÉ ¶§ ÃÖ´ë ¿¹ºñ ÇÁ·Î¼¼½º °³¼ö (20ÀÌ Àû´ç)
#100ÀÌ »ç¿ëÇÏ´Ù 50ÀÌ ³ª°¡¸é 50À» »ç¿ëÇÏ°í 10À» ³²°Ü ³õ´Â´Ù.

StartServers 5
#¾ÆÆÄÄ¡°¡ óÀ½ ½ÇÇàµÉ ¶§ »ý¼ºÇÏ´Â ÀÚ½Ä ÇÁ·Î¼¼½º °³¼ö

MaxClients 150
#µ¿½Ã¿¡ Á¢¼ÓÇÒ ¼ö ÀÖ´Â ÃÖ´ë Ŭ¶óÀ̾ðÆ® °³¼ö, ÃÖ´ë 256
# 256ÀÌ»óÀ» ó¸® ÇÒ ¶§´Â src/include/httpd.h ÆÄÀÏÀÇ
# LIMIT°ªÀ» ¼öÁ¤ÇÏ¿© ´Ù½Ã compile

MaxRequestsPerChild 0
#°¢ ÀÚ½ÄÇÁ·Î¼¼½º°¡ Á¾·áµÇ±â Àü¿¡ ó¸® ÇÒ ¼ö ÀÖ´Â ÃÖ´ë ¿äû ó¸® °Ç¼ö
#Áï ÇϳªÀÇ ¼­¹ö°¡ »ý¼ºµÇ°í ³ª¼­ 100¹øÀÇ request¸¦ ÇÏ°í Á״´Ù. ±×¸®°í
#³ª¼­ ´Ù¸¥ server°¡ »ý±ä´Ù.
#º¸Åë 100À¸·Î, ¸Þ¸ð¸® ´©¼ö ¹æÁö, 0Àº ¹«ÇÑ´ë


# Listen: Allows you to bind Apache to specific IP addresses and/or
# ports, in addition to the default. See also the <VirtualHost> directive.

#Listen 3000
#Æ÷Æ® ¹øÈ£

#Listen 12.34.56.78:80
#ƯÁ¤ IPÁÖ¼Ò¿Í port¿¡ ´ëÇؼ­ ¿äûÀÌ µé¾î¿À¸é ÀÀ´äÇÑ´Ù.
#eth0¿¡ ´ëÇؼ­ ¿©·¯°³ÀÇ alias°¡ µÇ¾î ÀÖ¾î Àß ¾ÈµÉ ¶§ ÀÚ±âÀÇ IPÀ» ¸í½ÃÀûÀ¸·Î Àû´Â´Ù.
#/etc/servicesÀ» Âü°íÇ϶ó

# BindAddress: You can support virtual hosts with this option. This directive
# is used to tell the server which IP address to listen to. It can either
# contain "*", an IP address, or a fully qualified Internet domain name.
# See also the <VirtualHost> and Listen directives.

#BindAddress *

#Dynamics Shared Object(DSO) Support

#¾ÆÆÄÄ¡´Â µ¿Àû ¸ðµâ ·Îµù±â´ÉÀ» »ç¿ëÇÑ´Ù. ÀÌ ±â´ÉÀº ¾ÆÆÄÄ¡¸¦ »ç¿ëÁß¿¡ Àç ÄÄÆÄÀÏ ¾øÀÌ ¸ðµâ¸¸ »õ·Î ÄÄÆÄÀÏÇÏ¿© ¾ÆÆÄÄ¡ÀÇ È¯°æ¼³Á¤ÆÄÀϸ¸(httpd.conf) ¼öÁ¤ÇÑ·ç ¾ÆÆÄÄ¡¸¦ »õ·Î ½ÃÀÛÇÏ¸é »õ·Î¿î ¸ðµâÀ» »ç¿ëÇÒ ¼ö ÀÖ°Ô µÈ´Ù. ÀÌ µ¿Àû ¸ðµâÀ» »ç¿ëÇÒ ¼ö ÀÖ°Ô ÇÏ´Â ±â´ÉÀº dlopen()/dlsym()ÀÌ ¼öÇà - Âü°í·Î /htdocs/manual/dso.htmlÀ» ÀÐ¾î º¸¶ó.  ¸ðµâÀ» »ç¿ë °¡´ÉÇÏ°Ô ÇÏ·Á¸é configure¿¡¼­ -enable-shared=max  ¿É¼ÇÀ» »ç¿ëÇÏ¿©¾ß ÇÑ´Ù. (=max ´Â ¸ðµç ¸ðµâÀ» »ç¿ë, »©¸é ƯÁ¤ ¸ðµâ¸¸ »ç¿ë°¡´É)

# LoadModule foo_module libexec/mod_foo.so
#LoadModule env_module libexec/mod_env.so
#AddModule mod_env.c
#LoadModuleÇØÁÖ°í AddModuleÇØ ÁÖ¾î¶ó

#DSO(Dnaymic Shared Object) ¸ðµâÀ» ·ÎµåÇÒ ¶§ »ç¿ë
#·ÎµåÇÏ´Â ¼ø¼­ Áß¿ä, µû¶ó¼­ »ç¿ëÀÚ°¡ Ãß°¡ÇÏ´Â °ÍÀº Á¦ÀÏ ¸¶Áö¸·¿¡
##compiled-in modules #/usr/sbin/httpd -l

#ExtendedStatus On

#¸Å¿ì ÀÚ¼¼ÇÑ ¼­¹ö»óŸ¦ Ãâ·ÂÇÒÁö ¾ÊÇÒÁö¸¦ ¼±ÅÃÇÏ´Â Áö½ÃÀÚ
# <Location /server-status> ºÎºÐÀ» ¼³Á¤ÇßÀ» ¶§ À¯È¿
# Deny from all  ~~~~
#</Location>
#´Ù¸¥ ÄÄÇ»ÅÍ¿¡¼­ IPÁÖ¼Ò/server_status¸¦ Ä¡¸é server»óŸ¦ º¸¿©ÁØ´Ù.

### Section 2: 'Main' server configuration

Port 80

#¾ÆÆÄÄ¡ À¥¼­¹ö°¡ »ç¿ëÇÏ´Â ±âº» Æ÷Æ®¸¦ ÁöÁ¤,
#/etc/services ¾È¿¡ port¹øÈ£°¡ ¹Ù²î¸é ¿©±âÀÇ port¹øÈ£µµ ¹Ù²Ù¾î ÁÖ¾î¾ß ÇÑ´Ù.

#User nobody
User apache

#Group nobody
Group apache

#¾ÆÆÄÄ¡ À¥ ¼­¹ö ÇÁ·Î¼¼ÀÇ À¯Àú¿Í ±×·ì¼³Á¤ Áö½ÃÀÚ
#º¸¾È»ó Áß¿ä.
# ps -al | grep apache
#8°³ÀÇ apache serverÁß¿¡¼­ Çϳª´Â rootÀÌ°í ³ª¸ÓÁö´Â apache°¡ ¼ÒÀ¯ÁÖ´Ù.

ServerAdmin jtoh@greencross.com
#¼­¹ö¸¦ °ü¸®ÇÏ´Â »ç¿ëÀÚÀÇ ¸ÞÀÏ ÁÖ¼Ò

#ServerName MOGAM1.greencross.com

DocumentRoot "/usr/local/apache/htdocs"
#ÀÌ µð·ºÅ丮¹Û¿¡ ÀÖ´Â °ÍÀº service ºÒ°¡

<Directory />  # root directory
    Options FollowSymLinks
    AllowOverride None
</Directory>
#À§¿¡¼­ ¼³Á¤ÇÑ °ªµéÀÌ ¿µÇâÀ» ¹Þ´Â ¹üÀ§´Â °æ·Î¿¡¼­ ÁöÁ¤ÇÑ µð·ºÅ丮ÀÇ ÇÏÀ§ µð·ºÅ丮±îÁö Æ÷ÇÔ
#ÇÏÀ§ directory¿¡µµ ¼³Á¤µÇ¾î ÀÖÀ¸¸é ÀÛÀººÎÁØ(¾Æ·¡ºÎºÐ)ÀÌ ¿ì¼± Àû¿ë

#OptionsÁö½ÃÀÚ
None : ¾Æ¹« ¿É¼Çµµ Àû¿ëÇÏÁö ¾Ê´Â °Í
All : MultiViewsÀ» Á¦¿ÜÇÑ ¸ðµç °ªÀ» Àû¿ëÇÏ´Â ¿É¼Ç
Indexes : µð·ºÅ丮¿¡ DirectoryIndexÁö½ÃÀÚ(index.html ...)ÀÌ ¾øÀ» °æ¿ì ±×³É µð·ºÅ丮ÀÇ ÆÄÀÏÀÇ ¸ñ·ÏÀ» Ãâ·ÂÇØ ÁØ´Ù.
Includes : SSI(Server Side Includes)ÀÇ ½ÇÇàÀ» Çã¿ëÇÏ´Â °Í
IncludesNOEXEC : SSI¸¦ Àû¿ëÇ쵂 SSIÀÇ #exec¿Í #include¸í·ÉÀ» ½ÇÇàÇÏÁö ¸øÇϵµ·ÏÇÏ´Â ¿É¼Ç
FollowSymLinks : symbolic link¸¦ º¸´Â °ÍÀ» Çã¿ë
SymLinkslfOwnerMatch : ´ë»ó°ú ¸µÅ©ÀÇ ¼ÒÀ¯ÀÚ/±×·ìÀÌ °¢°¢ µ¿ÀÏÇÑ °æ¿ì¿¡¸¸ Àû¿ë.
ExecCGI : CGI ÀÀ¿ë ÇÁ·Î±×·¥À» ½ÇÇà ÇÒ ¼ö ÀÖµµ·Ï µð·ºÅ丮¸¦ ¼³Á¤ÇÏ´Â °Í
MultiView : content negotiated multiviewÀ» Çã¿ë, ºê¶ó¿ìÀúº°, ¾ð¾îº°, media typeº° µîÀ» ÃÖ»óÀÇ È­¸éÀ¸·Î Á¦°øÇÒ ¼ö ÀÖ°Ô ÇØÁÖ´Â °Í, mod_negotiation¶ó´Â µ¿Àû ¸ðµâÀ» ÅëÇؼ­ °¡´É
AllowOverride : ƯÁ¤ µð·ºÅ丮¿¡ ´ëÇؼ­ .htaccessÆÄÀÏÀÌ Á¸ÀçÇÒ ¶§, ÀÌÀüÀÇ Á¢±Ù ÀÎÁõ ¹æ½Ä¿¡ ´ëÇؼ­ override¸¦ Çã¶ôÇÒ °ÍÀÌÁö¸¦ °áÁ¤,  None, ALL
Order :
<Directory "/usr/local/apache/htdocs">
    Options Indexes FollowSymLinks MultiViews
    AllowOverride None
    Order allow,deny
    Allow from all
</Directory>

#=========================================================

# UserDir: The name of the directory which is appended onto a user's home
# directory if a ~user request is received.

#IfModule
<IfModule mod_userdir.c>
    UserDir public_html
</IfModule>
#´ÙÀ½¿¡ µû¶ó³ª¿À´Â ÁöÁ¤µÈ ¸ðµâÀÌ »ç¿ë°¡´É ÇÒ ¶§ ÀÌ Áö½ÃÀÚ·Î µÑ·¯ ½×ÀÎ °÷¿¡ ¼³Á¤ÇØ ³õÀº ¿É¼ÇµéÀ» Àû¿ë ÇÒ ¶§ »ç¿ë
#UseDir Áö½ÃÀÚ´Â »ç¿ëÀÚ °èÁ¤ÀÇ °³ÀΠȨÆäÀÌÁöÀÇ ·çÆ® µð·ºÅ丮¸¦ ÁöÁ¤ÇÒ´ë »ç¿ë
#jtoh¶ó´Â °èÁ¤ÀÇ È¨ÆäÀÌÁö¸¦ ¸¸µé°íÀÚ ÇÑ´Ù¸é jtohÀÇ È¨ µð·ºÅ丮 ¾È¿¡ public_htmlÀ̶ó´Â µð·ºÅ丮¸¦ ¸¸µé°í ±× ¾È¿¡ htmlÆÄÀÏÀ» ³Ö¾î µÎ¾î¾ß ÇÑ´Ù.

# Control access to UserDir directories.  The following is an example
# for a site where these directories are restricted to read-only.

#<Directory /home/*/public_html>
#    AllowOverride FileInfo AuthConfig Limit
#    Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
#    <Limit GET POST OPTIONS PROPFIND>
#        Order allow,deny
#        Allow from all
#    </Limit>
#    <LimitExcept GET POST OPTIONS PROPFIND>
#        Order deny,allow
#        Deny from all
#    </LimitExcept>
#</Directory>

#

# DirectoryIndex:

<IfModule mod_dir.c>
    DirectoryIndex index.html
</IfModule>

AccessFileName .htaccess
#°¢ µð·ºÅ丮¿¡ ´ëÇÏ¿© Á¢±Ù Á¦¾î Á¤º¸ ³»¿ëÀ» ´ã°í ÀÖÀ» ÆÄÀÏ À̸§À» ÁöÁ¤ÇÏ´Â Áö½ÃÀÚ

<Files ~ "^\.ht">
    Order allow,deny
    Deny from all
</Files>
# .ht·Î ½ÃÀÛÇÏ´Â ÆÄÀÏ¿¡ ´ëÇÑ Á¢±Ù ±ÇÇÑ ¼³Á¤ - ¸ðµç »ç¿ëÀÚ°¡ Á¢±ÙÀ» ÇÏÁö ¸øÇÔ
#.htpasswd , .htaccess

#CacheNegotiatedDocs

UseCanonicalName On

# TypesConfig describes where the mime.types file (or equivalent) is to be found.
<IfModule mod_mime.c>
    TypesConfig /usr/local/httpd/conf/mime.types
</IfModule>

DefaultType text/plain

#/etc/mine.typesÆÄÀÏ¿¡¼­ ¾Ë ¼ö ¾ø´Â ¹®¼­¿¡ ´ëÇØ ±âº»ÀûÀ¸·Î Àû¿ëÇÏ´Â mine type
#¼­ºñ½º ÇÏ´Â ÆÄÀÏÀÌ ÁÖ·Î ½ÇÇà ÆÄÀÏÀ̰ųª ¹ÙÀ̳ʸ®ÀÎ °æ¿ì´Â
# 'application/octet-stream'À¸·Î ¼³Á¤

#

# The mod_mime_magic module allows the server to use various hints from the
# contents of the file itself to determine its type.  The MIMEMagicFile
# directive tells the module where the hint definitions are located.
# mod_mime_magic is not part of the default server (you have to add
# it yourself with a LoadModule [see the DSO paragraph in the 'Global
# Environment' section], or recompile the server and include mod_mime_magic
# as part of the configuration), so it's enclosed in an <IfModule> container.
# This means that the MIMEMagicFile directive will only be processed if the
# module is part of the server.

<IfModule mod_mime_magic.c>
    MIMEMagicFile /usr/local/httpd/conf/magic
</IfModule>

#

# HostnameLookups: Log the names of clients or just their IP addresses
# e.g., www.apache.org (on) or 204.62.129.132 (off).
# The default is off because it'd be overall better for the net if people
# had to knowingly turn this feature on, since enabling it means that
# each client request will result in AT LEAST one lookup request to the
# nameserver.

HostnameLookups Off
#·Î±× ÆÄÀÏ¿¡ Á¢¼Ó ³»¿ëÀ» ±â·ÏÇÒ ¶§ Ŭ¶óÀ̾ðÆ®ÀÇ È£½ºÆ® ³×ÀÓÀ» ±âÀÔÇÒ °ÍÀΰ¡(on), ¾Æ´Ï¸é
#.IPÁÖ¼Ò·Î ±âÀÔÀ» ÇÒ °ÍÀΰ¡(off)À» °áÁ¤
# ´©°¡                                  ¾ðÁ¦
# IP (or HOST NAME)          ½Ã°£  

ErrorLog /usr/local/apache/logs/error_log
#/etc/httpd/logs
#Ŭ¶óÀ̾ðÆ®ÀÇ ¿äû¿¡ ´ëÇÑ ¿¡·¯³ª ±âŸ ¿¡·¯¸¦ ±â·ÏÇÏ´Â ÆÄÀÏÀÇ °æ·Î

LogLevel warn
#Emerg, alert, crit. error, warn, notice, info, deburg°¡ ÀÖ´Ù.



# The following directives define some format nicknames for use with
# a CustomLog directive (see below).
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %b" common
LogFormat "%{Referer}i -> %U" referer
LogFormat "%{User-agent}i" agent
# ·Î±×¸¦ ±â·ÏÇÏ°Ô ÇÏ´Â CustomLog Áö½ÃÀÚ¿¡¼­ È°¿ëÇÒ ·Î±× ÇüŸ¦ Á¤ÇÑ´Ù.

# The location and format of the access logfile (Common Logfile Format).

# If you do not define any access logfiles within a <VirtualHost>

# container, they will be logged here.  Contrariwise, if you *do*

# define per-<VirtualHost> access logfiles, transactions will be

# logged therein and *not* in this file.

#

CustomLog /usr/local/apache/logs/access_log common
#»ç¿ëÀÚ Á¤ÀÇ ·Î±× Æ÷¸ËÀ¸·Î ·Î±×¸¦ ±â·ÏÇÒ ¶§ »ç¿ëÇÏ´Â Áö½ÃÀÚ
#CustomLog /usr/local/httpd/logs/referer_log referer
#CustomLog /usr/local/httpd/logs/agent_log agent

# If you prefer a single logfile with access, agent, and referer information
# (Combined Logfile Format) you can use the following directive.
#CustomLog /usr/local/httpd/logs/access_log combined

# Optionally add a line containing the server version and virtual host
# name to server-generated pages (error documents, FTP directory listings,
# mod_status and mod_info output etc., but not CGI generated documents).
# Set to "EMail" to also include a mailto: link to the ServerAdmin.
# Set to one of:  On | Off | EMail

ServerSignature On

# EBCDIC configuration:
# (only for mainframes using the EBCDIC codeset, currently one of:
# Fujitsu-Siemens' BS2000/OSD, IBM's OS/390 and IBM's TPF)!!
# The following default configuration assumes that "text files"
# are stored in EBCDIC (so that you can operate on them using the
# normal POSIX tools like grep and sort) while "binary files" are
# stored with identical octets as on an ASCII machine.

#

# The directives are evaluated in configuration file order, with
# the EBCDICConvert directives applied before EBCDICConvertByType.

#

# If you want to have ASCII HTML documents and EBCDIC HTML documents
# at the same time, you can use the file extension to force
# conversion off for the ASCII documents:
# > AddType       text/html .ahtml
# > EBCDICConvert Off=InOut .ahtml

#

# EBCDICConvertByType  On=InOut text/* message/* multipart/*
# EBCDICConvertByType  On=In    application/x-www-form-urlencoded
# EBCDICConvertByType  On=InOut application/postscript model/vrml
# EBCDICConvertByType Off=InOut */*

#===========================aliases=======================

<IfModule mod_alias.c>
    Alias /icons/ "/usr/local/httpd/icons/"


    <Directory "/usr/local/httpd/icons">
        Options Indexes MultiViews
        AllowOverride None
        Order allow,deny
        Allow from all
    </Directory>

    # ScriptAlias: This controls which directories contain server scripts.
    # ScriptAliases are essentially the same as Aliases, except that
    # documents in the realname directory are treated as applications and
    # run by the server when requested rather than as documents sent to the client.
    # The same rules about trailing "/" apply to ScriptAlias directives as to
    # Alias.

    ScriptAlias /cgi-bin/ "/usr/local/httpd/cgi-bin/"

    # "/usr/local/httpd/cgi-bin" should be changed to whatever your ScriptAliased
    # CGI directory exists, if you have that configured.

    <Directory "/usr/local/httpd/cgi-bin">
        AllowOverride None
        Options None
        Order allow,deny
        Allow from all
    </Directory>

</IfModule>
# End of aliases.

#====================Indexing directives ===========================

# Redirect allows you to tell clients about documents which used to exist in
# your server's namespace, but do not anymore. This allows you to tell the
# clients where to look for the relocated document.
# Format: Redirect old-URI new-URL

# Directives controlling the display of server-generated directory listings.

<IfModule mod_autoindex.c>
    #
    # FancyIndexing is whether you want fancy directory indexing or standard
    IndexOptions FancyIndexing

    # AddIcon* directives tell the server which icon to show for different
    # files or filename extensions.  These are only displayed for
    # FancyIndexed directories.
    AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip
    AddIconByType (TXT,/icons/text.gif) text/*
~~~~~~

    AddIcon /icons/blank.gif ^^BLANKICON^^
    DefaultIcon /icons/unknown.gif

    # Format: AddDescription "description" filename

    #AddDescription "GZIP compressed document" .gz
    #AddDescription "tar archive" .tar
    #AddDescription "GZIP compressed tar archive" .tgz

    ReadmeName README
    HeaderName HEADER

    #
    # IndexIgnore is a set of filenames which directory indexing should ignore
    # and not include in the listing.  Shell-style wildcarding is permitted.
    #
    IndexIgnore .??* *~ *# HEADER* README* RCS CVS *,v *,t
</IfModule>
# End of indexing directives.

#=================document types=============================
<IfModule mod_mime.c>

     #ƯÁ¤ ºê¶ó¿ìÀú¿¡ ´ëÇؼ­ ÀڷḦ ¹ÞÀ» ¶§ ¾ÐÃàÀ» Ǭ´Ù.
    AddEncoding x-compress Z
    AddEncoding x-gzip gz tgz
    AddLanguage en .en
     AddCharset ISO-8859-8 .iso8859-8
    AddLanguage kr .kr
    AddCharset ISO-2022-KR .iso-kr
    AddCharset ISO-8859-2 .iso-pl
    AddCharset Big5         .Big5    .big5
    AddCharset WINDOWS-1251 .cp-1251
    AddCharset CP866        .cp866
    AddCharset ISO-8859-5   .iso-ru
    AddCharset KOI8-R       .koi8-r
    AddCharset UCS-2        .ucs2
    AddCharset UCS-4        .ucs4
    AddCharset UTF-8        .utf8

    <IfModule mod_negotiation.c>
        LanguagePriority kr en da nl et fr de el it ja no pl pt pt-br ru ltz ca es sv tw
    </IfModule>

#AddType
#mine type¿¡ ÁöÁ¤µÇ¾î ÀÖÁö ¾ÊÀº Çü½ÄÀ» Ãß°¡ÇÒ ¶§
#ƯÁ¤ ÆÄÀÏÀÇ È®ÀåÀÚ¸¦ Çڵ鷯¸¦ ÅëÇؼ­ ó¸®Ç϶ó°í ¾ÆÆÄÄ¡¿¡°Ô ¾Ë¸®´Â Áö½ÃÀÚ
#ÁöÁ¤ ŸÀÔ¿¡ ÇØ´çÇÏ´Â Çڵ鷯°¡ ÇÊ¿ä ÇÒ ¶§´Â AddHandler¿Í °°ÀÌ »ç¿ë
#AddType test/html .shtml
#AddHandler server.parsed .shtml

    AddType application/x-tar .tgz

    # And for PHP 4.x, use:
    AddType application/x-httpd-php .php
    AddType application/x-httpd-php-source .phps
#PHPÀ» »ç¿ëÇϱâ À§Çؼ­

    #AddHandler cgi-script .cgi
#CGI»ç¿ëÇϱâ À§Çؼ­´Â
#1. AddHandler cgi-script .cgi¿¡¼­ #Á¦°Å
#2. <directory /home/httpd/cgi-bin>
     options ExecCGI
    </directory>


    #AddType text/html .shtml
    #AddHandler server-parsed .shtml
    #AddHandler send-as-is asis
    #AddHandler imap-file map
    #AddHandler type-map var
</IfModule>

========================================================================

# Format: Action media/type /cgi-script/location
# Format: Action handler-name /cgi-script/location
#MetaDir .web
#MetaSuffix .meta

#    1) plain text
#ErrorDocument 500 "The server made a boo boo.
#  n.b.  the single leading (") marks it as text, it does not get output

#    2) local redirects
#ErrorDocument 404 /missing.html
#  to redirect to local URL /missing.html
#ErrorDocument 404 /cgi-bin/missing_handler.pl
#  N.B.: You can redirect to a script or a document using server-side-includes.

#    3) external redirects
#ErrorDocument 402 http://some.other_server.com/subscription_info.html
#  N.B.: Many of the environment variables associated with the original
#  request will *not* be available to such a script.

<IfModule mod_setenvif.c>
    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
</IfModule>

#<Location /server-status>
#    SetHandler server-status
#    Order deny,allow
#    Deny from all
#    Allow from .your_domain.com
#</Location>

#<Location /server-info>
#    SetHandler server-info
#    Order deny,allow
#    Deny from all
#    Allow from .your_domain.com
#</Location>

#<Location /cgi-bin/phf*>
#    Deny from all
#    ErrorDocument 403 http://phf.apache.org/phf_abuse_log.cgi
#</Location>

#<IfModule mod_proxy.c>
#    ProxyRequests On
#    <Directory proxy:*>
#¾ÆÆÄÄ¡ À¥ ¼­¹ö¸¦ ÇÁ·Ï½Ã ¼­¹ö·Î »ç¿ëÇÏ°í ½ÍÀ» ¶§ »ç¿ë
#        Order deny,allow
#        Deny from all
#        Allow from .your_domain.com
#    </Directory>
    # Enable/disable the handling of HTTP/1.1 "Via:" headers.
    # ("Full" adds the server version; "Block" removes all outgoing Via: headers)
    # Set to one of: Off | On | Full | Block
#    ProxyVia On
    # To enable the cache as well, edit and uncomment the following lines:
    # (no cacheing without CacheRoot)
    #
#    CacheRoot "/usr/local/httpd/proxy"
#    CacheSize 5
#    CacheGcInterval 4
#    CacheMaxExpire 24
#    CacheLastModifiedFactor 0.1
#    CacheDefaultExpire 1
#    NoCache a_domain.com another_domain.edu joes.garage_sale.com
#</IfModule>

### Section 3: Virtual Hosts  - ¿©±â ÂüÁ¶

# Use name-based virtual hosting.

#NameVirtualHost *

# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for requests without a known
# server name.

#<VirtualHost *>
#    ServerAdmin webmaster@dummy-host.example.com
#    DocumentRoot /www/docs/dummy-host.example.com
#    ServerName dummy-host.example.com
#    ErrorLog logs/dummy-host.example.com-error_log
#    CustomLog logs/dummy-host.example.com-access_log common
#</VirtualHost>


  ÃßõÇÏ±â   ¸ñ·Ïº¸±â

Copyright 1999-2024 Zeroboard / skin by zero