Solved

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

Posted on 2001-09-05
7
167 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
  • 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
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

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

Secure Your Active Directory - April 20, 2017

Active Directory plays a critical role in your company’s IT infrastructure and keeping it secure in today’s hacker-infested world is a must.
Microsoft published 300+ pages of guidance, but who has the time, money, and resources to implement? Register now to find an easier way.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Website being blocked? 3 135
Increase size of permitted URI 4 59
Apache,  not running php on top level 14 73
Apache LDAP Authentication 20 51
Hi, in this article I'm going to teach you how to run your own site, and how to let people in (without IP). I'll talk about and explain each step... :) By the way, everything in this Tutorial is completely free and legal. This article is for …
It is possible to boost certain documents at query time in Solr. Query time boosting can be a powerful resource for finding the most relevant and "best" content. Of course the more information you index, the more fields you will be able to use for y…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

679 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