´ÙÀ½ÀÇ ¿¹Á¦´Â ¸ÞÀÏ ¹× °Ô½ÃÆÇÀ» ÅëÇØ µé¾î¿Â Áú¹®À» Á¤¸®ÇÑ °ÍÀÔ´Ï´Ù.
server.xml °ú tomcat.conf ÆÄÀÏÀº TOMCAT_HOME/conf µð·ºÅ丮¿¡ ÀÖ½À´Ï´Ù.
***server.xml***
<Context path="/pgsql" docBase="webapps/pgsql" debug="0" reloadable="true">
</Context>
***tomcat.conf***
Alias /pgsql /usr/local/tomcat/webapps/pgsql
<Directory "/usr/local/tomcat/webapps/pgsql">
Options Indexes FollowSymLinks
</Directory>
ApJServMount /pgsql/servlet /pgsql (À̺κÐÀ» ÁÖÀÇ ±í°Ô º¸¼¼¿ä)
<Location /pgsql/WEB-INF/ >
AllowOverride None
deny from all
</Location>
/usr/local/tomcat/webapps/pgsql µð·ºÅ丮¿¡ WEB-INF/classes¸¦ ¸¸µé¾î Å×½ºÆ®¿ë À¥ ¾îÇø®ÄÉÀ̼ÇÀ» ÀúÀåÇÑ´Ù.
URL ½ÇÇà ¿¹ : http://www.xxx.com/pgsql/servlet/xxx
***server.xml***
<Context path="/test" docBase="webapps/test" debug="0" reloadable="true">
</Context>
***tomcat.conf***
Alias /test /usr/local/tomcat/webapps/test
>Directory "/usr/local/tomcat/webapps/test">
Options Indexes FollowSymLinks
>/Directory>
ApJServMount /test /test (À̺κÐÀ» ÁÖÀÇ ±í°Ô º¸¼¼¿ä)
<Location /test/WEB-INF/ >
AllowOverride None
deny from all
</Location>
URL ½ÇÇà ¿¹ : http://www.xxx.com/test/xxx
1. ÀÏ´ÜÀº tomcatµð·ºÅ丮 ¹ØÀÇ confµð·ºÅ丮ÀÇserver.xmlÀ» ´ÙÀ½Ã³·³ ÆíÁýÇÕ´Ï´Ù. (´ëÃæ ³¡ ºÎºÐ¿¡ Ãß°¡ÇÏ¸é µÇ°ÚÁÒ.)
<Context path="/jj" docBase="/usr/local/apache/htdocs/jsp" debug="0" reloadable="true" >
</Context>
2. ±×¸®°í µ¿ÀÏÇÑ µð·ºÅ丮ÀÇ tomcat.conf ÆÄÀÏ¿¡ ¾Æ·¡Ã³·³ Ãß°¡ÇØÁÖ°í¿ä.
Alias /jj /usr/local/apache/htdocs/jsp
<Directory "/usr/local/apache/htdocs/jsp">
Options Indexes FollowSymLinks
</Directory>
ApJServMount /jj /jj
<Location /jsp/WEB-INF/ >
AllowOverride None
deny from all
</Location>
3. ±× ´ÙÀ½Àº /usr/local/apache/htdocs µð·ºÅ丮¿¡ jsp µð·ºÅ丮¸¦ ¸¸µé¸é µÇ°í¿ä. jsp ÀÌÇÏ µð·ºÅ丮´Â webapps µð·ºÅ丮¹ØÀÇ examples ¸¦ º¸°í ÂüÁ¶Çؼ µð·ºÅ丮¸¦ ±¸¼ºÇÏ¸é µÉ °Í °°³×¿ä.
Àú°°Àº °æ¿ì´Â Å×½ºÆ®¸¦ À§ÇØ examples µð·ºÅ丮¸¦ ¸ðµÎ º¹»çÇß°í¿ä. ±×Áß examples/jsp/dates/date.htmlÀ» Å×½ºÆ®Çغôµ¥ Àߵdz׿ä.
½ÇÇàÀº http://210.1x0.xx4.xx1/jj/jsp/dates/date.html·Î Çß½À´Ï´Ù.