[Áú¹®] °èÁ¤»ç¿ëÀÚÀε¥ *.ph ÆÄÀÏÀ» PHP·Î *.htmlÀ» HTMLÄÚµå·Î ¸¸ »ç¿ëÇÏ°í ½Í½À´Ï´Ù.
À¥È£½ºÆà °èÁ¤»ç¿ëÀÚÀÔ´Ï´Ù.
*.ph *.inc ÆÄÀÏ¿¡ PHP Äڵ带 »ç¿ëÇÒ ¼ö´Â Àִµ¥ Á÷Á¢ URL¿¡ È£ÃâÇÏ¸é ¸ðµç ¼Ò½º°¡
º¸ÀÔ´Ï´Ù.
¶ÇÇÑ ±âº»ÀûÀ¸·Î *.html¿¡ ´ëÇؼ PHPÄڵ带 »ç¿ëÇÒ ¼ö ÀÖµµ·Ï ¼³Á¤µÇ¾î Àִµ¥
ƯÁ¤ µð·ºÅ丮(ÀÏ¹Ý »ç¿ëÀÚ°¡ ÆÄÀÏ ¾÷·ÎµåÇÑ µð·ºÅ丮)¿¡ ÀÖ´Â *.html *.htm ÆÄÀÏ¿¡ ÇÑÇؼ
PHPÄڵ带 ½ÇÇàÇÏÁö ¾Ê°í HTML·Î Ŭ¶óÀ̾ðÆ®¿¡°Ô Àü´ÞÇÏ°íÀÚ ÇÕ´Ï´Ù.
¾î¶»°Ô ÇؾßÇϳª¿ä?
[´äº¯]
¿ì¼± ÀÚ½ÅÀÇ °èÁ¤ µð·ºÅ丮 ÀÌÇÏ¿¡¼ .htaccess ÆÄÀÏÀ» »ç¿ë °¡´ÉÇÑÁö¿¡ ´ëÇؼ ¿ì¼± Á¡°ËÇØ º¾´Ï´Ù.
¶ÇÇÑ ÃÖ¼ÒÇÑ AddType Áö½ÃÀÚ¸¦ »ç¿ëÇÒ ¼ö ÀÖ¾î¾ßÇÕ´Ï´Ù.
ÀÌ´Â ¼¹ö°ü¸®ÀÚ¿¡°Ô ¹®ÀÇÇؼ ´ÙÀ½°ú °°ÀÌ µÇ¾î ÀÖ´ÂÁö È®ÀÎÇØ º¾´Ï´Ù.
----------------------------------------------------------
AllowOverride All (¶Ç´Â FileInfo³ª Á»´õ Á¦ÇÑÀûÀÎ ±â´É)
----------------------------------------------------------
À§¿Í °°Àº Á¶°ÇÀÌ ¸¸Á·Çϸé .htaccess ÆÄÀÏÀ» »ý¼º/¼³Á¤Çؼ ¸¶ÀÓŸÀÔÀ» Á¶Á¤ÇÕ´Ï´Ù.
--DocumentRoot/.htaccess ----------------------------------
Order allow, deny
Deny from all
AddType application/x-httpd-php .php .php3 .ph .lib .inc .conf
AddType application/x-httpd-php-source .phps
-----------------------------------------------------------
ÆÄÀÏ ¾÷·Îµå µð·ºÅ丮·Î À̵¿ÇÑ ´ÙÀ½ .htaccess ÆÄÀÏÀ» ¸¸µé°í ´ÙÀ½°ú °°ÀÌ
text/html ¸¶ÀÓŸÀÔÀ» ÀçÁ¶Á¤ÇÕ´Ï´Ù.
-- /path/to/file_upload_dir/.htaccess--------------------------
AddType text/html .html .htm
-----------------------------------------------------------
Á¶±Ý´õ ÀÚ¼¼ÇÑ ³»¿ëÀ» º¸·Á¸é ´ÙÀ½ÀÇ ¹®¼¸¦ º¸±â ¹Ù¶ø´Ï´Ù.
http://www.linuxchannel.net/docs/apache-allowoverride.txt