Xampp Apache + Tomcat

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Xampp Apache + Tomcat

Postby thunder1001 » 07. April 2010 14:05

What do i wrong?

I did the install succesfull on a W2008 server.

If i suft to http://localhost/eshop, it's work
If i do www.domainname.com:8080/eshop it's work.

If i do www.domainname.com/eshop it's not work.

What i'm missing?

The eshop is a tomcat application.

GReetz
thunder1001
 
Posts: 2
Joined: 07. April 2010 14:02

Re: Xampp Apache + Tomcat

Postby Narrowboyy » 08. April 2010 01:47

thunder1001 wrote:If i suft to http://localhost/eshop, it's work
If i do http://www.domainname.com:8080/eshop it's work.

If i do http://www.domainname.com/eshop it's not work.
Not absolutely sure about this but maybe worth a try:

Make sure the location of the actual mod_jk.conf file in use by opening the \xampp\apache\conf\extra\mod-jk.conf file first.

If the location is here then open \xampp\tomcat\conf\auto\mod_jk.conf file in your text editor and you should see a <VirtualHost localhost> </VirtualHost> container which is allowing you to access the first 2 attempts above.

Try, by using the localhost virtualhost container as an example, to create a <VirtualHost domainname.com> </VirtualHost> container for your own domain name.

Before editing the file make a backup copy first and after editing the file, save it and then restart the tomcat server from the XAMPP Control Panel.
Narrowboyy
 
Posts: 64
Joined: 16. February 2009 02:56

Re: Xampp Apache + Tomcat

Postby thunder1001 » 08. April 2010 08:26

i cannot edit that file...
It's always generate a other one.

Code: Select all
########## Auto generated on Thu Apr 08 09:25:26 CEST 2010##########

<IfModule !mod_jk.c>
  LoadModule jk_module "C:/xampp/apache/modules/mod_jk.so"
</IfModule>

JkWorkersFile "C:/xampp/tomcat/conf/jk/workers.properties"
JkLogFile "C:/xampp/tomcat/logs/mod_jk.log"

JkLogLevel emerg



<VirtualHost localhost>
    ServerName localhost

    JkMount /odisattachments ajp13
    JkMount /odisattachments/* ajp13

    JkMount /examples ajp13
    JkMount /examples/* ajp13

    JkMount /eshop ajp13
    JkMount /eshop/* ajp13

    JkMount /host-manager ajp13
    JkMount /host-manager/* ajp13

    JkMount /docs ajp13
    JkMount /docs/* ajp13

    JkMount /manager ajp13
    JkMount /manager/* ajp13
</VirtualHost>
thunder1001
 
Posts: 2
Joined: 07. April 2010 14:02

Re: Xampp Apache + Tomcat

Postby Narrowboyy » 08. April 2010 09:13

That checks out as I could replicate the re-generate issue.

With Tomcat server running, the Documentation for VirtualHosts refers to \xampp\tomcat\conf\server.xml as the source file that seems to influence the mod_jk.conf file and can be found here:
http://localhost:8080/docs/virtual-hosting-howto.html

The Documentation home page is here:
http://localhost:8080/docs/index.html

The \xampp\tomcat\conf\tomcat-users.xml file contains the login credentials (user/pass) for the Tomcat Admin button in your XAMPP Control Panel.

You may need to read and learn the Documentation or wait until someone who knows what they are doing with Tomcat to find your post and respond - Google may also be a helpful source of information.

Sorry I can't help you more - but if you sort it out by yourself it would be appreciated if you could post back with how you fix it.
Thanks.
Narrowboyy
 
Posts: 64
Joined: 16. February 2009 02:56


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 59 guests