<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet href="http://rss.egloos.com/style/blog.xsl" type="text/xsl" media="screen"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
	<title>오늘이 가장 즐거운 날이 되었으면 좋겠습니다.</title>
	<link>http://net4all.egloos.com</link>
	<description>이것저것 공부하기^^</description>
	<language>ko</language>
	<pubDate>Thu, 19 Feb 2009 06:27:27 GMT</pubDate>
	<generator>Egloos</generator>
	<image>
		<title>오늘이 가장 즐거운 날이 되었으면 좋겠습니다.</title>
		<url>http://md.egloos.com/img/samplelogo2.gif</url>
		<link>http://net4all.egloos.com</link>
		<width>80</width>
		<height>80</height>
		<description>이것저것 공부하기^^</description>
	</image>
  	<item>
		<title><![CDATA[ '보이스'에서 에이타(다이키 역)가 녹색 옷을 입고 다니는 이유^^? ]]> </title>
		<link>http://net4all.egloos.com/2239421</link>
		<guid>http://net4all.egloos.com/2239421</guid>
		<description>
			<![CDATA[ 
  <div style="text-align:center"><img class="image_mid" border="0" onmouseover="this.style.cursor='pointer'" alt="" src="http://pds14.egloos.com/pds/200902/19/46/d0041846_499cfa79d2fa0.jpg" width="500" height="281.25" onclick="Control.Modal.openDialog(this, event, 'http://pds14.egloos.com/pds/200902/19/46/d0041846_499cfa79d2fa0.jpg');" /></div><br>법의학 드라마이면서 추리와 감동이 들어간 2009년 1분기 드라마 '보이스'에서 주인공 다이키가 왜 녹색옷을 입고 다닐까 신기했습니다.<br><br>머리모양도 너저분한 것 같고^^;;<br><br>그런데 알고 보니 .. 너무 눈에 익은 희동이 머리 ㅎㅎ<br>옷은 녹색.. 둘리를 좋아해서 입은 것 아닐까요?<br><br>연출자가 아기 공룡 둘리의 팬이라는 설이 있습니다 ^^;;			 ]]> 
		</description>
		<category>일본드라마</category>

		<comments>http://net4all.egloos.com/2239421#comments</comments>
		<pubDate>Thu, 19 Feb 2009 06:27:27 GMT</pubDate>
		<dc:creator>4Deyes</dc:creator>
	</item>
	<item>
		<title><![CDATA[ SMAP(스맙)의 고로, 드디어 형사가 되었네요. (트라이앵글) ]]> </title>
		<link>http://net4all.egloos.com/2222822</link>
		<guid>http://net4all.egloos.com/2222822</guid>
		<description>
			<![CDATA[ 
  이번 분기 트라이앵글 보기 전에 긴다이치 코우스케(우리 식으로 읽으면 김전일 ㅡㅡ.. 김전일 소년 탐정의 할아버지입니다.)를 재미있게 봤는데, 트라이앵글에서 그 소설가와 고로가 나란히 나와서 반가웠습니다.<br><br>그리고 보면 고로는 긴다이치 같은 탐정역도 했지만,&nbsp; M의 비극이라는 드라마에서처럼 평범한 사람(?)으로 나와&nbsp;사건을 추적하는 경우도 있었네요.<br><br>알게 모르게 서스펜스 드라마에 많이 나와서 좋아했는데, 드디어 형사가 되었네요. 이번 작품에서도 긴다이치와 같은 명추리를 보여줄 지.. 첫인상은 왠지 뒷걸음치다가 소잡는 ㅎㅎ 역할이 아닐까 하는 생각도 잠시 들었지만요.<br><br>어쨌든 시작은 백야행 같이 시작해서, 유성의 인연 삘로 끝나는 흥미진진한 드라마가 될 것 같아서 기대가 큽니다.<br><br>그나저나 칸노 미호나 후카짱처럼 나이를 먹는 건지 안 먹는 건지 모르는 사람이 있는 반면, 히로시에 료코는 나이를 먹는 다는 분위기가 나서 아쉽네요 ㅡㅜ			 ]]> 
		</description>
		<category>일본드라마</category>

		<comments>http://net4all.egloos.com/2222822#comments</comments>
		<pubDate>Tue, 03 Feb 2009 04:56:27 GMT</pubDate>
		<dc:creator>4Deyes</dc:creator>
	</item>
	<item>
		<title><![CDATA[ Adobe flash ActiveX가 어떻게 하든 설치가 안 될 때 ]]> </title>
		<link>http://net4all.egloos.com/2187705</link>
		<guid>http://net4all.egloos.com/2187705</guid>
		<description>
			<![CDATA[ 
  노란 줄 나와서 눌렀는데, 실패가 나오고<br>도움말이 걸린 링크<br><a href="http://www.adobe.com/go/tn_19166_kr">www.adobe.com/go/tn_19166_kr</a> 이라는 링크도 안 열릴 때 난감합니다.<br><br>지식인에 찾아봐도 이전 버전 언인스톨하고 설치하면 된다고만 나와있고,<br>(대부분의 사람은 위와 같이 레지스트리에서 이전 버전 삭제해주면 되나 봅니다.)<br><br>그런데도 안 될 경우 난감합니다.<br>위 주소의 영문 주소는 현재<br><a href="http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_19166&amp;sliceId=1">http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_19166&amp;sliceId=1</a><br><br>여기에 보면 이전 버전 언인스톨 외에 권한 설정하는 부분도 나와있습니다. <br>전 설치만은 확실하기 위해서 인터넷 익스플로어에서 보안은 잠시동안 위험한 수준으로 개방해 놓고<br>위 문서에 링크 걸린 툴을 받아 고쳤습니다.<br><br>그 부분은 다음과 같습니다.<br><br>Download SubInACL from Microsoft to fix permission issues that prevent the Flash Player installation. For instruction on how to run SubInACL to fix these permission issues please refer to "Download SubInACL from Microsoft to fix permission issues that prevent the Flash Player installation" (TechNote <a href="http://www.adobe.com/go/fb1634cb" target="_blank"><span style="COLOR: #004477">fb1634cb</span></a>).<br><br>밑에 MS에서 다운 받을 수 있게 고친 걸 받을 수 있다고 나왔죠?<br>누르고 들어가면,<br><a href="http://kb.adobe.com/selfservice/viewContent.do?externalId=fb1634cb&amp;sliceId=1">http://kb.adobe.com/selfservice/viewContent.do?externalId=fb1634cb&amp;sliceId=1</a><br><br>여기로 연결되고, 급할 경우 해결책만 받아서 따라하면 됩니다.<br><br><p><strong>You must have administrator privileges to successfully complete these instructions.</strong></p><ol><li>Follow the instructions to download the SubInACL tool from the <a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=e8ba3e56-d8fe-4a91-93cf-ed6985e3927b&amp;displaylang=en" target="_blank">Microsoft Download Center</a>. <li>Install SubInACL. <li><a href="http://www.adobe.com/support/flashplayer/ts/documents/fb1634cb/reset_fp10.zip" target="_blank">Download</a> the reset_fp10.zip file. <li><div>Extract the reset_fp10.cmd file to C:\Program Files\Windows Resource Kits\Tools\. <br><br><strong>Important:</strong> Be sure that both the subinacl.exe and reset_fp10.cmd files are in the same location here: C:\Program Files\Windows Resource Kits\Tools\. <br><br></div><li>Double-click reset_fp10.cmd. <li>This will open a command window and execute the SubInACL tool. <li>Do not use the machine while SubInACL is running. <li>When it is finished you will see "Press any key to continue". <li>Install the Flash Player from <a href="http://kb.adobe.com/go/getflashplayer">www.adobe.com/go/getflashplayer</a>. </li></ol>간단하게 말하면 MS에서 SubInACL 프로그램을 다운로드 받아서 설치하고, reset_fp10.cmd라는 스크립트를 실행시키면 해결됩니다. (위 명령은 관리자 권한을 가진 사용자가 해야 합니다.)<br>두 프로그램이 같은 위치에서 해야 한다고 하는데, 잠시 path 에 등록해 놓고 해도 됩니다.<br><br><br><br/><br/>tag : <a href="/tag/adobeflashplayer" rel="tag">adobeflashplayer</a>,&nbsp;<a href="/tag/activex설치" rel="tag">activex설치</a>,&nbsp;<a href="/tag/flashactiveX" rel="tag">flashactiveX</a>,&nbsp;<a href="/tag/flash" rel="tag">flash</a>			 ]]> 
		</description>
		<category>adobeflashplayer</category>
		<category>activex설치</category>
		<category>flashactiveX</category>
		<category>flash</category>

		<comments>http://net4all.egloos.com/2187705#comments</comments>
		<pubDate>Wed, 31 Dec 2008 00:08:29 GMT</pubDate>
		<dc:creator>4Deyes</dc:creator>
	</item>
	<item>
		<title><![CDATA[ RESTful web service Client에서 GET, POST 적용방법 ]]> </title>
		<link>http://net4all.egloos.com/2172208</link>
		<guid>http://net4all.egloos.com/2172208</guid>
		<description>
			<![CDATA[ 
  <pre><pre><pre><span style="COLOR: #b22222"><span style="COLOR: #000000; FONT-FAMILY: 굴림">package client;</span></span></pre><pre><span style="COLOR: #b22222"><span style="COLOR: #000000; FONT-FAMILY: 굴림">import java.io.IOException;<br>import java.io.InputStream;</span></span></pre><pre><span style="COLOR: #b22222"><span style="COLOR: #000000; FONT-FAMILY: 굴림">import org.apache.commons.httpclient.Credentials;<br>import org.apache.commons.httpclient.HttpClient;<br>import org.apache.commons.httpclient.HttpException;<br>import org.apache.commons.httpclient.UsernamePasswordCredentials;<br>import org.apache.commons.httpclient.auth.AuthScope;<br>import org.apache.commons.httpclient.methods.GetMethod;</span></span></pre><pre><span style="COLOR: #b22222"><span style="COLOR: #000000; FONT-FAMILY: 굴림">public class LizardWSClient {<br>&nbsp;/**<br>&nbsp; * @param args<br>&nbsp; * ref : <a href="http://svn.apache.org/viewvc/httpcomponents/oac.hc3x/trunk/src/examples/BasicAuthenticationExample.java?view=markup">http://svn.apache.org/viewvc/httpcomponents/oac.hc3x/trunk/src/examples/BasicAuthenticationExample.java?view=markup</a><br>&nbsp; */<br>&nbsp;public static void main(String[] args) {<br>&nbsp;&nbsp;// To be avoided unless in debug mode<br>&nbsp;&nbsp;Credentials defaultcreds = new UsernamePasswordCredentials("reader", "student1");<br>&nbsp;&nbsp;HttpClient client = new HttpClient();<br>&nbsp;&nbsp;client.getState().setCredentials(AuthScope.ANY, defaultcreds);<br>&nbsp;&nbsp;<br>&nbsp;&nbsp;// create a GET method that reads a file over HTTPS, we're assuming<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // that this file requires basic authentication using the realm above.</span></span></pre><pre><span style="COLOR: #b22222"><span style="COLOR: #000000; FONT-FAMILY: 굴림">&nbsp;&nbsp;String url = "<a href="http://www.test.co.kr/book/read/101">http://www.test.co.kr/book/read/101</a>";<br>&nbsp;&nbsp;GetMethod method = new GetMethod(url);<br>&nbsp;&nbsp;// PutMethod, PostMethod, DeleteMethod 각 방법 선택해서 구현.<br></span></span></pre><pre><span style="COLOR: #b22222"><span style="COLOR: #000000; FONT-FAMILY: 굴림">&nbsp;&nbsp;try {<br>&nbsp;&nbsp;&nbsp;// execute the GET<br>&nbsp;&nbsp;&nbsp;int status = client.executeMethod(method);<br>&nbsp;&nbsp;&nbsp;<br>&nbsp;&nbsp;&nbsp;InputStream responseBody = method.getResponseBodyAsStream();<br>&nbsp;&nbsp;&nbsp;<br>&nbsp;&nbsp;&nbsp;// print the status and response<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; System.out.println(status + "\n" + method.getResponseBodyAsString());</span></span></pre><pre><span style="COLOR: #b22222"><span style="COLOR: #000000; FONT-FAMILY: 굴림">&nbsp;&nbsp;} catch (HttpException e) {<br>&nbsp;&nbsp;&nbsp;e.printStackTrace();<br>&nbsp;&nbsp;} catch (IOException e) {<br>&nbsp;&nbsp;&nbsp;e.printStackTrace();<br>&nbsp;&nbsp;}finally{<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // release any connection resources used by the method<br>&nbsp;&nbsp;&nbsp;method.releaseConnection();<br>&nbsp;&nbsp;}<br>&nbsp;&nbsp;<br>&nbsp;}<br>}<br></span></span><br><br><a href="http://svn.apache.org/viewvc/httpcomponents/oac.hc3x/trunk/src/examples/BasicAuthenticationExample.java?view=markup"><br>POST 방식은.<br><span style="FONT-SIZE: 100%">*reference</span><br><br>http://svn.apache.org/viewvc/httpcomponents/oac.hc3x/trunk/src/examples/BasicAuthenticationExample.java?view=markup</a><br></pre></pre></pre><br/><br/>tag : <a href="/tag/RESTfulwebservice" rel="tag">RESTfulwebservice</a>,&nbsp;<a href="/tag/RESTFul" rel="tag">RESTFul</a>,&nbsp;<a href="/tag/httpclient" rel="tag">httpclient</a>,&nbsp;<a href="/tag/WebService" rel="tag">WebService</a>,&nbsp;<a href="/tag/apache" rel="tag">apache</a>,&nbsp;<a href="/tag/commons" rel="tag">commons</a>			 ]]> 
		</description>
		<category>개발일기</category>
		<category>RESTfulwebservice</category>
		<category>RESTFul</category>
		<category>httpclient</category>
		<category>WebService</category>
		<category>apache</category>
		<category>commons</category>

		<comments>http://net4all.egloos.com/2172208#comments</comments>
		<pubDate>Mon, 15 Dec 2008 14:54:47 GMT</pubDate>
		<dc:creator>4Deyes</dc:creator>
	</item>
	<item>
		<title><![CDATA[ Restlet으로 XML 편하게 출력하려고 했다가 더 고생했습니다. ㅡㅜ ]]> </title>
		<link>http://net4all.egloos.com/2168477</link>
		<guid>http://net4all.egloos.com/2168477</guid>
		<description>
			<![CDATA[ 
  <p>XML 형태로 출력하려고 했다가 더 고생했네요.<br><br>DomRepresentation으로 할 경우.. 출력할 때마다 자식 등록.. 트리 구조를 만들어야 하기에 번거로워서<br><br>XmlWriter를 이용해서 순차적으로 문서를 만들어서 출력하면 어떨까 했습니다.<br><br>&nbsp;&nbsp;&nbsp;&nbsp;XmlWriter w = new XmlWriter();</p><p>&nbsp;&nbsp;&nbsp;&nbsp;w.startDocument();<br>&nbsp;&nbsp;&nbsp;&nbsp;w.dataElement("greeting", "Hello, world!");<br>&nbsp;&nbsp;&nbsp;&nbsp;w.endDocument();</p><p>&nbsp;&nbsp;&nbsp;&nbsp;w.flush();<br><br>위와 같이 해서 representation으로 연결만 하면 되는데, SaxRepresentation과도 연결이 잘 안 되고, WriterRepresentation하고도 실패..<br><br>간단하게 XML 만들어서 출력하는 다른 방법으로 IBM 사이트에서 소개한 Groovy를 이용해서 만드는 케이스가 있지만,<br>Groovy를 익히고 연결하는데 들어가는 시간 비용도 고려해야 할 것 같아서..<br><br>고민하다가 iBatis에서 보니 DB에서 바로 XML 형태로 출력이 가능하네요. 진작 알았으면 고생 덜 하는데요 ^^;<br><br>XmlResultName을 이용해서 StringRepresentation으로 내보내면 끝.. :)</p><br/><br/>tag : <a href="/tag/RESTfulwebservice" rel="tag">RESTfulwebservice</a>,&nbsp;<a href="/tag/iBatis" rel="tag">iBatis</a>,&nbsp;<a href="/tag/XML" rel="tag">XML</a>,&nbsp;<a href="/tag/WebService" rel="tag">WebService</a>,&nbsp;<a href="/tag/restlet" rel="tag">restlet</a>			 ]]> 
		</description>
		<category>개발일기</category>
		<category>RESTfulwebservice</category>
		<category>iBatis</category>
		<category>XML</category>
		<category>WebService</category>
		<category>restlet</category>

		<comments>http://net4all.egloos.com/2168477#comments</comments>
		<pubDate>Fri, 12 Dec 2008 01:38:14 GMT</pubDate>
		<dc:creator>4Deyes</dc:creator>
	</item>
	<item>
		<title><![CDATA[ Restlet으로 RESTful web service 구현시 인증추가하기. ]]> </title>
		<link>http://net4all.egloos.com/2166824</link>
		<guid>http://net4all.egloos.com/2166824</guid>
		<description>
			<![CDATA[ 
  간단한 웹 서비스를 만들기 위해서 Restlet framework를 사용하고 있는데, 인증을 쉽게 거는 방법이 없을까 찾아봤습니다.<br><br>restlet 사이트에는 디렉토리 보기 전에 인증 거치는 예제는 있는데, 인증 거친 뒤 원하는 클래스로 작업을 넘기는 건 어떻게 할까하고 API를 뒤졌습니다.<br><br>API 설명도 헛갈리고, 혹시나 하고 이클립스에 뜨는 도우미를 뚫어지게 봤더니 Guard 처리 후에 다음으로 넘기는 메소드에 클래스를 매개변수로 받는 부분이 있었습니다. 이게 타겟이 되면 금방 끝날 것 같아서 해봤더니 통과^^*<br><br>사이트에 있는 첫번째 리소스 예제에 인증부분만 추가하면 다음과 같습니다.<br><br>/**&nbsp; <br>&nbsp;&nbsp;&nbsp; * Creates a root Restlet that will receive all incoming calls.&nbsp; <br>&nbsp;&nbsp;&nbsp; */ <br>&nbsp;@Override<br>&nbsp;public synchronized Restlet createRoot() {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // Create a router Restlet that defines routes<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Router router = new Router(getContext());<br>&nbsp;&nbsp;<br>//&nbsp;이 부분이 간단한 아이디/패스워드 인증을 거치는 부분입니다.<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Guard guard = new Guard(getContext(), ChallengeScheme.HTTP_BASIC, "Restlet tutorial");<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;guard.getSecrets().put("tester", "password".toCharArray());<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;router.attach("/item", guard);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;guard.<strong>setNext</strong>(ItemsResource.class);<br>// 인증이 끝나면 ItemsResource로 처리를 넘기죠.<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // Defines a route for the resource "list of items"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;router.attach("/items", ItemsResource.class);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br>&nbsp;&nbsp;return router;<br>&nbsp;}<br><br>특별하게 표시한 setNext 메소드 부분을 제외하곤 앞 부분은 restlet FAQ에 나온 가이드의 사용법과 같습니다.<br><br>이걸로 url만 보내주면 쉽게 인증을 거치는 웹 서비스가 완성이 된다니 신기합니다^^<br><br>웹 사이트에서 <a href="http://localhost/FirstResourceServlet/item">http://localhost/FirstResourceServlet/item</a> 이런 식으로 보내면 인증창이 뜨고 통과 후 원하는 정보를 가져올 수 있습니다.<br><br>클라이언트 프로그램에선 credential을 이용해서 아이디, 암호를 입력한 뒤 정보를 스트림을 받는 등의 처리를 하면 됩니다. :)<br/><br/>tag : <a href="/tag/REST" rel="tag">REST</a>,&nbsp;<a href="/tag/RESTfulwebservice" rel="tag">RESTfulwebservice</a>,&nbsp;<a href="/tag/WebService" rel="tag">WebService</a>,&nbsp;<a href="/tag/웹서비스" rel="tag">웹서비스</a>,&nbsp;<a href="/tag/restlet" rel="tag">restlet</a>,&nbsp;<a href="/tag/자바웹서비스" rel="tag">자바웹서비스</a>			 ]]> 
		</description>
		<category>개발일기</category>
		<category>REST</category>
		<category>RESTfulwebservice</category>
		<category>WebService</category>
		<category>웹서비스</category>
		<category>restlet</category>
		<category>자바웹서비스</category>

		<comments>http://net4all.egloos.com/2166824#comments</comments>
		<pubDate>Wed, 10 Dec 2008 09:23:21 GMT</pubDate>
		<dc:creator>4Deyes</dc:creator>
	</item>
	<item>
		<title><![CDATA[ IIS와 Tomcat 연동하기 ]]> </title>
		<link>http://net4all.egloos.com/2164325</link>
		<guid>http://net4all.egloos.com/2164325</guid>
		<description>
			<![CDATA[ 
  <p>사용한 버전은 IIS 6.0과 Tomcat 6.0 이지만, <br>설정파일 부분은 동일할 것 같으니 관계 없을 듯 합니다.<br><br>필요한 파일은 톰캣 홈페이지에서 isapi_redirect 라는 Jakarta Isapi Redirector를 받으시고, 설명서에 따라 레지스트리에 등록해 주면 됩니다.<br><br>톰캣으로 연동하는데 필요한 두 설정 파일은 workers.properties.minimal과 uriworkermap.properties 입니다.<br><br># workers.properties.minimal<br>worker.list=ajp13w</p><p>worker.ajp13w.type=ajp13<br>worker.ajp13w.host=localhost<br>worker.ajp13w.port=8009<br><br>아파치랑 톰캣 연동하는 거랑 비슷하죠. ajp13w라는 별명을 주고 ajp 1.3 프로토콜을 이용해서 톰캣과 연결합니다.<br><br># uriworkermap.properties <br>default.worker=ajp13w<br>/admin/*=ajp13w<br>/manager/*=ajp13w<br>/tomcat1/*=$(default.worker)<br><br>연결할 url 패턴을 적어준다음에 ajp13w와 같은 별명을 직접 적어줘도 되고, 프로퍼티로 만든 다음에 그 프로퍼티를 적어주어도 됩니다.<br><br>여기서 한 가지 더 할 것은<br><br>IIS에서 tomcat1이라는 가상 디렉토리를 만든 다음에 실제 폴더 위치에 연결해 줘야 IIS에서도 톰캣에서도 tomcat1이라는 url이 나왔을 때 같은 곳을 가리키게 됩니다. url mapping만 잘 할 수 있다면, 두 프로그램 간의 연동은 대부분 해결되는 것 같습니다.</p><br/><br/>tag : <a href="/tag/iis" rel="tag">iis</a>,&nbsp;<a href="/tag/tomcat" rel="tag">tomcat</a>,&nbsp;<a href="/tag/연동" rel="tag">연동</a>			 ]]> 
		</description>
		<category>개발일기</category>
		<category>iis</category>
		<category>tomcat</category>
		<category>연동</category>

		<comments>http://net4all.egloos.com/2164325#comments</comments>
		<pubDate>Mon, 08 Dec 2008 05:01:58 GMT</pubDate>
		<dc:creator>4Deyes</dc:creator>
	</item>
	<item>
		<title><![CDATA[ Apache 2.2 + PHP 5.2.7 + Tomcat 6.0 연동하기 (PHP편)  ]]> </title>
		<link>http://net4all.egloos.com/2164195</link>
		<guid>http://net4all.egloos.com/2164195</guid>
		<description>
			<![CDATA[ 
  <p>저번에 이어 아파치랑 PHP 연동하는 경우를 간단히 정리합니다.<br><br>PHP.net에 있는 윈도우 인스톨러를 이용하면 IIS랑은 간단하게 연동이 됩니다.<br><br>그런데 인스톨러로 아파치랑 연동시키려고 했을 땐 자꾸 에러가 나더군요. 그래서 수동 설치를 했습니다.<br><br>수동 설치라고 해도 압축파일 다운로드 받아서 c:\php에 풀고<br><br>아파치의 httpd.conf 파일에서 아래와 같이 경로만 맞춰주면 됩니다.<br><br># For PHP 5 do something like this:<br>LoadModule php5_module "c:/php/php5apache2_2.dll"<br>AddType application/x-httpd-php .php</p><p># configure the path to php.ini<br>PHPIniDir "C:/php"<br><br>위와 같이 적어주면 php라는 확장자를 들어오는 경우에는 PHP로 넘겨주죠.<br><br>필요한 PHP extension이 있으면 php.ini에 가서 주석을 풀어주면 간단하게 설치가 됩니다. <br>너무 간단해서 순간 걱정이 잠시 되었습니다.^^;</p><br/><br/>tag : <a href="/tag/아파치" rel="tag">아파치</a>,&nbsp;<a href="/tag/PHP" rel="tag">PHP</a>,&nbsp;<a href="/tag/연동" rel="tag">연동</a>			 ]]> 
		</description>
		<category>개발일기</category>
		<category>아파치</category>
		<category>PHP</category>
		<category>연동</category>

		<comments>http://net4all.egloos.com/2164195#comments</comments>
		<pubDate>Mon, 08 Dec 2008 02:53:16 GMT</pubDate>
		<dc:creator>4Deyes</dc:creator>
	</item>
	<item>
		<title><![CDATA[ Apache 2.2 + PHP 5.2.7 + Tomcat 6.0 연동하기 (톰캣편) ]]> </title>
		<link>http://net4all.egloos.com/2164189</link>
		<guid>http://net4all.egloos.com/2164189</guid>
		<description>
			<![CDATA[ 
  <p>아파치랑 PHP랑 톰캣의 연동이라니.. 희안한 조합이네요.<br><br>그래도 한 컴퓨터에서 여러 개 돌리려보니 이렇게 되었네요.<br><br>먼저 아파치랑 톰캣. 이 경우는 톰캣으로 JSP를 돌리고 있는데 정적인 부분을 아파치에게 맡기고, 아파치 웹 서버에서 보안 부분도 신경쓰게 하려할 때 쓰곤 합니다. 아파치와 톰캣이 각 영역을 나눠 처리하기에 속도면에서도 빨라질 수 있다고 하는데, 아직은 잘 모르겠습니다.<br><br>연동을 위해서<br>1. 톰캣 홈페이지에서 아파치 톰캣 커넥터&nbsp;JK 1.2.27을 받아 아파치의 모듈 디렉토리에 복사합니다.<br>&nbsp;이름을 간단하게&nbsp;mod_jk.so 로 고쳐주어도 좋습니다.<br><br>2. 아파치 conf 폴더에서 workers.properties 라는 파일을 만들어&nbsp;아래와 같이 간단하게 적어줍니다.<br><br>&nbsp; # Define 1 real worker using ajp13<br>&nbsp; worker.list=worker1<br>&nbsp; # Set properties for worker1 (ajp13)<br>&nbsp; worker.worker1.type=ajp13<br>&nbsp; worker.worker1.host=localhost<br>&nbsp; worker.worker1.port=8009<br><br>AJP 13 프로토콜을 톰캣 측에서 8009 포트로 잡아 두었으니 worker1 이라는 별명을 붙여 서로 연결시켜주는 겁니다.<br><br>3. AJP 13을 이용해서 톰캣과 아파치를 연동시켰으니 톰캣의 server.xml 에서 http 프로토콜 부분을 주석처리합니다.<br><br>4. 가장 중요한 설정인 아파치의 httpd.conf 부분의 설정<br><br>&nbsp; # Load mod_jk module<br>&nbsp; # Update this path to match your modules location<br>&nbsp; #&nbsp;아래 module 부분은 톰캣 커넥터에서 다운로드 받은 mod_jk.so 파일을 복사해 넣은 아파치 밑의 모듈 폴더 경로입니다.<br>&nbsp;&nbsp;LoadModule&nbsp;&nbsp;&nbsp; jk_module&nbsp; <strong>modules</strong>/mod_jk.so<br></p><p>&nbsp; # Where to find workers.properties<br>&nbsp; # Update this path to match your conf directory location (put workers.properties next to httpd.conf)<br>&nbsp; #&nbsp;아래 conf도 아파치 폴더 밑의 상대 경로로 써주면 편하겠죠?<br>&nbsp; JkWorkersFile <strong>conf</strong>/workers.properties<br><br>&nbsp; # Where to put jk logs<br>&nbsp; # Update this path to match your logs directory location (put mod_jk.log next to access_log)<br>&nbsp; JkLogFile&nbsp;&nbsp;&nbsp;&nbsp; <strong>logs</strong>/mod_jk.log<br>&nbsp; # Set the jk log level [debug/error/info]<br>&nbsp; JkLogLevel&nbsp;&nbsp;&nbsp; info<br>&nbsp; # Select the timestamp log format<br>&nbsp; JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "<br><br>&nbsp; # Send everything for context /examples to worker named worker1 (ajp13)<br><strong>&nbsp; JkMount&nbsp; /tomcat1 worker1<br>&nbsp; JkMount&nbsp; /tomcat1/* worker1</strong><br><br>아파치 설정에 있어서 위의 두 줄이 가장 중요하지 않을까 생각됩니다.<br>위를 빼먹을 경우 연결이 잘 안 되거나, 그림이 깨져 나오거나 합니다. (IIS와 톰캣 연동할 때 IIS의 웹 경로랑 톰캣의 웹 경로를 같게 해주는 것과 같은 역할을 합니다.)<br><br></p><p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><span style="FONT-SIZE: 100%"><span style="FONT-FAMILY: 맑은 고딕">위의 예를 든<span lang="EN-US"> tomcat1</span>은 톰캣에 잡혀있는<span lang="EN-US"> context</span>의 이름입니다<span lang="EN-US">. url</span>에<span lang="EN-US"> tomcat</span>이라는 주소가 들어오면<span lang="EN-US"> worker1</span>이라는 얘한테 넘기겠다는 얘기죠<span lang="EN-US">. Worker1</span>는 <span lang="EN-US">ajp13</span>으로 톰캣으로 연결시켜 주고요<span lang="EN-US">.</span></span></span></p><p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><span lang="EN-US"><?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p><span style="FONT-SIZE: 100%; FONT-FAMILY: 맑은 고딕">&nbsp;</span></o:p></span></p><p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><span style="FONT-FAMILY: 맑은 고딕"><span style="FONT-SIZE: 100%">보통 예제는 <strong><span lang="EN-US" style="FONT-FAMILY: '맑은 고딕'; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: '맑은 고딕'; mso-fareast-theme-font: minor-fareast; mso-hansi-theme-font: minor-latin; mso-bidi-font-family: Arial; mso-bidi-theme-font: minor-bidi">&nbsp; JkMount&nbsp; /tomcat1/* worker1 </span></strong></span></span><strong><span style="FONT-WEIGHT: normal; FONT-FAMILY: '맑은 고딕'; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: '맑은 고딕'; mso-fareast-theme-font: minor-fareast; mso-hansi-theme-font: minor-latin; mso-bidi-font-family: Arial; mso-bidi-theme-font: minor-bidi"><span style="FONT-SIZE: 100%">이런 식으로 나와서 저도 처음엔 약간 당황했습니다<span lang="EN-US">. </span>위의 경우 <span lang="EN-US">http://localhost/tomcat1/index.jsp</span>라고 치면 작동하는데 <span lang="EN-US"><a href="http://localhost/tomcat1">http://localhost/tomcat1</a></span>라고 치면 작동을 안 합니다<span lang="EN-US">.<o:p></o:p></span></span></span></strong></p><p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><strong><span lang="EN-US" style="FONT-WEIGHT: normal; FONT-FAMILY: '맑은 고딕'; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: '맑은 고딕'; mso-fareast-theme-font: minor-fareast; mso-hansi-theme-font: minor-latin; mso-bidi-font-family: Arial; mso-bidi-theme-font: minor-bidi"><o:p><span style="FONT-SIZE: 100%">&nbsp;</span></o:p></span></strong></p><p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><span style="FONT-SIZE: 100%"><strong><span style="FONT-WEIGHT: normal; FONT-FAMILY: '맑은 고딕'; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: '맑은 고딕'; mso-fareast-theme-font: minor-fareast; mso-hansi-theme-font: minor-latin; mso-bidi-font-family: Arial; mso-bidi-theme-font: minor-bidi">눈치 채셨겠지만<span lang="EN-US"> tomcat1/ </span>다음에 나오는 모든 것에 대해<span lang="EN-US"> worker1</span>로 넘겨준다는 것입니다<span lang="EN-US">. Tomcat1</span>까지 있는 경우는 위 조건에 안 들어가는 거죠<span lang="EN-US">. </span>그래서 </span></strong><strong><span lang="EN-US" style="FONT-FAMILY: '맑은 고딕'; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: '맑은 고딕'; mso-fareast-theme-font: minor-fareast; mso-hansi-theme-font: minor-latin; mso-bidi-font-family: Arial; mso-bidi-theme-font: minor-bidi">JkMount&nbsp; /tomcat1 worker1 </span></strong><strong><span style="FONT-WEIGHT: normal; FONT-FAMILY: '맑은 고딕'; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: '맑은 고딕'; mso-fareast-theme-font: minor-fareast; mso-hansi-theme-font: minor-latin; mso-bidi-font-family: Arial; mso-bidi-theme-font: minor-bidi">라고 한 줄을 더 적어줘서 <span lang="EN-US">/(</span>슬래쉬<span lang="EN-US">)</span>가 안 들어간 경우에도 연결시켜 주는 거죠<span lang="EN-US">.<o:p></o:p></span></span></strong></span></p><p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><strong><span lang="EN-US" style="FONT-WEIGHT: normal; FONT-FAMILY: '맑은 고딕'; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: '맑은 고딕'; mso-fareast-theme-font: minor-fareast; mso-hansi-theme-font: minor-latin; mso-bidi-font-family: Arial; mso-bidi-theme-font: minor-bidi"><o:p><span style="FONT-SIZE: 100%">&nbsp;</span></o:p></span></strong></p><p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><strong><span style="FONT-WEIGHT: normal; FONT-FAMILY: '맑은 고딕'; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: '맑은 고딕'; mso-fareast-theme-font: minor-fareast; mso-hansi-theme-font: minor-latin; mso-bidi-font-family: Arial; mso-bidi-theme-font: minor-bidi"><span style="FONT-SIZE: 100%">근데 위 방법의 단점은 톰캣에 잡혀있는<span lang="EN-US"> context</span>마다 다 이름을 적어줘야 합니다<span lang="EN-US">. </span>개수가 많을 때 상당히 불편하죠<span lang="EN-US">. </span>그래서 아파치에서 자동으로 연결시켜 주는 기능도 있는데<span lang="EN-US">, </span>전 이상하게 잘 안 되더군요<span lang="EN-US">. </span>제가 뭔가 빼먹은 것이 있는건지<span lang="EN-US">… </span>아파치 사이트에서 톰캣으로 들어가 커넥터에 보면 여러가지 설명이 있으니 도움이 되실 겁니다<span lang="EN-US">.<o:p></o:p></span></span></span></strong></p><p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><strong><span lang="EN-US" style="FONT-WEIGHT: normal; FONT-FAMILY: '맑은 고딕'; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: '맑은 고딕'; mso-fareast-theme-font: minor-fareast; mso-hansi-theme-font: minor-latin; mso-bidi-font-family: Arial; mso-bidi-theme-font: minor-bidi"><o:p><span style="FONT-SIZE: 100%">&nbsp;</span></o:p></span></strong></p><p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><span style="FONT-SIZE: 100%"><strong><span style="FONT-WEIGHT: normal; FONT-FAMILY: '맑은 고딕'; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: '맑은 고딕'; mso-fareast-theme-font: minor-fareast; mso-hansi-theme-font: minor-latin; mso-bidi-font-family: Arial; mso-bidi-theme-font: minor-bidi">그럼<span lang="EN-US">, </span>다음엔 아파치랑<span lang="EN-US"> PHP</span>를 연결하는 법을 정리하겠습니다<span lang="EN-US">.</span></span></strong><b><span lang="EN-US"><o:p></o:p></span></b></span></p><p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><span lang="EN-US"><o:p><span style="FONT-SIZE: 100%; FONT-FAMILY: 맑은 고딕">&nbsp;</span></o:p></span></p><p>&nbsp;</p><br/><br/>tag : <a href="/tag/아파치" rel="tag">아파치</a>,&nbsp;<a href="/tag/톰캣" rel="tag">톰캣</a>,&nbsp;<a href="/tag/연동" rel="tag">연동</a>			 ]]> 
		</description>
		<category>개발일기</category>
		<category>아파치</category>
		<category>톰캣</category>
		<category>연동</category>

		<comments>http://net4all.egloos.com/2164189#comments</comments>
		<pubDate>Mon, 08 Dec 2008 02:47:29 GMT</pubDate>
		<dc:creator>4Deyes</dc:creator>
	</item>
	<item>
		<title><![CDATA[ 이런 바보 같은 짓은 한번만이야. ]]> </title>
		<link>http://net4all.egloos.com/2107725</link>
		<guid>http://net4all.egloos.com/2107725</guid>
		<description>
			<![CDATA[ 
  <p>미안해.<br><br>이런 바보 같은 짓은 한번만이야.<br><br>떨어지면 난 이 길에 인연이 없다고 납득하고<br><br>돌아갈테니까...<br><br>-- 세 개의 시간 47화 중에서 ...<br><br><a href="http://comicmall.naver.com/webtoon.nhn?m=detail&amp;contentId=24995&amp;no=51&amp;page=1">http://comicmall.naver.com/webtoon.nhn?m=detail&amp;contentId=24995&amp;no=51&amp;page=1</a><br><br>뭔가 새로운 것을 얻기 위해서, 포기해야 하는 많은 것들..<br><br>남들과 다른 길을 걷는다는 쉽지만은 않은 일입니다.<br><br>다들 그렇게 사는데 너만 유별난 것 아니야, 아직 사회에 대해 모르는 것 같아.라는 말을 들으면 서글퍼지기도 하지만,<br><br>도전해 볼 가치가 있기에 눈물을 머금고 앞으로 나가 봅니다. <br><br>돌아보면 그 때만큼 한 가지 일에 열심을 낼 때도 없었습니다. <br><br>6년에 발휘했던 그 열정. 1년 전에도 한 번 해 볼까 했던 그 마음.. 다시 한 번 추스려 봅니다.</p>			 ]]> 
		</description>

		<comments>http://net4all.egloos.com/2107725#comments</comments>
		<pubDate>Wed, 22 Oct 2008 02:21:21 GMT</pubDate>
		<dc:creator>4Deyes</dc:creator>
	</item>
</channel>
</rss>
