Re: some tuning ...

2002-01-30 Thread Julien OIX

August Detlefsen a écrit :
 
 You shouldn't need to define 2 services in server.xml. Just use 1
 service with 2 virtual hosts.

  I'm using Tomcat 4.0.1-1, Apache 1.3.22  and mod_webapp under RedHat Linux 7.1
 
  here's my problem:
 
  my website can be accessed by a front-office or a back-office, but
  this
  is the same webapp ...
 
  I'd like the two parts can be reached either by  mysite.mydomain.fr
  (path_to_webapp/index.jsp)
and  myadmin.mydomain.fr
  (path_to_webapp/adminsite/frameset.html)
 
  I suppose I deploy only one WarpConnector.
 

I did some change in the server.xml

### a part of server.xml 
###

Engine className=org.apache.catalina.connector.warp.WarpEngine
 name=Apache debug=0 

  Realm className=org.apache.catalina.realm.MemoryRealm / 

!-- Front-Office --
  Host name=miles.presidence.univ-nantes.fr debug=0
appBase=webapps 
   unpackWARs=true autodeploy=true

Context path= docBase=univ debug=0 privileged=true/

  /Host
!-- Back-Office --
  Host name=stats.presidence.univ-nantes.fr debug=0
appBase=webapps 
   unpackWARs=true autodeploy=true
 
Context path= docBase=univ/adminsite debug=0 privileged=true/
  /Host
/Engine

# a part of httpd.conf
#

WebAppConnectionconn1 warp miles.presidence.univ-nantes.fr:8011

NameVirtualHost 193.52.112.79

VirtualHost 193.52.112.79

ServerName miles.presidence.univ-nantes.fr
ServerAdmin [EMAIL PROTECTED]
DocumentRoot /var/tomcat4/webapps/univ
DirectoryIndex index.jsp
Port 8011
UseCanonicalName Off
WebAppDeploy/var/tomcat4/webapps/univ conn1 /

/VirtualHost

VirtualHost 193.52.112.79

ServerName stats.presidence.univ-nantes.fr
ServerAdmin [EMAIL PROTECTED]
DocumentRoot /var/tomcat4/webapps/univ/adminsite
DirectoryIndex frameset.html
Port 8011
UseCanonicalName Off

WebAppDeploy/var/tomcat4/webapps/univ/adminsite conn1 /

/VirtualHost


when I restart Apache and Tomcat, I have no errors in the apache
error_log, and this is what I get in the tomcat's catalina.out:

WebappLoader[]: Deploying class repositories to work directory
/var/tomcat4/work/stats.presidence.univ-nantes.fr/_
StandardManager[]: Seeding random number generator class
java.security.SecureRandom
StandardManager[]: Seeding of random number generator has been completed
ContextConfig[]: Missing application web.xml, using defaults only
StandardWrapper[:default]: Loading container servlet default
StandardWrapper[:invoker]: Loading container servlet invoker
StandardHost[stats.presidence.univ-nantes.fr]: Installing web
application at context path /univ from URL
file:/var/tomcat4/webapps/univ
WebappLoader[/univ]: Deploying class repositories to work directory
/var/tomcat4/work/stats.presidence.univ-nantes.fr/univ
WebappLoader[/univ]: Deploy JAR /WEB-INF/lib/jtf.jar to
/var/tomcat4/webapps/univ/WEB-INF/lib/jtf.jar
WebappLoader[/univ]: Deploy JAR /WEB-INF/lib/univ.jar to
/var/tomcat4/webapps/univ/WEB-INF/lib/univ.jar
StandardManager[/univ]: Seeding random number generator class
java.security.SecureRandom
StandardManager[/univ]: Seeding of random number generator has been
completed
ContextConfig[/univ]: Missing application web.xml, using defaults only
StandardWrapper[/univ:default]: Loading container servlet default
StandardWrapper[/univ:invoker]: Loading container servlet invoker
WebappLoader[]: Deploying class repositories to work directory
/var/tomcat4/work/miles.presidence.univ-nantes.fr/_
WebappLoader[]: Deploy JAR /WEB-INF/lib/jtf.jar to
/var/tomcat4/webapps/univ/WEB-INF/lib/jtf.jar
WebappLoader[]: Deploy JAR /WEB-INF/lib/univ.jar to
/var/tomcat4/webapps/univ/WEB-INF/lib/univ.jar
StandardManager[]: Seeding random number generator class
java.security.SecureRandom
StandardManager[]: Seeding of random number generator has been completed
ContextConfig[]: Missing application web.xml, using defaults only
StandardWrapper[:default]: Loading container servlet default
StandardWrapper[:invoker]: Loading container servlet invoker
StandardHost[miles.presidence.univ-nantes.fr]: Installing web
application at context path /univ from URL
file:/var/tomcat4/webapps/univ
WebappLoader[/univ]: Deploying class repositories to work directory
/var/tomcat4/work/miles.presidence.univ-nantes.fr/univ
WebappLoader[/univ]: Deploy JAR /WEB-INF/lib/jtf.jar to
/var/tomcat4/webapps/univ/WEB-INF/lib/jtf.jar
WebappLoader[/univ]: Deploy JAR /WEB-INF/lib/univ.jar to
/var/tomcat4/webapps/univ/WEB-INF/lib/univ.jar
StandardManager[/univ]: Seeding random number generator class
java.security.SecureRandom
StandardManager[/univ]: Seeding of random number generator has been
completed
ContextConfig[/univ]: Missing application web.xml, using defaults only
StandardWrapper[/univ:default]: Loading container servlet default

Re: some tuning ...

2002-01-30 Thread August Detlefsen

I think that Tomcat is expecting a full webapp in the
/var/tomcat4/webapps/univ/adminsite directory. Do you have a WEB-INF
directoy (with the associated web.xml, etc.) in adminsite? 

Since you have defined adminsite as a separate context, I think it
won't recognise the webapp in the directory above it (univ). Maybe
instead you can just use mod_redirect or mod_rewrite to forward
requests from: 

http://myadmin.mydomain.fr/

to: 

http://mysite.mydomain.fr/adminsite/

BTW: Does anyone know how to get rid of the trailing slash? 

-August


--- Julien OIX [EMAIL PROTECTED] wrote:
 August Detlefsen a écrit :
  
  You shouldn't need to define 2 services in server.xml. Just use 1
  service with 2 virtual hosts.
 
   I'm using Tomcat 4.0.1-1, Apache 1.3.22  and mod_webapp under
 RedHat Linux 7.1
  
   here's my problem:
  
   my website can be accessed by a front-office or a back-office,
 but
   this
   is the same webapp ...
  
   I'd like the two parts can be reached either by 
 mysite.mydomain.fr
   (path_to_webapp/index.jsp)
 and 
 myadmin.mydomain.fr
   (path_to_webapp/adminsite/frameset.html)
  
   I suppose I deploy only one WarpConnector.
  
 
 I did some change in the server.xml
 
 ### a part of server.xml 
 ###
 
 Engine className=org.apache.catalina.connector.warp.WarpEngine
  name=Apache debug=0 
 
   Realm className=org.apache.catalina.realm.MemoryRealm / 
 
   !-- Front-Office --
   Host name=miles.presidence.univ-nantes.fr debug=0
 appBase=webapps 
unpackWARs=true autodeploy=true
 
   Context path= docBase=univ debug=0 privileged=true/
 
   /Host
   !-- Back-Office --
   Host name=stats.presidence.univ-nantes.fr debug=0
 appBase=webapps 
unpackWARs=true autodeploy=true
  
   Context path= docBase=univ/adminsite debug=0
 privileged=true/
   /Host
 /Engine
 
 # a part of httpd.conf
 #
 
 WebAppConnection  conn1 warp miles.presidence.univ-nantes.fr:8011
 
 NameVirtualHost 193.52.112.79
 
 VirtualHost 193.52.112.79
 
 ServerName miles.presidence.univ-nantes.fr
 ServerAdmin [EMAIL PROTECTED]
 DocumentRoot /var/tomcat4/webapps/univ
 DirectoryIndex index.jsp
 Port 8011
 UseCanonicalName Off
 WebAppDeploy  /var/tomcat4/webapps/univ conn1 /
 
 /VirtualHost
 
 VirtualHost 193.52.112.79
 
 ServerName stats.presidence.univ-nantes.fr
 ServerAdmin [EMAIL PROTECTED]
 DocumentRoot /var/tomcat4/webapps/univ/adminsite
 DirectoryIndex frameset.html
 Port 8011
 UseCanonicalName Off
 
 WebAppDeploy  /var/tomcat4/webapps/univ/adminsite conn1 /
 
 /VirtualHost
 
 
 when I restart Apache and Tomcat, I have no errors in the apache
 error_log, and this is what I get in the tomcat's catalina.out:
 
 WebappLoader[]: Deploying class repositories to work directory
 /var/tomcat4/work/stats.presidence.univ-nantes.fr/_
 StandardManager[]: Seeding random number generator class
 java.security.SecureRandom
 StandardManager[]: Seeding of random number generator has been
 completed
 ContextConfig[]: Missing application web.xml, using defaults only
 StandardWrapper[:default]: Loading container servlet default
 StandardWrapper[:invoker]: Loading container servlet invoker
 StandardHost[stats.presidence.univ-nantes.fr]: Installing web
 application at context path /univ from URL
 file:/var/tomcat4/webapps/univ
 WebappLoader[/univ]: Deploying class repositories to work directory
 /var/tomcat4/work/stats.presidence.univ-nantes.fr/univ
 WebappLoader[/univ]: Deploy JAR /WEB-INF/lib/jtf.jar to
 /var/tomcat4/webapps/univ/WEB-INF/lib/jtf.jar
 WebappLoader[/univ]: Deploy JAR /WEB-INF/lib/univ.jar to
 /var/tomcat4/webapps/univ/WEB-INF/lib/univ.jar
 StandardManager[/univ]: Seeding random number generator class
 java.security.SecureRandom
 StandardManager[/univ]: Seeding of random number generator has been
 completed
 ContextConfig[/univ]: Missing application web.xml, using defaults
 only
 StandardWrapper[/univ:default]: Loading container servlet default
 StandardWrapper[/univ:invoker]: Loading container servlet invoker
 WebappLoader[]: Deploying class repositories to work directory
 /var/tomcat4/work/miles.presidence.univ-nantes.fr/_
 WebappLoader[]: Deploy JAR /WEB-INF/lib/jtf.jar to
 /var/tomcat4/webapps/univ/WEB-INF/lib/jtf.jar
 WebappLoader[]: Deploy JAR /WEB-INF/lib/univ.jar to
 /var/tomcat4/webapps/univ/WEB-INF/lib/univ.jar
 StandardManager[]: Seeding random number generator class
 java.security.SecureRandom
 StandardManager[]: Seeding of random number generator has been
 completed
 ContextConfig[]: Missing application web.xml, using defaults only
 StandardWrapper[:default]: Loading container servlet default
 StandardWrapper[:invoker]: Loading container servlet invoker
 StandardHost[miles.presidence.univ-nantes.fr]: Installing web
 application at 

Re: some tuning ...

2002-01-29 Thread August Detlefsen

You shouldn't need to define 2 services in server.xml. Just use 1
service with 2 virtual hosts. 

-August


--- Julien OIX [EMAIL PROTECTED] wrote:
 hi,
 
 I'm using Tomcat 4.0.1-1, Apache 1.3.22 under RedHat Linux 7.1
 
 here's my problem:
 
 my website can be accessed by a front-office or a back-office, but
 this
 is the same webapp ...
 
 I'd like the two parts can be reached either by  mysite.mydomain.fr
 (path_to_webapp/index.jsp)
   and  myadmin.mydomain.fr
 (path_to_webapp/adminsite/frameset.html)
 
 I suppose I deploy only one WarpConnector.
 
 How can I do ?
 
 I tried this way:
   put 2 VirtualHosts in httpd.conf, having the WebAppConnection in the
 main config and a WebAppDeploy in each; 
   defined 2 Services in the server.xml with Host and Context
 directives
 
 it doesn't work
 
 has anyone some tips ?
 
 thanks in advance
 
 
 Julien OIX
 Service Informatique de Gestion
 Tél: 02 40 99 83 65
 mail: [EMAIL PROTECTED]
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 


__
Do You Yahoo!?
Great stuff seeking new owners in Yahoo! Auctions! 
http://auctions.yahoo.com

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




some tuning ...

2002-01-28 Thread Julien OIX

hi,

I'm using Tomcat 4.0.1-1, Apache 1.3.22 under RedHat Linux 7.1

here's my problem:

my website can be accessed by a front-office or a back-office, but this
is the same webapp ...

I'd like the two parts can be reached either by  mysite.mydomain.fr
(path_to_webapp/index.jsp)
and  myadmin.mydomain.fr
(path_to_webapp/adminsite/frameset.html)

I suppose I deploy only one WarpConnector.

How can I do ?

I tried this way:
put 2 VirtualHosts in httpd.conf, having the WebAppConnection in the
main config and a WebAppDeploy in each; 
defined 2 Services in the server.xml with Host and Context
directives

it doesn't work

has anyone some tips ?

thanks in advance


Julien OIX
Service Informatique de Gestion
Tél: 02 40 99 83 65
mail: [EMAIL PROTECTED]

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]