Info

Leopard環境で、ApacheとTomcatを連携するメモです。

1. Apache 確認

$ httpd -v
Server version: Apache/2.2.13 (Unix)
Server built:   Oct  4 2009 22:18:19
$ httpd -vServer version: Apache/2.2.13 (Unix)Server built:   Oct  4 2009 22:18:19

2. Tomcat インストール

https://footmark.wordpress.com/2009/09/10/mac-os-x-に-tomcat6-をインストール/

3. mod_jk

http://ftp.riken.jp/net/apache/tomcat/tomcat-connectors/jk/source/ から tomcat-connectors-1.2.30-src.tar.gz ダウンロードして解凍

$ cd tomcat-connectors-1.2.30-src/native
$ ./configure –with-apxs=/usr/sbin/apxs
…..
$ vi apache-2.0/Makefile.apxs
mod_jk.la:
$(APXS)  -c -o $@ -Wc,”${APXSCFLAGS} -arch x86_64 ${JK_INCL}” “${JAVA_INCL}” “${APXSLDFLAGS} -arch x86_64” mod_jk.c ${APACHE_OBJECTS}
$ make
$ sudo cp apache-2.0/mod_jk.so /usr/libexec/apache2/

4. httpd.conf

LoadModule jk_module     libexec/apache2/mod_jk.so
https://footmark.wordpress.com/2008/05/27/tomcat-apache-連携/

keywordsuitable image found.  Did find:\n\t/usr/libexec/apache2/mod_jk-1.2.25-httpd-2.2.4.so: mach-o, but wrong architecture

Comments

No comments yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Basic HTML is allowed. Your email address will not be published.

Subscribe to this comment feed via RSS