----------------------------------------------------------------
BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
WHEN YOU POST, include all relevant version numbers, log files,
and configuration files.  Don't make us guess your problem!!!
----------------------------------------------------------------

Manzoor Patel wrote:

> I have a properties file, how can I make the Apache look for the
> properties file in the servlets directory?By default the Apache is
> looking for the my properties file in the Apache directory.

.../apache/conf/httpd.conf either has a ApJServProperties property, or
it "Include"s a jserv.conf file which has the ApJServProperties
property.

ApJServProperties points to the .../jserv/etc/jserv.properties file
(that's its default name and path - for my install, anyway).

jserv.properties has information for different servlet zones. By
default, there should be something like "Servlet Zones parameters" in
the comments, a property named zones which identifies each of the
servlet zones you are running (by default, zone=root).

For each servlet zone named on the zone property, there should be
another properties file identified using the property
root.properties=.../jserv/etc/zone.properties (by default, for the zone
named "root"). You can change this and put the files wherever you want.

So you could have:

zone=manzoor,main,other
manzoor.properties=/path/to/file/somefile.prop
main.properties=/another/path/main.prop
other.properties=/other/path/to/some/file/otherzone.properties


BTW, this is pretty basic, probably in the FAQ & the docs.



--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Search Archives: 
<http://www.mail-archive.com/java-apache-users%40list.working-dogs.com/>
Problems?:           [EMAIL PROTECTED]

Reply via email to