Java Mailing List Archive

http://www.junlu.com/

Google
Google
Mailing List
Home
Forum Home
JBoss - Java Application Server
Struts - A MVC web framework
Tomcat - JSP/Servlet container
iText - An open source PDF Java Library
JDOM - JDOM XML Parser
J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition
J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog
Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology
JSP - A mailing list about Java Server Pages specification and reference
Struts & Hibernate
Subjects
JSP editor plugin for eclipse ?
org apache jasper JasperException: Unable to compile class for JSP
Tomcat: Connection reset by peer: socket write error
Cannot retrieve definition for form bean null
Struts Tiles Tutorial (free Struts training)
Where do I download Tomcat 4 0 6?
Data Access Object (DAO) pattern, example DAO 's
Where to download Tomcat v 4 1 24 from?
Tomcat 5 0 16 Requested resource not available
Oracle Connection Pooling in 3 2 2
Servlet : Session invalidate
Servlet action is currently unavailable
Tomcat/Struts Unicode Encoding/Decoding problems
Tomcat and webapplication specific java library path
Running a Simple JMS Example
Mapping in workers2 properties
org apache jasper JasperException
Cannot find message resources under key org apache struts action
   MESSAGE
problem with html:text bean throwing exception
Cannot find message resources under key org apache struts action MESSAGE
invalid direct reference problem with solution
Tool for jsp debug Try Sysdeo Eclipse Plugin
Tomcat 5 Cannot load JDBC driver class 'null ' SQL state: null
weblogic ejbc
java properties file
Jboss 3 2 3 Coyote Can 't re
Tomcat 5, Apache2 and mod jk2 integration problem
JBoss example problem new to J2EE
url string for connecting jboss to oracle
Value attribute of <html:checkbox
javax servlet ServletException: BeanUtils populate
HTTP Status 404 The requested resource is not available
5 0 18: Windows XP Pro vs Windows 2000
 
tomcat Context != httpd VirtualHost

tomcat Context != httpd VirtualHost

2004-01-27       - By Brian Quade

 Back
I am trying to set up tomcat with apache so that I can just type
http://www.mysite.net to see my web site, but when I type that I just
get the default Apache page that says I set up Apache correctly.  The
only way I can my web site is if I type http://www.mysite.net/myapp,
where myapp is the directory where my web application is installed
(web.xml, WEB-INF, etc.).  Here are the configurations I have tried in
server.xml.

<Host name="www.mysite.net" appBase="webapps" ... >
   <Context path="/myapp" docBase="myapp" ... />
</Host>
*** I see my site with http://www.mysite.net/myapp, but not with
http://www.mysite.net

<Host name="www.mysite.net" appBase="webapps" ... >
   <Context path="" docBase="myapp" ... />
</Host>
*** Same result as above.
*** Setting path="" is supposed to make this the default Context for the
Host.

<Host name="www.mysite.net" appBase="webapps" ... >
   <Context path="" docBase="ROOT" ... />
</Host>
*** Didn't move any files into ROOT but I get the same result as above.

<Host name="www.mysite.net" appBase="webapps" ... >
   <Context path="" docBase="ROOT" ... />
</Host>
*** Moved all my files into ROOT I can't see my site at all.

<Host name="www.mysite.net" appBase="webapps/myapp" ... >
   <Context path="" docBase="" ... />
</Host>
*** Can't see my site at all.

Tomcat automatically creates mod_jk.conf which contains all of the
tomcat virtual hosts and information from settings in server.xml.  So I
would think that the problem is some setting in server.xml.  Since I can
see my site by appending the directory to the end of the web address, I
know that I am close to having is set up right.  But I need to set it up
so that it is the default (or root) web application and does not require
any subdirectory at the end.

What I am trying to do should be the most basic thing that people use
tomcat and apache for, but I have searched and searched and searched and
searched and can not find any documentation that tells me to do anything
other than what I have already tried.  I have found a few email messages
from people asking the same question but no one can ever answer it.  Is
this even possible at all?  I have wasted 2 whole days on this already.  
If anyone knows how to do this, please please please post the answer.

-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
For additional commands, e-mail: tomcat-user-help@(protected)




©2008 junlu.com - Jax Systems, LLC, U.S.A.