Hi again,
I tried that out. But I get the below stated error when i start Apache.
.
.<These are my file contents>
.
.
131 # Enable the Apache JServ status handler with the URL of
132 # "http://servername/jserv/" (note the trailing slash!)
133 # Change the "deny" directive to restrict access to this status
page.
134 <Location /jserv/>
135 SetHandler jserv-status
136
137 order deny,allow
138 allow from all
139 allow from localhost
140 </Location>
141
142 ############################## W A R N I N G ######################
############
143 # Remember to disable or otherwise protect the execution of the
Apache JServ #
144 # Status Handler (see right above) on a production environment
since this may #
145 # give untrusted users the ability to obtain restricted information
on your #
146 # servlets and their initialization arguments such as JDBC
passwords and #
147 # other important information. The Apache JServ Status Handler
should be #
148 # accessible only by system administrators.
#
149 ###################################################################
############
150
151 </IfModule>
=> Added section
152 #ProductionServer in httpd.conf
153 <VirtualHost ProductionServer>
154 <IfModule mod_jserv.c>
155 ApJServMount /servlets /production
156 </IfModule>
157 </VirtuaHost>
158 <VirtualHost DevelopmentServer>
159 <IfModule mod_jserv.c>
160 ApJServMount /servlets /development
161 </IfModule>
162 </VirtuaHost>
163
sh apachectl start
[Fri Jan 12 19:37:03 2001] [error] Cannot resolve host name
ProductionServer --- ignoring!
Syntax error on line 157 of /usr/local/apache/conf/jserv/jserv.conf:
Invalid command '</VirtuaHost>', perhaps mis-spelled or defined by a
module not included in the server configuration
apachectl start: httpd could not be started
any clues to this ?? I'd really appreciate your help
cheers
arnold
Ralph Einfeldt <[EMAIL PROTECTED]> on 01/12/2001 02:49:08 PM
Please respond to [EMAIL PROTECTED]
To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
cc: (bcc: Thakur Rahul-SWD-ITIL-UB/Itilmail)
Subject: AW: Configuring Virtual host for Apache - JServ
One question, three possible answers:
- This is the tomcat list, not the jserv list.
- Although I haven't tried it, something like the
following should work:
Define two zones in jserv.properties:
zones=devzone,onlzone
devzone.properties=/some-path/devzone.properties
onlzone.properties=/some-path/onlzone.properties
Mount them inside the virtual host definition
<VirtualHost Develop>
<IfModule mod_jserv.c>
ApJServMount /servlets /devzone
ApJServMount /servlet /devzone
</IfModule>
</VirtualHost>
<VirtualHost Online>
<IfModule mod_jserv.c>
ApJServMount /servlets /onlzone
ApJServMount /servlet /onlzone
</IfModule>
</VirtualHost>
Depending on your needs you might move some params
from jserv.conf in these sections. (Or define two
include files and use a include statement.)
- I wouldn't ever use one apache instance for
production and development.
(To much interference, as a developer I have to often
the need to restart the server, I don't like the idea
that any of me development actions can break my
production environment)
Even having two instances of apache on one machine for
this purpose causes severe headache for me.
(Serving multiple production sites with one instance
of apache or with multiple instances on one machine
is a complete different topic. Although we prefer
the last version)
> -----Ursprüngliche Nachricht-----
> Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Gesendet: Freitag, 12. Januar 2001 09:27
> An: [EMAIL PROTECTED]
> Betreff: Configuring Virtual host for Apache - JServ
<snip/>
> I need some help here with configuring Apache with JServ.
> I defined two Virtual hosts in "httpd.conf" file for Apache.
> One is for development environment and the other for
> Production environment. Both the virtual hosts have same IP
> but different ports. Now , I want to create two separate
> servlet zones for these Virtual hosts in JServ configuration
> files.
<snip/>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]