On 09/01/2010 13:42, Leon Kolchinsky wrote: > Hello Mark, > > Thanks for the link - > http://tomcat.apache.org/tomcat-6.0-doc/virtual-hosting-howto.html > I don't think that you've read my configs well. > > CATALINA_HOME != httpd document root > That's my case! I meant that CATALINA_HOME is not the same as httpd's document root. If the instructions for Sakai say expand it into CATALINA_HOME then you can't expect it to work if you expand it somewhere else.
> Where did you got the info that it isn't so? Your configuration files. >From your httpd.conf: DocumentRoot /srv/myserver029 >From your server.xml appBase="/srv/myserver029" > appBase and docBase are also different! No they are not. Again, from your server.xml appBase="/srv/sakai26" docBase="" docBase is relative to appBase so if docBase="" then docBase==appBase > And virt. hosts are actually working (please read what I've written). They might look like they are working but I assure you that they are badly broken. > It must be something with "Configuring my Contexts" as per manual. Nope. The problem is your broken configuration. > My appBase is also not under CATALINA_HOME. I know. I read your configuration files. That is not an issue for virtual hosting although it may be a problem for the Sakai installation process. Again, if you tell us the structure of that tar.gz we might be able to help. > Any help please? See my previous mail. If you choose to ignore the help you are given, then there isn't much point in folks here trying to help you. Mark > > On Sat, Jan 9, 2010 at 10:46 PM, Mark Thomas <ma...@apache.org> wrote: >> On 09/01/2010 06:25, Leon Kolchinsky wrote: >>> Hello All, >>> >>> I've installed "Apache httpd +mod_jk and tomcat with multiple virtual hosts" >>> Used primarily those 2 manuals >>> http://www.alwayssunny.com/blog/?p=174 >> This one looks pretty good although I wouldn't use the ApacheConfig >> listener. >> >>> http://www.howtoforge.com/apache2_tomcat5_mod_jk_p2 >> I'd ignore this one. >> >>> Now I need to deply java application called Sakai >>> (http://source.sakaiproject.org/release/2.6.1/artifacts/sakai-bin-2.6.1.tgz) >> That is a 280MB download so it would help if you told us what was in it. >> >>> They all talking about downloading the archive into $CATALINA_HOME and >>> then unpacking the archive. Then start up Tomcat >>> - >>> http://confluence.sakaiproject.org/display/DOC/Install+Guide+-+Binary+Install+(2.6) >>> >>> When I extract sakai-bin-2.6.1.tgz into /srv/myserver029 (Vitual >>> domain's DocumentRoot) and restart tomcat and apache I'm getting - >>> "HTTP Status 404 - / >> >> CATALINA_HOME != httpd document root >> I'm not surprised it didn't work. >> >>> Here are some of my configs realted to apache httpd+tomcat+virt >>> domains integration: >> >> You are using the same location for httpd document root and Host appBase >> and web application's docBase. That is never going to work. >> >> appBase must *never* be the same as docBase. I suggest you read this: >> http://tomcat.apache.org/tomcat-6.0-doc/virtual-hosting-howto.html >> >> I strongly recommend that http DocumentRoot is never the same as a web >> applications docBase. You have to be very carefully do to create a whole >> bunch of security issues. It is much easier just not to do this. >> >> I suggest you follow the Tomcat virtual hosting how-to and get that >> working with Sakai and then worry about adding httpd to the mix. >> >> Mark >> >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org >> For additional commands, e-mail: users-h...@tomcat.apache.org >> >> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org