µî·ÏÀÏ | 2008-11-10 18:16:22 | Á¶È¸¼ö | 278 |
ÀÛ¼ºÀÚ | bosungtex | µµ¸ÞÀÎ | bosungtex.com |
Á¦¸ñ | $DOCUMENT_ROOT | ||
$DOCUMENT_ROOT ±âÁ¸ÇÁ·Î±×·¥ÀÌ ´Ù Àú·¸°Ô µÇÀÖ¾î¼ °íÄ¡±â¿¡´Â ³Ê¹« ½Ã°£ÀÌ ¸¹ÀÌ °É¸³´Ï´Ù. regist_global = on À¸·Î ÇÒ¼öÀÖ´Â ¹æ¹ýÀÌ ¿©·¯°¡Áö·Î ¾Ë°íÀÖ½À´Ï´Ù. ²ÀµÇ¾ßÇؼ¿ä ºÎŹµå¸³´Ï´Ù. 1. php.ini ÆÄÀÏ¿¡¼ ¼³Á¤°ªÀ» º¯°æÇÕ´Ï´Ù. register_global Off ¸¦ register_global On ·Î º¯°æÈÄ ¾ÆÆÄÄ¡¸¦ Àç½ÃÀÛÇÕ´Ï´Ù. php.ini ÆÄÀÏ °æ·Î´Â phpinfo()·Î Âï¾îº¸½Ã¸é µË´Ï´Ù. 2. ¾ÆÆÄÄ¡ httpd.conf ¼³Á¤ÆÄÀÏ º¯°æ¹æ¹ý <VirtualHost *:80> DocumentRoot /home/domain/www ServerName domain.com ServerAlias *.domain.com php_value register_globals 1 <= À̺κÐÀ» Ãß°¡ÇÕ´Ï´Ù. </VirtualHost> 3. .htaccess ÀÌ¿ë¹æ¹ý ¾ÆÆÄÄ¡¿¡¼ .htaccess ÆÄÀÏÀ» »ç¿ëÇÒ¼öÀÖ°Ô ¼³Á¤ÀÌ µÇÀÖ´Ù¸é Ȩµð·ºÅ丮(public_html, www, html) ¾Æ·¡ .htaccess ÆÄÀÏÀ» ¸¸µì´Ï´Ù. .htaccess ------------------------------------- php_flag register_globals on ------------------------------------- |