# This controls which options the .htaccess files in directories can
# override. Can also be "All", or any combination of "Options", "FileInfo",
# "AuthConfig", and "Limit"
AllowOverride None
# /usr/local/etc/httpd/cgi-bin should be changed to whatever your
# ScriptAliased CGI directory exists, if you have that configured.
cgi-binµð·ºÅ丮¿¡ ´ëÇÑ Options¸¦ ÁöÁ¤ÇÑ´Ù. ¿É¼ÇÀº htdocs ¼³Á¤ÀÇ ¿É¼Ç°ú °°´Ù.
HostnameLookups on
À¥¼¹ö¿¡ ´ëÇÑ Á¢±ÙÀ» µµ¸ÞÀÎ ³×ÀÓÀ̳ª ipÁÖ¼Ò (on) ¶Ç´Â ipÁÖ¼Ò¸¸À¸·Î(off)
Á¢±ÙÇÏ°Ô ÇÒ °ÍÀÎÁö¸¦ °áÁ¤ÇÏ´Â °ÍÀÌ´Ù.
# If you wish httpd to run as a different user or group, you must run
# httpd as root initially and it will switch.
# User/Group: The name (or #number) of the user/group to run httpd as.
# On SCO (ODT 3) use User nouser and Group nogroup User nobody
Group #-1
ServerTypeÀÌ standaloneÀÏ ¶§¸¸ Àû¿ëµÇ´Â °ÍÀ¸·Î ¼¹ö°¡ »ç¿ëÀÚÀÇ ¿äû¿¡ ´ëÇؼ
»ý¼ºÇÏ´Â child httpd ÇÁ·Î¼¼½º¿¡ ´ëÇÑ user id, group id ÀÌ´Ù. ÀϹÝÀûÀ¸·Î
½Ã½ºÅÛ¿¡¼ »ç¿ëÇÏÁö ¾Ê´Â °Íµé·Î ÁöÁ¤ÇÏ´Â °ÍÀÌ ¹Ù¶÷Á÷ÇÏ´Ù. ½½·¢ 3.1±â¹Ý
¹èÆ÷º»¿¡´Â /etc/group¿¡ nogroup -2°¡ ÁöÁ¤µÇ¾î ÀÖ´Ù.
# ServerAdmin: Your address, where problems with the server should be
# e-mailed.
ServerAdmin you@your.address
¼¹ö °ü¸®ÀÚÀÇ e-mail ÁÖ¼Ò¸¦ ÁöÁ¤ÇÑ´Ù.
# ServerRoot: The directory the server's config, error, and log files
# are kept in
ServerRoot /usr/local/etc/httpd
¼¹öÀÇ Root µð·ºÅ丮¸¦ ÁöÁ¤ÇÑ´Ù.
# ErrorLog: The location of the error log file. If this does not start
# with /, ServerRoot is prepended to it.
ErrorLog logs/error_log
¼¹ö¿¡¼ ¹ß»ýÇÏ´Â ¿¡·¯¸¦ ±â·ÏÇÏ´Â ·Î±× ÆÄÀÏÀ» ÁöÁ¤ÇÑ´Ù.
# TransferLog: The location of the transfer log file. If this does not
# start with /, ServerRoot is prepended to it.
TransferLog logs/access_log
¼¹ö¿¡ ´ëÇÑ »ç¿ëÀÚµéÀÇ ¿¢¼¼½º Á¤º¸¸¦ ±â·ÏÇÏ´Â ·Î±×ÆÄÀÏÀ» ÁöÁ¤ÇÑ´Ù.
# PidFile: The file the server should log its pid to
PidFile logs/httpd.pid
httpd µ¥¸ó ÇÁ·Î¼¼½ºÀÇ ÇÁ·Î¼¼½º id¸¦ ±â·ÏÇÏ°í ÀÖ´Â ÆÄÀÏÀ» ÁöÁ¤ÇÑ´Ù.
# ScoreBoardFile: File used to store internal server process information
ScoreBoardFile logs/apache_status
¼¹ö ÇÁ·Î¼¼½ºÀÇ Á¤º¸¸¦ ´ã°í ÀÖ´Â ÆÄÀÏÀ» ÁöÁ¤ÇÑ´Ù.
# ServerName allows you to set a host name which is sent back to clients
# for your server if it's different than the one the program would get (i.e.
# use "www" instead of the host's real name).
#
# Note: You cannot just invent host names and hope they work. The
# name you define here must be a valid DNS name for your host. If you
# don't understand this, ask your network administrator.
#ServerName new.host.name
¼¹öÀÇ µµ¸ÞÀÎ ³×ÀÓÀ» ÁöÁ¤ÇÑ´Ù. ÀÚ½ÅÀÇ ¼¹ö°¡ µµ¸ÞÀÎ ³×ÀÓÀ» °¡ÁöÁö ¾Ê¾Ò´Ù¸é
³öµÐ´Ù. °¡Á³´Ù¸é È°¼ºÈ ½ÃÄÑÁÖ°í µµ¸ÞÀÎ ³×ÀÓÀ» ±âÀÔÇÑ´Ù.
# KeepAlive: The number of Keep-Alive persistent requests to accept
# per connection. Set to 0 to deactivate Keep-Alive support
KeepAlive 5
Á¢¼ÓµÈ ä·Î Ưº°ÇÑ ¿äûÀÌ ¾øÀ½¿¡µµ °è¼Ó ¿¬°áÀ» À¯Áö½Ãų ¼öÄ¡¸¦ ÁöÁ¤ÇÑ´Ù.
# KeepAliveTimeout: Number of seconds to wait for the next request
KeepAliveTimeout 15
KeepAlive°¡ ÁöÁ¤µÇ¾úÀ» ¶§ ´ÙÀ½ ¿äûÀ» ±â´Ù¸®´Â ¼öÄ¡¸¦ ÃÊ ´ÜÀ§·Î ÁöÁ¤ÇÑ´Ù.
# Limit on total number of servers running, i.e., limit on the number
# of clients who can simultaneously connect --- if this limit is ever
# reached, clients will be LOCKED OUT, so it should NOT BE SET TOO
LOW.
# It is intended mainly as a brake to keep a runaway server from taking
# Unix with it as it spirals down...
MaxClients 150
Çѹø¿¡ Á¢±Ù °¡´ÉÇÑ Å¬¶óÀ̾ðÆ®ÀÇ ¼öÄ¡¸¦ ÁöÁ¤ÇÑ´Ù.
# MaxRequestsPerChild: the number of requests each child process is
# allowed to process before the child dies.
# The child will exit so as to avoid problems after prolonged use when
# ¾ÆÆÄÄ¡ (and maybe the libraries it uses) leak. On most systems, this
# isn't really needed, but a few (such as Solaris) do have notable leaks
# in the libraries.
MaxRequestsPerChild 30
child ÇÁ·Î¼¼½º°¡ ÀÀ´äÇÒ ¼öÄ¡¸¦ ÁöÁ¤ÇÑ´Ù. ¾Æ¸¶ ¸®´ª½º¿¡¼´Â »ó°ü ¾ø´Â µíÇÏ´Ù.
# Proxy Server directives. Uncomment the following line to
# enable the proxy server:
#ProxyRequests On
¾ÆÆÄÄ¡ ¼¹ö´Â ÇÁ¶ô½Ã ¼¹öÀÇ ±â´Éµµ Çϴµ¥ onÀ¸·Î È°¼ºÈ ½ÃÄÑÁÖ¸é µÈ´Ù.
# To enable the cache as well, edit and uncomment the following lines:
#CacheRoot /usr/local/etc/httpd/proxy
#CacheSize 5
#CacheGcInterval 4
#CacheMaxExpire 24
#CacheLastModifiedFactor 0.1
#CacheDefaultExpire 1
#NoCache adomain.com anotherdomain.edu joes.garage.com
ÇÁ¶ô½Ã ¼¹ö¸¦ ÁöÁ¤ÇßÀ» ¶§ ÇÊ¿äÇÑ ¼³Á¤µéÀÌ´Ù.
Virtual È£½ºÆ® °ü·ÃµÈ ºÎºÐÀº mini FAQÀÇ Virtual-Web¹®¼¸¦ Àо±â ¹Ù¶õ´Ù.
srm.conf
# DocumentRoot: The directory out of which you will serve your
# documents. By default, all requests are taken from this directory, but
# symbolic links and aliases may be used to point to other locations.
DocumentRoot /usr/local/etc/httpd/htdocs
'access.conf'ÀÇ DocumentRoot ÁöÁ¤ºÎºÐ°ú µ¿ÀÏÇÏ´Ù.
# UserDir: The name of the directory which is appended onto a user's
# home directory if a ~user request is recieved.
UserDir public_html
½Ã½ºÅÛÀ» »ç¿ëÇÏ´Â ÀÏ¹Ý »ç¿ëÀÚµéÀÇ °³ÀÎ À¥ Ȩ µð·ºÅ丮¸¦ ÁöÁ¤ÇÑ´Ù.
$HOME/public_html µð·ºÅ丮¸¦ ¸¸µé¾î¼ ȨÆäÀÌÁö¸¦ µî·ÏÇÒ ¼ö ÀÖ´Ù.
µð·ºÅ丮¸íÀº ¼¹ö °ü¸®ÀÚ°¡ º¯°æÇÒ ¼ö ÀÖ´Ù.
# DirectoryIndex: Name of the file or files to use as a pre-written HTML
# directory index. Separate multiple entries with spaces.
DirectoryIndex index.html
ƯÁ¤ ÆÄÀÏÀ» ÁöÁ¤ÇÏÁö ¾Ê°í µð·ºÅ丮¸¸ ÁöÁ¤ÇßÀ» ¶§ ºÒ·¯µéÀÏ ¹®¼¸¦ ÁöÁ¤ÇÑ´Ù.
# AddIcon tells the server which icon to show for different files or
# filename extensions
AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip
AddIconByType (TXT,/icons/text.gif) text/*
....(Áß·«)
AddIcon /icons/folder.gif ^^DIRECTORY^^
AddIcon /icons/blank.gif ^^BLANKICON^^
ÁöÁ¤µÈ ¾ÆÀÌÄÜ ¸ñ·ÏÀÌ´Ù.
# IndexIgnore is a set of filenames which directory indexing should ignore
# Format: IndexIgnore name1 name2...
IndexIgnore */.??* *~ *# */HEADER* */README* */RCS
µð·ºÅ丮¸¦ Ãâ·ÂÇÒ ¶§ ¹«½ÃÇÒ ÆÄÀϵéÀ» ÁöÁ¤ÇÑ´Ù.
# AccessFileName: The name of the file to look for in each directory
# for access control information.
AccessFileName .htaccess
¼¹ö°¡ µð·ºÅ丮¸¦ Ãâ·ÂÇÒ ¶§ Âü°íÇÒ ÆÄÀÏÀ» ÁöÁ¤ÇÑ´Ù.
# DefaultType is the default MIME type for documents which the server
# cannot find the type of from filename extensions.
DefaultType text/plain
»ç¿ëÀÚÀÇ ¿äûÀ¸·Î °¢ ÆÄÀÏ¿¡ ´ëÇÑ ÇൿÀ» ÃëÇÒ ¶§ ¼¹ö°¡ ¾ËÁö ¸øÇÏ´Â Çü½ÄÀÇ
ÆÄÀÏÀÏ °æ¿ì Ç¥½Ã Çü½ÄÀ» ÁöÁ¤ÇÑ´Ù.
# AddEncoding allows you to have certain browsers (Mosaic/X 2.1+)
# uncompress information on the fly. Note: Not all browsers support this.
AddEncoding x-compress Z
AddEncoding x-gzip gz
¾ÐÃà Äڵ忡 ´ëÇÑ ÀÎÄÚµùÁ¤º¸¸¦ ÁöÁ¤ÇÑ´Ù.
# 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
# theclients where to look for the relocated document.
# Format: Redirect fakename url
°¡»ó ÀÚ·áÆÄÀÏÀ» url¿¡ ÁöÁ¤µÈ ¹®¼·Î Redirect ÇÑ´Ù.
# Aliases: Add here as many aliases as you need (with no limit). The for
# mat is Alias fakename realname
#Alias /icons/ /usr/local/etc/httpd/icons/
ÆÄÀϸíÀ̳ª µð·ºÅ丮¸íÀ» alias ÇÒ ¼ö ÀÖ´Ù. È°¼ºÈ ½ÃÄÑÁØ´Ù.
# To use server-parsed HTML files
#AddType text/html .shtml
#AddHandler server-parsed .shtml
Server Side Includes (SSI)¸¦ »ç¿ëÇÒ ¶§ ÇÊ¿äÇÏ´Ù. SSI´Â HTMLÆÄÀÏ ¼Ó¿¡ ¾î
¶² ½ÇÇà ÇÁ·Î±×·¥ÀÇ °á°ú³ª ƯÁ¤ ÆÄÀÏÀ» Æ÷ÇÔÇÒ ¼ö ÀÖ°Ô ÇÑ´Ù.
# Uncomment the following line to enable ¾ÆÆÄÄ¡'s send-asis HTTP file
# feature
#AddHandler send-as-is asis
mime type sttpd/send-as-is¿¡ ´ëÇÑ ¼³Á¤ÀÌ´Ù.
# If you wish to use server-parsed imagemap files, use
#AddHandler imap-file map
mime type application/x-httpd-imap¿¡ ´ëÇÑ ¼³Á¤ÀÌ´Ù.
# MetaDir: specifies the name of the directory in which ¾ÆÆÄÄ¡ can find
# meta information files. These files contain additional HTTP headers
# to include when sending the document
#MetaDir .web
# MetaSuffix: specifies the file name suffix for the file containing the
# meta information.