<?xml version="1.0" encoding="euc-kr" ?>
<?xml-stylesheet type="text/xsl" href="../okjsplec_c.xsl" ?>
<lecture>
	<title>Tomcat4 + Apache1.3.22 ¿¬µ¿(mod_webapp)</title>
	<who>kenu</who>
	<when>2001-10-22 1:06¿ÀÀü</when>
	<what>
		<text>
		¿À·¡ ±â´Ù·È½À´Ï´Ù. ÀÌ ¹®¼­´Â Windows 2000 ¿¡¼­ Tomcat4 ¿Í Apache1.3.22 ¸¦ ¿¬µ¿½ÃÅ°´Â °Í¿¡ ´ëÇÑ ¹®¼­ÀÔ´Ï´Ù. ´Ù¸¥ ¹öÀüÀÌ³ª È¯°æ¿¡¼­´Â Á¦´ë·Î µÇÁö ¾ÊÀ» ¼ö ÀÖÀ¸´Ï °¢ ¹èÆ÷ ÇÁ·Î±×·¥ÀÇ Install ÀÌ³ª Readme ¹®¼­¸¦ ¹Ýµå½Ã ÀÐ¾îº¸½Ê½Ã¿À.
		</text>
		<image>/images/spacer.gif
		</image>
	</what>
	<what>
		<text>
		apache ¸¦ ´Ù¿î¹Þ½À´Ï´Ù. http://httpd.apache.org/dist/httpd/binaries/win32/ 
		¹ÞÀº ÈÄ¿¡ ¼³Ä¡ÇÏ½ÃÁÒ. ¼³Ä¡ÇÒ ¶§ domain ¹°¾î¿À´Âµ¥, µüÈ÷ µµ¸ÞÀÎÀÌ ¾ø´Ù¸é okjsp.pe.kr °ú www.okjsp.pe.kr ·Î ½áÁÖ½Ã¸é µË´Ï´Ù. (127.0.0.1 ·Î Çß´õ´Ï ¾ÈµÇ³×¿ä. ^^; ±×·¡¼­ ´Ù½Ã ¼³Ä¡.)
		</text>
		<image>webapp01_01.gif
		</image>
	</what>
	<what>
		<text>
		¼³Ä¡ÇÏ½Ã±â Àü¿¡ ¸ÕÀú È®ÀÎ ÇÒ °ÍÀÌ ÀÖ½À´Ï´Ù. ¸¸ÀÏ oracleÀÌ ¼³Ä¡µÈ pc ¶ó¸é regedit ¸¦ ½ÇÇà½ÃÄÑ¼­ HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment ÀÇ CurrentVersion °ªÀ» 1.1 ¿¡¼­ 1.3 ÀÌ³ª 1.3.1 ·Î ¹Ù²ãÁÝ´Ï´Ù.
		</text>
		<image>tomcat4_06.gif
		</image>
	</what>
	<what>
		<text>
		Tomcat À» ´Ù¿î¹Þ¾Æ ¼³Ä¡ÇÕ´Ï´Ù. http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0.1/bin/ ¼³Ä¡ ¹®¼­ ÀÖÀ¸´Ï±î º¸½Ã±¸¿ä. windows XP ³ª windows 2000 ÀÌ³ª Å©°Ô Â÷ÀÌ´Â ¾ø½À´Ï´Ù. http://okjsp.pe.kr/lecture/lec01/tomcat4.xml ¼³Ä¡µð·ºÅä¸®´Â c:\Tomcat4 ·Î ÇØÁÖ¼¼¿ä.
		</text>
		<image>webapp01_02.gif
		</image>
	</what>
	<what>
		<text>
		mod_webapp.so ÆÄÀÏÀ» ´Ù¿î¹Þ°Ú½À´Ï´Ù. http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0.1/bin/win32/ 
		</text>
		<image>webapp01_03.gif
		</image>
	</what>
	<what>
		<text>
		unix/linux os ¿¡¼­´Â ÇÊ¿ä¾øÁö¸¸ windows¿¡¼­ ÇÊ¿äÇÑ ÆÄÀÏÀÌ ÀÖ½À´Ï´Ù. ¹Ù·Î libapr.dll ÀÔ´Ï´Ù. ÀÌ µÎ ÆÄÀÏÀ» °°ÀÌ apache°¡ ¼³Ä¡µÈ µð·ºÅä¸®ÀÇ modules µð·ºÅä¸®¿¡ º¹»çÇØ ³Ö¾îÁÝ´Ï´Ù.
		</text>
		<image>webapp01_04.gif
		</image>
	</what>
	<what>
		<text>
		apacheÀÇ confµð·ºÅä¸®¿¡ ÀÖ´Â httpd.conf ¸¦ ¿­¾î¼­ 192¹øÁÙ ¾Æ·¡¿Í 206ÁÙ ClearModuleList ¾Æ·¡¿¡ °¢°¢ ²¸³Ö¾îÁÝ´Ï´Ù.
LoadModule webapp_module modules/mod_webapp.so
AddModule  mod_webapp.c

		</text>
		<image>webapp01_05.gif
		</image>
	</what>
	<what>
		<text>ÀÌÁ¦ Á¦´ë·Î µ¹¾Æ°¡´ÂÁö test ÇØº¸°Ú½À´Ï´Ù. test Configuration À» ½ÇÇà½ÃÅµ´Ï´Ù.
		</text>
		<image>webapp01_06.gif
		</image>
	</what>
	<what>
		<text>
		Syntax OK ¶ó´Â ¸Þ½ÃÁö°¡ ³ª¿Ã°Ì´Ï´Ù. ¾Æ´Ï¸é... ^^; ½É°¢ÇÏÁÒ. ¾î¶² Çö»óÀÎÁö Q&amp;A ¿¡ ¿Ã·Áº¸¼¼¿ä. ´Ù½Ã ÇÑ¹ø ¸»¾¸µå¸³´Ï´Ù¸¸ È¯°æ°ú ¹öÀüÀÌ Áß¿äÇÕ´Ï´Ù. ¹öÀüÀÌ Á¶±ÝÀÌ¶óµµ ´Ù¸£¸é, Àß ¾ÈµÉ ¼ö ÀÖ½À´Ï´Ù. ±× ¶© µý °Å ¾ø½À´Ï´Ù. trial and error. ½ÃÇàÂø¿À¸¦ °ÅÄ¡´Â ¼ö¹Û¿¡¿ä.
		</text>
		<image>webapp01_07.gif
		</image>
	</what>
	<what>
		<text>
		±×·³ ´ÙÀ½ ¼ø¼­·Î ³Ñ¾î°¡°Ú½À´Ï´Ù. httpd.conf ÆÄÀÏÀÇ ¸Ç ¾Æ·¡¿¡ 3ÁÙÀ» Ãß°¡ÇÕ´Ï´Ù. ÀÌ°Í¿¡ ´ëÇÑ ÀÚ¼¼ÇÑ ¼³¸íÀº Á¦°¡ ¹ø¿ªÇÑ ¹®¼­¸¦ ºÁ ÁÖ½Ê½Ã¿À. http://210.122.97.37:8880/okboard/board_view.jsp?bbs=bbs4&amp;pg=1&amp;seq=3490 
		</text>
		<image>webapp01_08.gif
		</image>
	</what>
	<what>
		<text>
		Tomcat À» ½ÃÀÛÇÏ½Ã±¸¿ä. apache ¸¦ ½ÃÀÛÇÕ´Ï´Ù. µÎ ÁÙ·Î ³¡³³´Ï´Ù. net start "tomcat apache" ¿Í net start apache ¶ó°í ÇÏ¸é µÑ ´Ù ½ÃÀÛµË´Ï´Ù. ¿À¶óÅ¬À» ¼³Ä¡ÇÏ¼ÌÀ» °æ¿ì Tomcat.exe °¡ ½ÇÇàµÇÁö ¾Ê´Â °æ¿ì°¡ ÀÖ½À´Ï´Ù. ÀÌ·± °æ¿ì ¿À¶óÅ¬À» Áö¿ì°í ÅèÄ¹À» ´Ù½Ã ±õ´Ï´ÙÀ¸~ ÆÜ@! »çÀÌºñ°°Àº ¹ß¾ðÀÌ¶ó±¸¿ä? À½! Èûµì´Ï´Ù. ÀÌ·± ³­°üÀÌ....
		</text>
		<image>webapp01_09.gif
		</image>
	</what>
	<what>
		<text>
		ÀÏ´Ü ¼­ºñ½º¿¡ ÀÖ´Â ÅèÄ¹ÀÇ ¹®Á¦´Â ³Ñ¾î°¡°í, ½¬ÀÍ! ½Ï,(³¯¾Æ¿À´Â ÁÖ¸Ô ÇÇÇÏ´Â ¼Ò¸®. ÇìÇì) ½ÃÀÛ> ÇÁ·Î±×·¥> Apache Tomcat 4.0 > start Tomcat À» Å¬¸¯ÇÕ´Ï´Ù. 
		</text>
		<image>webapp01_10.gif
		</image>
	</what>
	<what>
		<text>
		±×¸®°í ³ª¿À´Â ´ëÈ­»óÀÚ¿¡¼­ Ã£¾Æº¸±â ¹öÆ°À» Å¬¸¯ÇÕ´Ï´Ù. ÇöÀç oracle ÀÇ jre/bin/java.exe ·Î ¿¬°áµÇ¾î ÀÖ´Â °ÍÀ» c:\jdk1.3\bin\java ·Î ¿¬°á´ë»óÀ» ¹Ù²ß´Ï´Ù. ¿À¶óÅ¬ÀÌ À¢¼öÁÒ. stop Tomcat µµ °°Àº Ã³¸®¸¦ ÇØÁÖ¸é µË´Ï´Ù.
		</text>
		<image>webapp01_11.gif
		</image>
	</what>
	<what>
		<text>
		Tomcat Ã¢ÀÌ ¶° ÀÖ´Â »óÅÂ¿¡¼­ apache ¸¦ ½ÇÇàÇÕ´Ï´Ù. ±×¸®°í browser ¿¡¼­ http://localhost/examples/jsp/index.html À» ÀÔ·ÂÇØ¼­ Å×½ºÆ®ÇÕ´Ï´Ù. ¾Æ·¡ ³ª¿À´Â Numberguess µîÀ» ½ÇÇàÇØº¸½Ê½Ã¿À. ÀÏ´Ü ¿¬µ¿Àº ³¡³µ½À´Ï´Ù.
		</text>
		<image>webapp01_12.gif
		</image>
	</what>
	<what>
		<text>
		¸î°¡Áö ´õ ¾Ë·Áµå¸± °ÍÀÌ ÀÖ½À´Ï´Ù. ¿ø°Ý¿¡¼­ ¼­¹öÀÇ »óÅÂ¸¦ º¼ ¼ö ÀÖ´Ù´Â °ÍÀÎµ¥,     WebAppInfo /webapp-info ¶§¹®¿¡ °¡´ÉÇÑ °ÍÀÔ´Ï´Ù. ÀÌ°ÍÀ» »èÁ¦ÇÑ´Ù¸é º¼ ¼ö ¾ø½À´Ï´Ù.
		</text>
		<image>webapp01_13.gif
		</image>
	</what>
	<what>
		<text>
		¿¬µ¿°­ÁÂ´Â ¿©±â¼­ ¸¶Ä¡·Á°í ÇÕ´Ï´Ù. ¾ÆÁ÷ Àúµµ ÇØ°á¸øÇÑ ¹®Á¦°¡ ÀÖ´Âµ¥¿ä. È¤½Ã ÇØ°áÇÏ½Å ºÐÀÌ °è½Ã´Ù¸é ¾Ë·ÁÁÖ½Ã¸é °í¸¿°Ú½À´Ï´Ù. ¹®Á¦´Â ROOT ¸¦ Context ·Î ÀâÀ» ¼ö ¾ø´Ù´Â ¹®Á¦ÀÔ´Ï´Ù. ±³È¸µµ ¾È°¡°í ÇÏ·çÁ¾ÀÏ Å×½ºÆ®ÇÏ°í ½ÃÇàÂø¿À¸¦ °Þ¾úÁö¸¸ ±³È¸¸¦ ¾È °¡¼­ ±×·±Áö(?) ÇØ°áÀÌ ¾ÈµÇ´õ±º¿ä. ¿ù¿äÀÏ¿¡ ±³È¸¸¦ °¡¼­ ±âµµ¸¦ ÇÏ°í ¿À¸é ÇØ°áÀÌ µÉ±î¿ä? »¡¸® ¹æ¹ýÀ» ¾Ë¸é ÁÁ°Ú´Âµ¥¿ä. ÇöÀç´Â ´Ù¸¥ ÄÁÅØ½ºÆ®¸¸ ¿¬µ¿ÇÒ ¼ö ÀÖ½À´Ï´Ù. ¾Ö±¸ ¾Æ½¬¿ö¶ó....
		</text>
		<image>/images/spacer.gif
		</image>
	</what>

	<refer>
		<link>http://httpd.apache.org/dist/httpd/binaries/win32/</link>
		<comment>windows¿ë apache ´Ù¿î¹ÞÀ» ¼ö ÀÖ´Â °÷</comment>
	</refer>
	<refer>
		<link><![CDATA[http://210.122.97.37/okboard/bbs?bbs=bbs4&pg=0&seq=5838&act=VIEW]]></link>
		<comment>ROOT Àâ±â</comment>
	</refer>
</lecture>
