2011-11-08 233 views
0

我用mod_jk配置了apache,将/taste上下文重定向到我的应用服务器。现在我想创建一个虚拟主机,以便我的域名重定向到这个上下文。Apache mod_jk和虚拟主机

我尝试以下配置在httpd.conf:

NameVirtualHost *:80 

<VirtualHost *:80> 
    ServerName www.suitmytaste.com 
    ServerAlias suitmytaste.com *.suitmytaste.com 
    DocumentRoot /taste 
</VirtualHost> 

但是Apache不接受/味道一部分作为DocumentRoot的。我如何配置它,以便将虚拟主机重定向到mod_jk连接器?

回答

0

我把它通过去除DocumentRoot线,并添加以下行工作,而不是:

JkMount/worker1 
JkMount /* worker1 

worker1是我在mod_jk的worker.properties文件中配置的工人。