« ssh でのバックアップに四苦八苦 | Main | ssh でのバックアップに四苦八苦(後編):改行コードと echo »

August 11, 2009

mod_jk が使えなくなった. mod_proxy_ajp を使うらしい

 弊ブログでは Tomcat と Apache の連携が mod_jk (もっと正確に言えば mod_jk2 )で可能と書いている.筆者の経験では Apache 2.2 系でもある時点までは mod_jk2 で動いていた(確かに,多分).
 動かなくなって調べてみたのだが,どうやら mod_jk2 の代わりに mod_proxy_ajp を使うらしい.
 仕方ないので, Apache を作り直して入れ直した.
アンインストール.

> cd /usr/ports/www/apache22
> sudo make deinstall

mod_proxy_ajp を入れるように指示.
> sudo make config

で, "PROXY: Enable mod_proxy" と "PROXY_AJP: Enable mod_proxy_ajp" とある項目にチェックを入れる.
インストール.
 > sudo make install clean 

/usr/local/etc/apache22/httpd.conf に以下の二行が入っているか確認.というか入れる.
LoadModule proxy_module libexec/apache22/mod_proxy.so
LoadModule proxy_ajp_module libexec/apache22/mod_proxy_ajp.so

できあがったら, Tomcat のサンプルが動くか試してみる.
/usr/local/etc/apache22/Include/ajp.conf に以下を記述.
<Location /jsp-examples/>
ProxyPass ajp://localhost:8009/jsp-examples/
</Location>

<Location /servlets-examples/>
    ProxyPass ajp://localhost:8009/servlets-examples/
</Location>
これで,ブラウザーから http://hostname/jsp-examples/ とやって,サンプルが見えれば成功. あとはよしなに.

|

« ssh でのバックアップに四苦八苦 | Main | ssh でのバックアップに四苦八苦(後編):改行コードと echo »

FreeBSD」カテゴリの記事

パソコン・インターネット」カテゴリの記事

Comments

The first major trial inside the filesharing history was the Napster case, whenever a similar website that was basically destroyed in 2001. Of course, theres the full issue of freebies at the same time, but thats an end second. Bottom line People with money will pay for theatre tickets and expensive directors editions, you just aren't going to get a lot of middle class families huddling across the monitor squinting at the low resolution copy of your respective movie, but I just might.

Posted by: Isabell | December 06, 2013 at 07:07 AM

It's really very difficult in this busy life to listen news on Television, therefore I only use web for that purpose, and take the hottest news.

Posted by: Frozen Toy | August 23, 2014 at 10:32 AM

This is very interesting, You're a very skilled blogger. I have joined your rss feed and look forward to seeking more of your magnificent post. Also, I have shared your site in my social networks!

Posted by: bouncy castles for rent | September 21, 2014 at 05:14 AM

That is very fascinating, You're a very skilled blogger. I've joined your rss feed and look forward to seeking more of your magnificent post. Additionally, I have shared your site in my social networks

Posted by: augenlidkorrektur | November 28, 2014 at 11:08 PM

What a information of un-ambiguity and preserveness of precious experience concerning unpredicted emotions.

Posted by: Best air filter Brand | November 30, 2014 at 03:23 PM

I always used to read article in news papers but now as I am a user of web so from now I am using net for articles or reviews, thanks to web.

Posted by: bosch dishwasher maintenance | January 04, 2015 at 05:07 AM

Hi there! I just wanted to ask if you ever have any issues with hackers? My last blog (wordpress) was hacked and I ended up losing a few months of hard work due to no back up. Do you have any solutions to protect against hackers?

Posted by: best led tvs of 2014 | January 12, 2015 at 07:21 PM

Helpful info. Fortunate me I found your website unintentionally, and I am shocked why this coincidence didn't took place earlier! I bookmarked it.

Posted by: {2014 {Advanced Elements Kayak Review|Best Fishing Kayak Reviews|Carbon Kayak Paddle Reviews|Crossov | January 25, 2015 at 12:44 AM

Greetings from Carolina! I'm bored at work so I decided too check out your site on my iphone during lunch break. I really like the info you present here and can't wait to take a look when I get home. I'm surprised at howw fast your blog loaded on mmy cell phone .. I'm not even using WIFI, just 3G .. Anyhow, very good blog!

Posted by: www.townofcreston.Com | February 22, 2015 at 07:42 PM

I do not know whether it's just me or if everyone else experiencing problems with your blog. It appears as if some of the text within your content are running off the screen. Can somebody else please comment and let me know if this is happening to them too? This may be a issue with my internet browser because I've had this happen before. Thanks

Posted by: telnet linux ssh client gui | February 25, 2015 at 11:31 AM

Hi there, I found your website by means of Google at the same time as searching for a similar subject, your site got here up, it appears great. I've bookmarked it in my google bookmarks. Hello there, just changed into alert to your weblog via Google, and found that it's really informative. I am going to watch out for brussels. I will appreciate for those who proceed this in future. Numerous folks will be benefited from your writing. Cheers!

Posted by: day chuyen loc nuoc ro | February 28, 2015 at 11:10 PM

I enjoy what you guys are up too. This type of clever worrk and coverage! Keep up the amazing works guys I've you guys to blogroll.

Posted by: Zalagaonice U Beogradu | March 03, 2015 at 09:58 AM

Have you ever thought about creating an ebook or guest authoring on other blogs? I have a blog centered on the sane subjects you discuss annd would love to have you share some stories/information. I know my visitors would appreciate your work. If you are even remotely interested, feel free to shoot me an email.

Posted by: Kancelarijski materijal javna nabavka | March 18, 2015 at 04:57 AM

Quality content is the main to interest the users to go to see the web site, that's what this web page is providing.

Posted by: how to configure best comcast best cable dsl modem for | March 18, 2015 at 08:22 AM

you are in poinbt oof fact a just right webmaster. The web site loading speed is incredible. It seems that yoou are doing any distinctive trick. Furthermore, The cokntents arre masterwork. you've performed a ffantastic ask in this matter!

Posted by: Stomatoloska ordinacija | March 19, 2015 at 09:34 AM

Hiya! I know this is kinda off topic but I'd figured I'd ask. Would you be intersted in trading links or maybe guest authoriing a blog pokst or vice-versa? My site addresses a lot of the same topics as yours andd I think wwe could greatly benefit from each other. If you happen to be interested ffeel free to send me an email. I look forward to hearing from you! Great blog by the way!

Posted by: salvete pcelica maja | March 20, 2015 at 01:14 AM

At this time I am going away to do my breakfast, when having my breakfast coming yet again to read other news.

Posted by: free music downloads | April 03, 2015 at 01:26 PM

You actually make it seem so easy with your presentation but I find this topic to be actually something which I think I would never understand. It seems too complex and very broad for me. I am looking forward for your next post, I will try to get the hang of it!

Posted by: how to configure best best best dsl modem for xbox | April 05, 2015 at 12:07 PM

Thank you for another wonderful post. Where else could anybody get that kind of information in such an ideal approach of writing? I've a presentation next week, and I'm at the search for such information.

Posted by: doc truyen sex | April 08, 2015 at 08:20 PM

Post a comment



(Not displayed with comment.)




TrackBack

TrackBack URL for this entry:
http://app.cocolog-nifty.com/t/trackback/37290/45893520

Listed below are links to weblogs that reference mod_jk が使えなくなった. mod_proxy_ajp を使うらしい:

« ssh でのバックアップに四苦八苦 | Main | ssh でのバックアップに四苦八苦(後編):改行コードと echo »