µî·ÏÀÏ 2006-02-25 15:07:03 Á¶È¸¼ö 190
ÀÛ¼ºÀÚ cse777 µµ¸ÞÀÎ
Á¦¸ñ Å×ÅÍÅøÁî ¼³Ä¡Áß¿¡
¾È³çÇϼ¼¿ä.
¿ì¶ß³ÝÀÔ´Ï´Ù.

À¥¼­¹ö¿¡ rewrite ¸ðµâÀº ¼³Á¤µÇ¾î ÀÖÀ¸³ª.
´ÜÁö .htaccess ÆÄÀÏ¿¡¼­ ´Ù¾çÇÑ ¼³Á¤ÀÌ ¸·Çô ÀÖ½À´Ï´Ù.

°í°´´ÔÀÇ virtual ¼³Á¤¿¡
<Directory "/home/cse777/public_html/tt">
Options FollowSymLinks
AllowOverride FileInfo
</Directory>

¼³Á¤À» ÇÏ¿© µå·È½À´Ï´Ù.

°¨»çÇÕ´Ï´Ù.


> --------------------- :: cse777 wrote :: ----------------------- <
ÀÌ·± °æ°í°¡ ¶ß´õ±º¿ä.
-----------------------------------------------------------------------------------------------
Apache Rewrite Engine
Rewrite¸¦ »ç¿ëÇÒ ¼ö ¾ø½À´Ï´Ù.
´ÙÀ½ Ç׸ñÀ» È®ÀÎÇϽʽÿÀ.
À¥¼­¹ö ¼³Á¤¿¡ mod_rewriteÀÇ ·ÎµùÀÌ Æ÷ÇԵǾî¾ß ÇÕ´Ï´Ù.
¿¹: LoadModule rewrite_module modules/mod_rewrite.so
À¥¼­¹ö ¼³Á¤ÀÇ ÀÌ µð·ºÅ丮¿¡ ´ëÇÑ Options Ç׸ñ¿¡ FollowSymLinks°¡ Æ÷ÇԵǰųª AllÀ̾î¾ß ÇÕ´Ï´Ù.
¿¹: Options FollowSymLinks
¿¹: Options All
À¥¼­¹ö ¼³Á¤ÀÇ ÀÌ µð·ºÅ丮¿¡ ´ëÇÑ AllowOverride Ç׸ñ¿¡ FileInfo°¡ Æ÷ÇԵǰųª AllÀ̾î¾ß ÇÕ´Ï´Ù.
¿¹: AllowOverride FileInfo
¿¹: AllowOverride All
À§ 2¿Í 3ÀÇ ¹®Á¦´Â ¾Æ·¡ ³»¿ëÀ» À¥¼­¹ö ¼³Á¤¿¡ Æ÷ÇÔ½ÃÄÑ ÇØ°áÇÒ ¼ö ÀÖ½À´Ï´Ù.
<Directory "/home/cse777/public_html/tt">
Options FollowSymLinks
AllowOverride FileInfo
</Directory>
---------------------------------------------------------------------------------------------------
rewrite°¡ ¸·ÇôÀÖ´Ü ¶æÀΰ¡¿ä?
mod_rewrite¸¦ ¿­¾îÁֽñ⠹ٶø´Ï´Ù.