So I'm working now with just one domain :-), say www.domain.com. But instead to go directly to the jsp-webapp I have to write www.domain.com/contextname/ with virtualhost like this:

<VirtualHost>
   ServerName www.domain.com
   JkMount /contextname/* worker1
</VirtualHost>

Then the JSP-pages work like expected.

But how is it possible to go directly to the context, ie with www.domain.com? I thought something like this:

<VirtualHost>
   ServerName www.domain.com
   JkMount /* worker1
</VirtualHost>

but then I end up at the manager. I wonder if it is possible at all?

Regards
SB
Lutz Zetzsche wrote:

Hi Stanislav,

Stanislav Bauer schrieb:


I have now a config that seams to work but:

1) I have a second domain pointing to the same IP, say www.domain2.com
2) I put JkMount /domain/* worker1 into <IfModule mod_jk.c>, where I
have also JkWorkersFile aso
3) Now if I write www.domain2.com/domain I get the right reaction

But how to configure that www.domain.com works the same I realy dont
know, ie a Virtual Host.

I thought it must be something like this, maybe some more directives:
<VirtualHost>
ServerName www.domain.com
JkMount <somthing here, but what?> worker1
</VirtualHost>



Unfortunately, I don't know enough about your full Apache configuration, but if it works with one domain, it should be no problem to make it work for a second.

Do you have a second virtual host for the second domain? If so, why don't
you remove the virtual host for the first domain and define the first
domain as ServerAlias for the virtual host of the second domain?


Best wishes

Lutz


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]






--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to