Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

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

Posted on 2001-09-05
7
Medium Priority
?
175 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
Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

 

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 200 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

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.

Question has a verified solution.

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

In Solr 4.0 it is possible to atomically (or partially) update individual fields in a document. This article will show the operations possible for atomic updating as well as setting up your Solr instance to be able to perform the actions. One major …
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…
This video shows how to quickly and easily deploy an email signature for all users in Office 365 and prevent it from being added to replies and forwards. (the resulting signature is applied on the server level in Exchange Online) The email signat…
Despite its rising prevalence in the business world, "the cloud" is still misunderstood. Some companies still believe common misconceptions about lack of security in cloud solutions and many misuses of cloud storage options still occur every day. …
Suggested Courses
Course of the Month7 days, 18 hours left to enroll

824 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