Apache Quick Reference Card

- Revision 1.6 for Apache version 1.3.6
- Andrew Ford refcards.com TM

- ¿øÃâó : http://www.refcards.com/download/apache-refcard.pdf
- ¹®¼­º¯È¯ : ±èÄ¥ºÀ <san2(at)linuxchannel.net>
- ÀÛ¼ºÀÏ : 2000.12.28

*¿ªÁÖ)
ÀÌ ¹®¼­(ÀÌÇÏ'Ä«µå')ÀÇ ¿ø·¡ Æ÷¸ËÀº PDFÀÔ´Ï´Ù.
À¥»ó¿¡¼­ º¸±â°¡ ÁÁÁö ¾Ê¾Æ¼­ °³ÀÎÀûÀ¸·Î HTML ¹®¼­·Î ÀÛ¼ºÇß½À´Ï´Ù.
ÀÌ ¹®¼­°¡ ÀÛ¼ºµÉ ´ç½ÃÀÇ ¾ÆÆÄÄ¡ ¹öÀü°ú ÇöÀçÀÇ ¾ÆÆÄÄ¡ ¹öÀüÀÇ Â÷ÀÌ´Â
ÀÖÁö¸¸ Âü°íÇϴµ¥ Å©°Ô ÁöÀåÀÌ ¾øÀ»µí ÇÕ´Ï´Ù.
¶óÀ̼¾½º´Â »óÀ§ÀÇ ¿øÀÛ¼ºÀÚ¿¡ ÁØÇÕ´Ï´Ù.

ÀÌ Ä«µå´Â ¾ÆÆÄÄ¡ ¹®¼­(http://www.apache.org/docs/)¿¡ ÀÖ´Â Á¤º¸¸¦
¿ä¾àÇÑ °ÍÀÔ´Ï´Ù.

0. ¾à¾î
1. Command line options
2. General configuration directives
3. Sectional directives
4. Logging directives
5. Performance tuning directives
6. File typing directives
7. Mapping directives
8. Scripting directives
9. Directory indexing directives
10. Access control directives
11. Proxy/cache directives
12. Common Gateway Interface (CGI) variables
13. Server Side Includes (SSI)
14. HTTP 1.1 status codes
15. Apache Web Resources
16. Apache Quick Reference Card

 

0. ¾à¾î

C ¾ÆÆÄÄ¡ ÇÙ½É ¸ðµâ °ü·Ã Áö½ÃÀÚ(Core)
B ±âº» ¸ðµâ °ü·Ã Áö½ÃÀÚ(Base)
E È®Àå ¸ðµâ °ü·Ã Áö½ÃÀÚ(Extension)
c ¼³Á¤ÆÄÀÏ ¹üÀ§(configuration)
v °¡»óÈ£½ºÆ® ¼½¼Ç ¹üÀ§(virtual host)
d µð·ºÅ丮 ¼½¼Ç ¹üÀ§(directory)
a Á¢±ÙÁ¦¾î(ÆÄÀÏ) ¹üÀ§(access control)
1.3N ¹öÀü 1.3¿¡¼­ Ãß°¡µÈ ³»¿ë(New)
1.3C ¹öÀü 1.3¿¡¼­ º¯°æµÈ ³»¿ë(Changes)

 

1. Command line options [TOP]

httpd [-d directory] [-f file] [-C directive] [-c directive] [-L] [-l] [-S] [-v] [-V] [-X]

¿É¼Ç ¼³¸í ºñ°í
-d directory º¯°æÇÒ ServerRoot µð·ºÅ丮 -
-D name <IfDefile name>¿¡ »ç¿ëÇÒ nameÀ» ¼³Á¤ -
-f file ¼³Á¤ÆÄÀÏ ÁöÁ¤(conf/httpd.conf) -
-C directive ¼³Á¤ÆÄÀÏÀ» Àбâ Àü¿¡ ÁÖ¾îÁø "directive"¸¦ ¼öÇà 1.3N
-c directive ¼³Á¤ÆÄÀÏÀ» ÀÐÀº ÈÄ¿¡ ÁÖ¾îÁø "directive"¸¦ ¼öÇà 1.3N
-L »ç¿ë°¡´ÉÇÑ ¼³Á¤ Áö½ÃÀÚ ¸®½ºÆ®¸¦ Ãâ·Â 1.3C
-l Á¤Àû¸ðµâ(compiled-in modules) ¸®½ºÆ® Ãâ·Â 1.3C
-S ¼³Á¤ÇÑ °¡»óÈ£½ºÆ® ³»¿ë Ãâ·Â -
-t ¼³Á¤ÆÄÀÏ ±¸¹®Ã¼Å©(°Ë»ç) -
-v ¾ÆÆÄÄ¡ ¹öÀü°ú ºôµåÇÑ ³¯Â¥ Ãâ·Â -
-V ¾ÆÆÄÄ¡ ¹öÀü, ºôµåÇÑ ³¯Â¥, ½Ã°£, ÄÄÆÄÀÏ ÇÒ¶§ ¼³Á¤ÇÑ°ª Ãâ·Â 1.3N
-X ½Ì±Û ÇÁ·Î¼¼½º µð¹ö±× ¸ðµå -

 

2. General configuration directives [TOP]

DocumentRoot µð·ºÅ丮 (/usr/local/apache/htdocs) C cv
ServerRoot µð·ºÅ丮 (/usr/local/apache) C c
AccessConfig ÆÄÀÏÀ̸§ (conf/access.conf) C cv
ResourceConfig ÆÄÀÏÀ̸§ (conf/srm.conf)  C cv
Include ÆÄÀÏÀ̸§ - C cvd 1.3N
TypesConfig ÆÄÀÏÀ̸§ (conf/mime.types) B c
PidFile ÆÄÀÏÀ̸§ (logs/httpd.pid) C c
LockFile ÆÄÀÏÀ̸§ (logs/accept.lock) C c
ScoreBoardFile ÆÄÀÏ (logs/apache_status) C c
ServerAdmin ¸ÞÀÏÁÖ¼Ò C cv
ServerType {inetd|standalone} (standalone) C c
ServerName ¼­¹öÀ̸§ (ÀÚµ¿ ¼³Á¤) C cv
ServerAlias FQDN(±äÀ̸§) ... - C v
ServerSignature {On|Off|Email} (Off) C cvda 1.3N
ServerPath °æ·ÎÀ̸§ - C v
ServerTokens {Min[imal]|OS|Full} (Full) C c 1.3N
BindAddress {*|IPÁÖ¼Ò|FQDN} (*) C c
Listen [IPÁÖ¼Ò:] Æ÷Æ®¹øÈ£ - C c
Port Æ÷Æ®¹øÈ£ (80) C c
User {À¯ÀúÀ̸§|#UID} (#-1) C cv
Group {±×·ìÀ̸§|#GID} (#-1) C cv
NameVirtualHost IPÁÖ¼Ò[:port] - C c 1.3N
UseCanonicalName {On|Off} (On) C cvda 1.3N
CoreDumpDirectory µð·ºÅ丮 (as ServerRoot) C c 1.3N
IdentityCheck {On|Off} (Off) C cvd
ClearModuleList - C c
AddModule ¸ðµâ ... - C c
AddModuleInfo module text - E cv 1.3N
ExtendedStatus {On|Off} (Off) E c 1.3N

 

3. Sectional directives [TOP]

<Directory {pattern|~ regex} > ... </Directory> C cv 1.3C
<DirectoryMatch regex> ... </DirectoryMatch> C cv 1.3N
<Files {pattern|~ regex} > ... </Files> C cvda 1.3C
<FilesMatch regex> ... </FilesMatch> C cvda 1.3N
<Location {pattern|~regex}> ... </Location> C cv 1.3C
<LocationMatch regex> ... </LocationMatch> C cv 1.3N
<VirtualHost pattern> ... </VirtualHost> C c
<IfDefine [!] parameter> ... </IfDefine> C cvda 1.3N
<IfModule [!] module> ... </IfModule> C cvda
<Limit method> ... </Limit> C cvda
<LimitExcept method> ... </LimitExcept> C cvda

* pattern : ÆÐÅÏÀÏÄ¡
* ~regex : Á¤±ÔÇ¥Çö½Ä »ç¿ë

 

4. Logging directives [TOP]

ErrorLog {file|syslog[:facility]}
(logs/error_log) C cv 1.3C
CustomLog file-or-pipe {format-string|format-name} [env=[!] var]
B cv 1.3C
TransferLog file-or-pipe
(logs/access_log) B cv
HostnameLookups {On|Off|Double}
(Off) C cvd 1.3C
RefererIgnore hostname ...
E cv
LogFormat format-string [ format-name]
("%h %l %u %t n "%r n "%s %b") B cv 1.3C
LogLevel {emerg|alert|crit|error|warn|notice|info|debug}
(error) C cv 1.3N

·Î±× Æ÷¸Ë ½ºÆ®¸µ

 

5. Performance tuning directives [TOP]

Timeout ÃÊ´ÜÀ§ ½Ã°£ (300) C c
KeepAlive {On|Off} (300) C c
KeepAliveTimeout ÃÊ´ÜÀ§ ½Ã°£ (15) C c
MaxKeepAliveRequests number (100) C c
MaxClients number (256) C c
MaxRequestsPerChild number - C c
ExcessRequestsPerChild number - E c 1.3N
MaxSpareServers number (10) C c
MinSpareServers number (5) C c
StartServers number (5) C c
ListenBacklog number (511) C c 1.3N
LimitRequestBody nbytes - C cvda 1.3N
LimitRequestFields number (100) C c 1.3N
LimitRequestFieldSize nbytes  (8190) C c 1.3
LimitRequestLine nbytes (8190) C c 1.3N
SendBufferSize bytes - C c
RLimitCPU {secs|max} [{secs|max}] - C cvda
RLimitMEM {bytes|max} [{bytes|max}] - C cvda
RLimitNPROC {nprocs|max} [{nprocs|max}] - C cvda
ThreadsPerChild number (50) C c 1.3N

 

6. File typing directives [TOP]

DefaultType MIME-type (text/html) C cvda
ForceType MIME-type - B da
AddEncoding MIME-encoding extension ... - B cvda
AddLanguage MIME-language extension ... - B cvda
AddType MIME-type extension ... - B cvda
DefaultLanguage MIME-language - C cvda 1.3N
LanguagePriority MIME-language ... - B cvda
XBitHack {On|Off|Full} (Off) B cvda
MetaFiles {On|Off} (Off) C cvda 1.3N
MetaDir dir-name (.web) E cvda 1.3C
MetaSuffix suffix (.meta) E cvda 1.3C
MimeMagicFile filename - E cv 1.3N
ContentDigest {On|Off} (Off) C cvda
ExpiresActive {On|Off} - E cvda
ExpiresBytype MIME-type expiry-code - E cvda
ExpiresDefault expiry-code - E cvda

 

7. Mapping directives [TOP]

Action {MIME-type|handler-name} script - B cvda
Alias url-path real-path - B cv
AliasMatch url-regex path-replacement - B cv 1.3N
ErrorDocument error-code {string|url} - C cvda
UserDir
 {directory|DISABLED[user ...]|ENABLED user ...}
(public_html) B cv 1.3C
Redirect [status] url-path url - B cvda
RedirectMatch [status] url-regex dest-url - B cv 1.3N
RedirectPermanent url-path url-dest - B cvda
RedirectTemp url-path url-dest - B cvda
Script method script - B cvd
ScriptAlias url-path script-dir - B cv
ScriptAliasMatch url-regex script-dir - B cv 1.3N
AddHandler handler-name extension ... - B cvda
RemoveHandler extension ... - B da 1.3N
SetHandler handler-name - B da
ImapBase {map|referer|url} (http://server) B cvda
ImapDefault {error|nocontent|referer|menu|url} (nocontent) B cvda
ImapMenu
 {none|formatted|semiformatted|unformatted}
- B cvda
RewriteBase url - E cvda
RewriteCond test-string cond-pattern [flags] - E cvda
RewriteEngine {On|Off} (Off) E cvda
RewriteLock filename - E cv 1.3N
RewriteLog filename - E cv
RewriteLogLevel digit - E cv
RewriteMap map-name map-type: map-source - E cv 1.3C
RewriteOptions option - E cvda
RewriteRule pattern substitution [ flags] - E cvda 1.3C

 

8. Scripting directives [TOP]

BrowserMatch regexp var[= value] ... - B cv
BrowserMatchNoCase regexp var[= value] ... - B cv
PassEnv varname ... - B cv
SetEnv varname value - B cv
SetEnvIf attribute regex var[= value] ... - B cv 1.3N
SetEnvIfNoCase attribute regex var[= value] ... - B cv 1.3N
UnsetEnv varname ... - B cv
ScriptLog filename - B c
ScriptLogBuffer size-bytes (1024) B c
ScriptLogLength length-bytes (10385760) B c

*NoCase : ´ë¼Ò¹®ÀÚ¸¦ ±¸ºÐÇÏÁö ¾ÊÀ½

 

9. Directory indexing directives [TOP]

DirectoryIndex file ... (index.html) B cvda
ReadmeName filename - B cvda
HeaderName filename - B cvda
IndexIgnore pattern ... - B cvda
IndexOrderDefault {Ascending|Descending} 
{Name|Date|Size|Description}
- B cvda 1.3N
DefaultIcon url - B cvda
AddAlt "string" file ... - B cvda
AddAltByEncoding "string" MIME-encoding ... - B cvda
AddAltByType "string" MIME-type ... - B cvda
AddIcon icon file ... - B cvda
AddIconByType icon MIME-type ... - B cvda
AddIconByEncoding icon MIME-encoding ... - B cvda
AddDescription "description" file-pattern - B cvda
IndexOptions {+option|-option} ...
Valid index options are:
 FancyIndexing, IconsHeight= pixels,
 IconsWidth= pixels, NameWidth= n,
 IconsAreLinks, ScanHTMLTitles,
 SupressColumnSorting, SupressDescription,
 SupressHTMLPreamble, SupressLastModified,
 SupressSize
(no options) B cvda 1.3C

 

10. Access control directives [TOP]

AccessFileName filename ... (.htaccess) C cv 1.3C
AllowOverride directive-group ...
 Valid directive groups are:
 None, All, AuthConfig, FileInfo, Indexes, Limit,
 Options
(All) C d
Options {+feature|-feature} ...
 Valid options are:
 None, All, ExecCGI, FollowSymLinks, Includes,
 IncludesNOEXEC, Indexes, MultiViews,
 SymLinksIfOwnerMatch
(All) C cvda
AuthName realm-name - C da
AuthType type - C da
AuthUserFile filename - B da
AuthGroupFile filename - B da
AuthAuthoritative {On|Off} (On) B da
allow from {all|host ...|env= var} - B da
deny from {all|host ...|env= var} - B da
order {allow,deny|deny,allow|mutual-failure} (deny,allow) B da
Require
 {user user ...| group group ...|valid-user}
- C da
Satisfy {All|Any} (All) C da

* + ¿É¼Ç : »óÀ§ÀÇ ·¹º§¿¡ "¿É¼Ç"À» Ãß°¡
* - ¿É¼Ç : »óÀ§ÀÇ ·¹º§¿¡¼­ "¿É¼Ç"À» Á¦°Å

 

11. Proxy/cache directives [TOP]

NoProxy {host|domain|ip-addr|subnet}... - E cv 1.3N
AllowCONNECT port ... (443 563) E cv 1.3N
ProxyBlock {*|host|domain} ... - E cv
ProxyDomain domain-name - E cv 1.3N
ProxyPass path url - E cv
ProxyPassReverse path url - E cv 1.3N
ProxyReceiveBufferSize number-bytes - E cv 1.3N
ProxyRemote match remote-server - E cv
ProxyRequests {On|Off} (Off) E cv
ProxyVia {On|Off|Full|Block} (Off) E cv 1.3N
CacheDefaultExpire hours (1) E cv
CacheDirLength number (1) E cv
CacheDirLevels number (3) E cv
CacheForceCompletion percentage-complete (90) E cv 1.3N
CacheGcInterval hours - E cv
CacheLastModifiedFactor factor (0.1) E cv
CacheMaxExpire hours (24) E cv
CacheRoot directory - E cv
CacheSize KBytes (5) E cv
NoCache {*|host|domain} ... - E cv

 

12. Common Gateway Interface (CGI) variables [TOP]

AUTH_TYPE ÀÎÁõ½Ã »ç¿ëÇÏ´Â ¹æ¹ý ³ª¿­
CONTENT_LENGTH ¼­¹ö·Î ³Ñ¾î¿À´Â º¯¼ö ±æÀÌ¿¡ ´ëÇÑ Á¤º¸
CONTENT_TYPE ¼­¹ö·Î ³Ñ¾î¿À´Â º¯¼ö¿¡ ´ëÇÑ ¸¶ÀÓŸÀÓ
GATEWAY_INTERFACE CGI ¹öÀü
PATH_INFO URL¿¡¼­ ½ºÅ©¸³Æ® °æ·Î
PATH_TRANSLATED PATH_INFOÀÇ °æ·Î¸¦ ÆÄÀϽýºÅÛ °æ·Î·Î Àüȯ
QUERY_STRING URL¿¡¼­ ÁúÀÇ ¹®ÀÚ¿­(Á¸ÀçÇÑ´Ù¸é), ? ´ÙÀ½¿¡ ¿À´Â ¹®ÀÚ¿­
REMOTE_ADDR ¿ø°ÝÀÇ Å¬¶óÀ̾ðÆ® IP ÁÖ¼Ò
REMOTE_HOST ¿ø°ÝÀÇ Å¬¶óÀ̾ðÆ® DNS À̸§
REMOTE_IDENT identd(°ËÁõ µ¥¸ó)¿¡ ÀÇÇؼ­ °ËÁõµÈ ¿ø°ÝÀÇ À¯Àú ID
REMOTE_USER °ËÁõµÈ À¯ÀúÀÇ À̸§
REQUEST_METHOD HTTP ¿äû ¹æ¹ý
SCRIPT_NAME ½ºÅ©¸³Æ®ÀÇ °¡»ó °æ·Î
SERVER_NAME ¼­¹öÀÇ È£½ºÆ®³×ÀÓ
SERVER_PORT ¼­¹öÀÇ Æ÷Æ®¹øÈ£
SERVER_PROTOCOL ÇÁ·ÎÅäÄÝÀÇ À̸§°ú ¹öÀü
SERVER_SOFTWARE ¼­¹öÀÇ ¼Ò½ºÆ®¿þ¾î À̸§°ú ¹öÀü
HTTP_ACCEPT ºê¶ó¿ìÀú°¡ ¼ö¿ë°¡´ÉÇÑ ¸¶ÀÓŸÀÓ
HTTP_REFERER ÀÌÀü(ÂüÁ¶) ¹®¼­ÀÇ URL
HTTP_USER_AGENT Ŭ¶óÀ̾ðÆ® ¼ÒÇÁÆ®¿þ¾î
MOD_PERL mod_perl ¸ðµâ

 

13. Server Side Includes (SSI) [TOP]

Çü½Ä : <!--# ¸í·É ¼Ó¼º= ¼Ó¼º°ª ... -->

config - ÆĽÌ(parsing) Á¦¾î
- ¼Ó¼º :
errmsg, sizefmt (bytes(¹ÙÀÌÆ®) ¶Ç´Â abbrev(Ãà¾àÇü)Áß Çϳª),
timefmt (strftime Æ÷¸Ë)
echo - ȯ°æ º¯¼ö°ª Ãâ·Â
- ¼Ó¼º :
CGI º¯¼ö³ª ´ÙÀ½Áß ÇϳªÀÇ È¯°æº¯¼ö(DATE_GMT, DATE_LOCAL, DOCUMENT_NAME, DOCUMENT_URI or AST_MODIFIED)
set - ȯ°æ º¯¼ö°ª ¼³Á¤
- ¼Ó¼º : º¯¼ö, º¯¼ö°ª
printenv - ¸ðµç ȯ°æ º¯¼ö¿Í ±× °ªµé Ãâ·Â
exec - ½©¸í·ÉÀ̳ª CGI ½ºÅ©¸³Æ® ½ÇÇà
- ¼Ó¼º : cmd ¶Ç´Â cgi (IncludesNOEXEC »ç¿ëºÒ°¡)
fsize - ÆÄÀÏÀÇ Å©±â Ãâ·Â
- ¼Ó¼º : file ¶Ç´Â virtual
flastmod - ÆÄÀÏÀÇ º¯°æ ½Ã°£ Ãâ·Â
- ¼Ó¼º : file ¶Ç´Â virtual
include - ´Ù¸¥ ¹®¼­ Æ÷ÇÔÇϱâ
- ¼Ó¼º : file ¶Ç´Â virtual
if - Á¶°Ç
- ¼Ó¼º : Ç¥Çö½Ä
elif - Á¶°Ç
- ¼Ó¼º : Ç¥Çö½Ä
else - Á¶°Ç
endif - Á¶°Ç

 

14. HTTP 1.1 status codes [TOP]

 

15. Apache Web Resources [TOP]

 

16. Apache Quick Reference Card [TOP]

A refcards.com TM
quick reference card.
Revision 1.6 for Apache version 1.3.6 [May 1999]
Published by Ford & Mason Ltd.
¨Ï 1998, 1999 Ford & Mason Ltd. All rights reserved.
Permission is granted to print and duplicate this card for persional or
individual, internal business use. Copies of this card (& others) can be
ordered through our web site: http://www.refcards.com, which also
has versions available for downloading.
Please send feedback to: feedback@refcards.com
refcards.com is a trademark of Ford & Mason Ltd.
The Apache feather is used with permission of the Apache Group.


Page loading: 0.00(server) + (network) + (browser) seconds