There is no Apache virtual host defined for "computername", only for "localhost". There are also no JkMount commands for any Apache Virtual Host other than localhost, so trying JSP or servlets with http://computername/some.jsp will get you nothing, because Apache has no idea what to do with that.
If you want to use Apache auto config, and you want other hostnames besides localhost, then you need to define those other Hosts (and their Contexts) in server.xml. For example, the default setup has a /examples Context inside a localhost Host element in server.xml. If you want "computername/examples" then you need a /examples Context inside a Host element that is named "computername". Something like (for illustration purposes only, may not be syntactically correct): <Host name="computername" /> <Context path="/examples" /> John > -----Original Message----- > From: Vikram Dham [mailto:[EMAIL PROTECTED]] > Sent: Monday, December 09, 2002 6:31 PM > To: Tomcat Users List > Subject: Re: Apache2.04 Tomcat4.1.12 Integration > > > In workers.properties also change worker.ajp12/13.host to > computername.domainname. Right now it is local host in your > workers.properties file. > > --Vikram > > > ----- Original Message ----- > From: "vim m" <[EMAIL PROTECTED]> > To: "Tomcat Users List" <[EMAIL PROTECTED]> > Sent: Monday, December 09, 2002 6:27 PM > Subject: Re: Apache2.04 Tomcat4.1.12 Integration > > > > > > Vikram: > > I tried that, doesnt work. > > Thanks > > > > Vikram Dham <[EMAIL PROTECTED]> wrote:Try changing server name > from localhost > to your computername.domainname in > > mod_jk.conf file. > > > > --Vikram > > ----- Original Message ----- > > From: "vim m" > > To: "Tomcat Users List" > > Sent: Monday, December 09, 2002 6:17 PM > > Subject: Apache2.04 Tomcat4.1.12 Integration > > > > > > > > > > Hi: > > > > > > I am integrating Apache 2.0.4 and Tomcat 4.1.12 on Win 2K. > > > > > > This is what I had performed: > > > > > > Installed Apache 2 and tested successfully. > > > Installed Tomcat 4.1 and tested successfully. > > > Downloaded mod_jk-2.0.42.dll into the modules directory of Apache. > > > Created jk folder in conf of Tomcat. Created > workers.properties file. > > > > > > workers.tomcat_home=c:/Tomcat-4.1 > > > workers.java_home=$(JAVA_HOME) > > > ps=\ > > > worker.list=ajp13, ajp14 > > > worker.ajp13.port=8009 > > > worker.ajp13.host=localhost > > > worker.ajp13.type=ajp13 > > > worker.ajp13.lbfactor=1 > > > > > > 5. Edited the Server.xml file to include the following - > > > > > > > > modJk="c:/Apache2/modules/mod_jk-2.0.42.dll" jkDebug="info" > > workersConfig="c:/Tomcat-4.1/conf/jk/workers.properties" > > jkLog="c:/Tomcat-4.1/logs/mod_jk.log" /> > > > > > > > > > and > > > > > > > > append="true" /> > > > > > > > > > 6. Restarted Tomcat, it generates the auto directory with > the mod_jk > file > > containing the following > > > > > > > > > LoadModule jk_module c:/Apache2/modules/mod_jk-2.0.42.dll > > > > > > > > > JkWorkersFile "c:/Tomcat-4.1/conf/jk/workers.properties" > > > JkLogFile "c:/Tomcat-4.1/logs/mod_jk.log" > > > > > > JkLogLevel info > > > > > > > > > > > > > > > ServerName localhost > > > > > > JkMount /admin ajp13 > > > JkMount /admin/* ajp13 > > > > > > JkMount /webdav ajp13 > > > JkMount /webdav/* ajp13 > > > > > > JkMount /blmt ajp13 > > > JkMount /blmt/* ajp13 > > > > > > JkMount /examples ajp13 > > > JkMount /examples/* ajp13 > > > > > > JkMount /tomcat-docs ajp13 > > > JkMount /tomcat-docs/* ajp13 > > > > > > JkMount /manager ajp13 > > > JkMount /manager/* ajp13 > > > > > > > > > > > > 7. copied this into the httpd.conf file of Apache after the last > > LoadModule. > > > > > > 8. Restarted Apache. > > > > > > Now my site works fine when I use localhost - i.e > > > > > > http://localhost/mysite/index.jsp > > > > > > But when I try to give my computer name its giving file > not found error. > > i.e > > > > > > http://computer1.domain/mysite/index.jsp > > > > > > But Tomcat seems to work fine- i.e > > > > > > http://computer1.domain:8080/mysite/index.jsp > > > > > > And Apache works fine while serving the html pages - i.e > > > > > > http://computer1.domain/demo.html > > > > > > I have checked on google, and the mailing list, nobody seems to be > having > > this kinda problem. Have I missed out any steps in the > configuration? Do I > > have to set any attributes in the config files? Any hints > appreciated. > > > > > > Thank you. > > > > > > vim > > > > > > > > > > > > > > > > > > --------------------------------- > > > Do you Yahoo!? > > > Yahoo! Mail Plus - Powerful. Affordable. Sign up now > > > > > > > > > -- > > To unsubscribe, e-mail: > > For additional commands, e-mail: > > > > > > > > --------------------------------- > > Do you Yahoo!? > > Yahoo! Mail Plus - Powerful. Affordable. Sign up now > > > > > -- > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
