Solved

How to place html and jsps on Apache instead of in tomcat directory?

Posted on 2001-09-05
7
169 Views
Last Modified: 2010-03-04
Is there a way of getting jsp pages to be able to sit
anywhere on a web server, rather than just under the proxy tomcat webapp
directorys?

What ever the solution for that is probably the same for .xml files,
which
I would like to be able to place anywhere example /net/www/cocoon but it
seems like tomcat isnt going to let me do that...

Any ideas...?


Basically I need the be able to sit
xml and jsp files outside of the tomcat document root.  Is this
a) possible and b) implementable?  
I've done a bit of poking around, Do I need to modify the server.xml file for tomcat (.tomcat/conf/server.xml).
 There is a <context> tag
(eg.
<Context path="/examples"
        docBase="webapps/examples"
        crossContext="false"
        debug="0"
        reloadable="true" >
</Context>
) in the server.xml.  Hoew to figure out how to get this to
point to directories outside of the doc root that apache accepts.  Do I need to modify the doc root
for apache also (httpd.conf).  

Hope this helps.

Awaiting suggestions .........?
0
Comment
Question by:sdesar
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
7 Comments
 

Author Comment

by:sdesar
ID: 6459151
Basically, to clarify.... I  want to put all the jsps outside of apache ie /usr/local/apache... into maybe /net/www/examples..... is this possible?  What *.conf and *.xml files do I need to change?
0
 
LVL 1

Expert Comment

by:fauzdar
ID: 6459862
see tomcat looks in  the server.xml file for the document root same like apache looks in httpd.conf..

you are on the correct path. you need to change the docBase to whatever directory you want to put the jsp pages to.
the contextpath is what is looked in the url, if the '/exampes' exist then  the server is told that the dictory for this url directory is "webapps/examples". insted of that you can define your own contextpath and docbase in the server.xml and put the web.xml in the directory you created... will work :)
0
 
LVL 1

Expert Comment

by:fauzdar
ID: 6459931
change the docBase to " /net/www/cocoon"
0
NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

 

Author Comment

by:sdesar
ID: 6461681
what about if I want to put the cocoon/hello.xml files in /net/www/cocoon. What files should I modify?... for the *.jsp.... I only had to modify the server.xml file that is under tomcat.
0
 
LVL 1

Accepted Solution

by:
fauzdar earned 50 total points
ID: 6463074
i have not worked with xml file... as for jsp yes just the server.xml change will work. i guess it should work.
0
 

Author Comment

by:sdesar
ID: 6464931
The xml files are not working...
Does anyone else have any suggestions to make the hello.xml work.

Thanks for yoiu responses!
0
 

Author Comment

by:sdesar
ID: 6749461
Thanks... here's your points..
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction As you’re probably aware the HTTP protocol offers basic / weak authentication, which in combination with the relevant configuration on your web server, provides the ability to password protect all or part of your host.  If you were not…
Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…

626 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question