I had a problem with my Hosts file, I had my server mapped to localhost.  I changed it 
as follows

Hosts

www.testdomain 192.168.1.200 Mendelsohn

httpd.conf

<VirtualHost www.tsetdomain.com>
ServerName www.testdomain.com
...
WebAppConnection testWarp warp www.testdomain.com:8008
WebAppDeploy examples testWarp /examples/
WebAppDeploy workout testWarp /Workout/
</VirtualHost>

This works except that to access the examples  locally I have to do something like 
"http://www.testdomain.com/examples/";  

The good news is that my application now works with the apache-tomcat link.  I'm not 
sure if the performance is any better though.


chad kellerman <[EMAIL PROTECTED]> wrote:

>Let me see your Virtual Hosts section in the httpd.conf file.
>
>There might be something funky there.
>
>chad
>
>On Wed, 20 Feb 2002 11:15:20 -0500
>Frank <[EMAIL PROTECTED]> wrote:
>
>> Hey thanks.  This helped me tweak my setup and get rid of the 
>> "badhostname" error.  This works, but only locally.  The other machines 
>> cannot use "http://Mendelsohn/examples/"; but 
>> "http://Mendelsohn:8080/examples"; works fine.
>> 
>> 
>> chad kellerman wrote:
>> 
>> > Ok, but don't quote me on this.  I have been trying to do the same thing.  The 
>documentation seems vague when it comes to Virtual Hosts and Tomcat 4.0.  
>> > 
>> > 
>> >     It also seems that a few people have this working but are not sure whether 
>its right or not.  It stemms from lots of trial and error.  But any way here is what 
>I have got so far.  I am not finished, it is still a work in progress.
>> > 
>> > 
>> > I am running Apache 1.3 with Tomcat 4 on a redhat 6.2 box ( but should apply to 
>win32)
>> > 
>> > 
>> >   Ok tomcat in installed in /usr/local/jakarta-tomcat/.  I have not changed the 
>directory structure so I still have a dist/ directory which holds the logs/ bin/ 
>conf/ and what not.
>> > 
>> >   Since it's redhat httpd.conf is in /etc/httpd/conf/httpd.conf.  I have it set 
>that every virtual hosts has a different ip address and dns.  I have only two Virtual 
>hosts set up right now.  The actual host box, and virtual domain.
>> > 
>> >    I have not touched the server.xml file or the web.xml file. ( I have not 
>gotten that far yet).  But what I do have enable the host box to have jsp and 
>servlets working as well as the virtual host.
>> > 
>> >    Here is what I have in the httpd.conf file:
>> > 
>> > ########################################################
>> > 
>> > ###Tomcat installation
>> > LoadModule webapp_module libexec/mod_webapp.so
>> > WebAppConnection warpConnection warp jakarta.alabanza.com:8008
>> > WebAppDeploy ROOT warpConnection /home/httpd/html/
>> > WebAppDeploy examples warpConnection /examples/
>> > ###
>> > 
>> >  
>> > #<VirtualHost host.some_domain.com>
>> > #ServerAdmin [EMAIL PROTECTED]
>> > #DocumentRoot /www/docs/host.some_domain.com
>> > #ServerName host.some_domain.com
>> > #ErrorLog logs/host.some_domain.com-error_log
>> > #TransferLog logs/host.some_domain.com-access_log
>> > #</VirtualHost>
>> > 
>> > 
>> > <VirtualHost jakarta.gotc.net>
>> > User jak
>> > Group jakartagrp
>> > ServerName jakarta.gotc.net
>> > ServerAdmin [EMAIL PROTECTED]
>> > DocumentRoot /home/jak/jakarta-www
>> > TransferLog /home/jak/jakarta-logs/access-log
>> > ScriptAlias /cgi-bin/ /home/jak/jakarta-www/cgi-bin/
>> > WebAppConnection apoWarpConn warp jakarta.gotc.net:8015
>> > #WebAppDeploy    myapp   apoWarpConn     
>> > #WebAppDeploy    manager apoWarpConn     /manager/
>> > WebAppDeploy examples warpConnection /examples/
>> > </VirtualHost>
>> > 
>> > #####################################################################
>> > 
>> >    There is a couple things to take note here.  First I am not an expert, this 
>works.  If anyone can offer any other suggestions to make this smoother let me know.
>> > 
>> > Second,  you have to have the ####Tomcat Installation section below where you 
>have the ServerName set for the host box.  The configtest fails everytime and apache 
>won't start without it.  THe same goes in the virtual host section.  The 
>WebAppConnection line has to go below the ServerName.  Give a bad hostname error.
>> > 
>> > Third,  make sure you kill apache completely dead as well as tomcat.  It seems 
>tomcat takes a good 15-30 seconds to shutdown when you issue the shutdown.sh script.  
>After everything is shutdown completely, start tomcat first then apache.
>> > 
>> > If you get the 404 error page ( with some funky error about a line in a web app 
>deploy file) you started httpd before tomcat.  SHut them all done and restart.
>> > 
>> >   Liek I said I am working on the server.xml and the web.xml.  So far this does 
>work, but there a a few things not right.  Such as logs, and the {TOMACAT_HOME}/work 
>dierctory still holds information about the virtual hosts.  Such as sessions id and 
>what not.  THis can't be good.  I think this is a big "security" risk with my 
>configuration.  I am working on it.  When I get the server.xml and web.xnml working 
>for virtual hosts I will let you know.  I hope you will do the same.
>> > 
>> > Please, anyone have any comments let me know.
>> > 
>> > Chad 
>> > 
>> > I copied the {TOMCAT_HOME}webapps/examples to my username DocumentRoot directory. 
>And everything works. 
>> > 
>> > 
>> > WebAppDeploy ROOT warpConnection /home/httpd/html/
>> > 
>> > 
>> > 
>> > On Wed, 20 Feb 2002 13:10:08 +0900
>> > Moi <[EMAIL PROTECTED]> wrote:
>> > 
>> > 
>> >>My wanted configure is as follows:
>> >>
>> >>Apache       listens port 80 (IP : xxx.xxx.xxx.1)
>> >>Javaservlet  listens port 80 (IP : xxx.xxx.xxx.2)
>> >>
>> >>
>> >>The question is :
>> >>Is it possible to configure Apache,Tomcat4 to run separately
>> >>on the different IP listening the same port 80 if so how?
>> >>
>> >>
>> >>
>> >>--
>> >>
>> >>
>> >>
>> >>--
>> >>To unsubscribe:   <mailto:[EMAIL PROTECTED]>
>> >>For additional commands: <mailto:[EMAIL PROTECTED]>
>> >>Troubles with the list: <mailto:[EMAIL PROTECTED]>
>> >>
>> > 
>> > --
>> > To unsubscribe:   <mailto:[EMAIL PROTECTED]>
>> > For additional commands: <mailto:[EMAIL PROTECTED]>
>> > Troubles with the list: <mailto:[EMAIL PROTECTED]>
>> > 
>> > 
>> 
>> 
>> 
>> --
>> To unsubscribe:   <mailto:[EMAIL PROTECTED]>
>> For additional commands: <mailto:[EMAIL PROTECTED]>
>> Troubles with the list: <mailto:[EMAIL PROTECTED]>
>> 
>
>--
>To unsubscribe:   <mailto:[EMAIL PROTECTED]>
>For additional commands: <mailto:[EMAIL PROTECTED]>
>Troubles with the list: <mailto:[EMAIL PROTECTED]>
>
>
-- 




__________________________________________________________________
Your favorite stores, helpful shopping tools and great gift ideas. Experience the 
convenience of buying online with Shop@Netscape! http://shopnow.netscape.com/

Get your own FREE, personal Netscape Mail account today at http://webmail.netscape.com/


--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>

Reply via email to