Solved

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

Posted on 2001-09-05
7
168 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

Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
php54-php-imap for redhat enterprise linux 7.2 1 139
PHP Upload using Uploadify 4 127
Virtual host in apache 31 112
PHP Apache application gives "Forbidden" message 5 82
If you've heard about htaccess and it sounds like it does what you want, but you're not sure how it works... well, you're in the right place. Read on. Some Basics #1. It's a file and its filename is .htaccess (yes, with a dot in the front). #…
If you are a web developer, you would be aware of the <iframe> tag in HTML. The <iframe> stands for inline frame and is used to embed another document within the current HTML document. The embedded document could be even another website.
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 …
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

752 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