2013-01-02 47 views

回答

0

有你自己嘗試新鮮事物?

http://tomcat.apache.org/connectors-doc/generic_howto/quick.html應該讓你去。但是,如果你還沒有嘗試過什麼,那麼我們怎麼能幫助你呢?讓我們知道是否有任何具體的錯誤,包括錯誤信息等。

+0

是越來越封閉的虛擬主機(/etc/httpd/conf/virtualhost.conf)上。 ./configure --with-apxs =/usr/sbin/apxs – Anjali

+0

可能不需要自己編譯它。你使用什麼發行版? – Tuim

0

你必須爲apache配置(我使用CentOS)。第一個文件是在/etc/httpd/conf/wokers.properties

# the name tomcat1 is variable 
worker.list=tomcat1 
# default ajp port on server.xml of tomcat 
worker.tomcat1.port=8009 
worker.tomcat1.host=localhost 
worker.tomcat1.type=ajp13 
worker.tocmat1.socket_timeout=200 
worker.tomcat1.retries=1 

第二個文件依賴於全球或是否要自定義的虛擬主機。下面的例子是基於

當我運行CMD下... Linux窗口
JkWorkersFile "/etc/httpd/conf/workers.properties 
JkLogFile /var/log/httpd/jk.log 
JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories 
JkLogLevel info 

# mount all under URI/
JkMount /* tomcat1 

# umount /robots.txt, request goes to apache document root 
JkMount /robots.txt tomcat1