3

I work in OSX primarily with mostly PHP. Normally I work locally using MAMP and virtual hosts setup in my httpd.conf so that I can point a browser to http://some-project and have as many projects as I need setup.

We have a project coming up where we need to serve JSP pages and I would like to set up my local apache server to serve only JSP files to Tomcat and everything else to MAMP using the same virtual hosts setup in:

~/applications/MAMP/conf/apache/httpd.conf

So far I have:

  1. Successfully installed Tomcat

  2. Placed mod_jd.so in

    ~/applications/MAMP/Library/modules/mod_jk.so

  3. Added the module by placing:

    LoadModule jk_module modules/mod_jk.so

in

~/applications/MAMP/conf/apache/httpd.conf
  1. Created /Library/Tomcat/Home/conf/jk/workers.properties and added the following lines:

    workers.tomcat_home=/Library/Tomcat workers.java_home=/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home

    ps=/ worker.list=ajp12, ajp13

    worker.ajp13.port=8009 worker.ajp13.host=localhost worker.ajp12.type=ajp13 worker.ajp13.mount=/*.jsp

  2. added the following lines:

    JkWorkersFile /Library/Tomcat/Home/conf/workers.properties JkLogFile /Library/Tomcat/Home/logs/mod_jk.log JkLogLevel debug

to ~/applications/MAMP/conf/apache/httpd.conf

I cannot start my MAMP however when these last two lines are present in my httpd.conf.

Does anyone work like this?

Any tips?

Any clear ideas of what I'm doing wrong?

4

1 回答 1

0

我发现 MAMP 除非日志文件已经存在,否则它不会启动。我创建日志文件的路径并放入一个与预期日志文件同名的空文本文档,然后它会立即启动。

于 2010-05-08T03:50:45.377 回答