ããã¾ã§ãªãã¨ãªãã®ç¥èã§webãµã¼ãã使ã£ã¦ããã®ã§ãããããããåºç¤ãããã£ã¡ãåºãã¦ããå¿ è¦ãããããã§ããwebãµã¼ãã¼ã¨ãã¦ã¯apache以å¤ã«ãlighttpdã¨ãnginx(ãããããã£ãã)ã¨ãããã¾ããããã£ã±ãapacheãåºæ¬ã ã¨æãã®ã§ï¼ãã¨ããã¥ã¡ã³ããå¤ãããï¼ãapacheã«ãã©ã¼ã«ã¹ãã¦æ°ã«ãªãé¨åãã¾ã¨ãã¦ãããã¨æãã¾ãã
ã»ã¯ã·ã§ã³ã³ã³ãã
ç¯å²ãæå®ãããã£ã¬ã¯ãã£ãã®ãã¨ã
ã»ã¯ã·ã§ã³ã³ã³ããã®é©ç¨é åº
ã®é ã§è§£éããããªããå¾ã®è¨å®ãåã®è¨å®ãä¸æ¸ããã¾ãã
è¤æ°ã®ãåå¨ããå ´å
ä¸è¨ã®ãããªé©ç¨é åºã«ãªããå¾ã®è¨å®ãåã®è¨å®ãä¸æ¸ããã¾ãã
- æ£è¦è¡¨ç¾ã使ãããã£ã¬ã¯ããªåãçã
- æ£è¦è¡¨ç¾ã使ãããã£ã¬ã¯ããªåãé·ã
- æ£è¦è¡¨ç¾ã使ããã¡ã¤ã«ã®ç»å ´é
DirectoryIndex
ãã¡ã¤ã«åãæå®ããã«ã¢ã¯ã»ã¹ããå ´åã«è¡¨ç¤ºãããã¼ã¸ãã¤ã¾ãã¤ã³ããã¯ã¹ãã¼ã¸ã®ååãæå®ãããã£ã¬ã¯ãã£ãã§ãã
Optionsãã£ã¬ã¯ãã£ã
ããããªè¨å®ããããã£ã¬ã¯ãã£ããOptionsãæ¸ããªãã£ãå ´åã¯ãä¸è¨ã®ããã«æ¸ããã®ã¨åãã«ãªãã¾ãã
Options ALL
ä¾
é常ãã¿ã¼ã³
Options Indexes ExecCGI
+, -ã§è¨å®ã®è¿½å ï¼åé¤ãã§ãã¾ã
Options +Indexes -ExecCGI
é常ãã¿ã¼ã³ãè¤æ°æ¸ããå ´åã¯ãå¾ã«æ¸ããè¨å®ã®æ¹ãæå¹ã«ãªãã¾ãã
Optionsãã£ã¬ã¯ãã£ãã®ãªãã·ã§ã³
All
MutiView以å¤ã®å ¨ã¦ã®ãªãã·ã§ã³ãæå®ããã®ã¨åãã§ãã
ExecCGI
CGIã¹ã¯ãªããã®å®è¡ã許å¯ãã¾ãã
FollowSymLinks
ã·ã³ããªãã¯ãªã³ã¯ã辿ãã®ã許å¯ãã¾ãã
SymLinksIfOwnerMatch
ãã¡ã¤ã«ããã£ã¬ã¯ããªã®ææè ã¨ã·ã³ããªãã¯ãªã³ã¯ã®ææè ãåä¸ã®å ´åã ãããµã¼ãããªã³ã¯ã辿ããã¨ã許å¯ãããã ãããã»ãã¥ãªãã£ãèããã¨ãFollowSymLinksããããã¡ãã使ã£ãæ¹ãããããã
Includes
SSIã®å©ç¨ã許å¯ãã¾ããSSI(Server-Side Include)ã¨ã¯ãä»ã®ãã¡ã¤ã«ãããã°ã©ã ã®å®è¡çµæããã¼ã¸ã®ä¸é¨ã«çµã¿è¾¼ãæ©è½ãæãã¾ããRailsãPHPã使ã£ã¦ããå ´åã¯ä½¿ããªãæ©è½ã§ãã
IncludesNOEXEC
#exec cmdåã³#exec cgi以å¤ã®SSIã®å©ç¨ã許å¯ãã¾ãã
Indexes
ã¯ã©ã¤ã¢ã³ãããã£ã¬ã¯ããªã®URLãè¦æ±ãã¦ãã¦ããã¤ã¤ã³ããã¯ã¹ãã¡ã¤ã«ãåå¨ããªãå ´åã«ãã£ã¬ã¯ããªæ§æã表示ããã
MultiViews
MultiViewsããµãã¼ããMultiViewsã¨ã¯ããªã¯ã¨ã¹ããããã«åããã¦ã¬ã¹ãã³ã¹ãå¤æ´ã§ããããã«ããä»çµã¿ã§ãã詳ããã¯ä¸è¨ãåèã®ãã¨ã
Aliasãã£ã¬ã¯ãã£ã
Aliasãã£ã¬ã¯ãã£ãã使ãã¨ãããã¥ã¡ã³ãã«ã¼ãã®å¤ã®ãã£ã¬ã¯ããªãå ¬éã§ãã¾ããapache2.2ç³»ã§ããã°ããã®ãããã®è¨å®ã¯httpd-autoindex.confã«æ¸ãã¦ããã¾ãã
ä¾
Alias /icons "/usr/local/apache2/icons"
ä¸è¨ã®ããã«æ¸ãã¦ããããã©ãããããã¨http://www.example.com/iconsã®ããã«æ«å°¾ã®"/"ãçããã¨ãã«NotFoundã«ãªãã®ã§ãicons/index.htmlã«ã¢ã¯ã»ã¹ããããã¨ãã¯ä¸è¨ã®æ¸ãæ¹ã®æ¹ãããã¨æãã¾ã(æ¬æ¥ã¯Apacheå´ã§ãã£ã¬ã¯ããªããã¡ã¤ã«ãã®å¤å¥ããããã®ã¯ééããããã®ã§ãä¸è¨ã®æ¸ãæ¹ã§åé¡ãªãã¨ãã¯ä¸è¨ã®ããã«æ¸ããæ¹ãããã¿ãã)ã
Alias /icons/ "/usr/local/apache2/icons/"
æ£è¦è¡¨ç¾ã使ãããå ´åã¯
æ£è¦è¡¨ç¾ã使ãããæã¯ãAliasMatchãã£ã¬ã¯ãã£ãã使ãã¾ãã
AddType
MIMEã¿ã¤ãã¨æ¡å¼µåã®é¢é£ã¥ãã«ä½¿ããã£ã¬ã¯ãã£ãã§ããããã©ã«ãã§ã»ã¨ãã©è¨å®ããã¦ãããããªã®ã§ããã¾ãè¨å®ããæ©ä¼ã¯ãªãããããã¾ããã
åè
Apacheãã³ããã㯠| |
Ben Laurie ããããå¹³å LINUXä¸ã®WEBãµã¼ãã®åºæ¬ Apache使ãå¿ é Amazonã§è©³ããè¦ã by G-Tools |
ã§ããPRO Apache Webãµã¼ãã¼ Apache2/1.3å¯¾å¿ (ã§ããPROã·ãªã¼ãº) | |
è¾» ç§å
¸ ããããå¹³å 第2å·è²·ãã¾ãã è¯ãæ¬ã¨ã¯æãã¾ããåå¿è åãã§ã¯ç¡ãã¨æãã¾ãã Amazonã§è©³ããè¦ã by G-Tools |