Server.xml query

2005-06-22 Thread sai krishna
Hi again
What is this service name in server.xml
I have seen two ways of writing it.
1)Tomcat Standalone
2)Tomcat-Apache
what is the difference between two? 

--- Randall Svancara [EMAIL PROTECTED] wrote:

  
 This might be something to look at, but I know in
 Fedora Core 3, the
 last SE Linux Policy broke mod_jk.  You had to
 either turn of SELinux or
 modify targeted policy.  If you think you may have
 this problem, look at
 /var/log/messages to see if the security policy is
 logging any errors.
 
 You can also run:
 
 audit2allow -d 
 
 to see if any policy changes needed to be added.   
 
 
 Randall
 
 
 -Original Message-
 From: Raghupathy,Gurumoorthy
 [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, June 21, 2005 7:10 AM
 To: 'Tomcat Users List'
 Subject: RE: How to make tomcat work on a remote
 server?
 
 Hey just got it 
 
   Look at : http://www.junlu.com/msg/170819.html 
 
 -Original Message-
 From: Raghupathy,Gurumoorthy
 [mailto:[EMAIL PROTECTED]
 
 Sent: 21 June 2005 14:04
 To: 'Tomcat Users List'
 Cc: '[EMAIL PROTECTED]'
 Subject: RE: How to make tomcat work on a remote
 server?
 
 
 From my experience 
   Your DocumentRoot should be different to the
 appBase of your
 virtual host ... 
   Set the document root to something else and try 
 
   
 Regards
 Guru
 
 
 -Original Message-
 From: Raghupathy,Gurumoorthy
 [mailto:[EMAIL PROTECTED]
 
 Sent: 21 June 2005 13:45
 To: 'Tomcat Users List'
 Cc: '[EMAIL PROTECTED]'
 Subject: RE: How to make tomcat work on a remote
 server?
 
 
 Sorry could not get back to you earlier ... 
 
 I think you are worker2.properties ... 
 
 Remove 
   LoadModule jk2_module modules/mod_jk2.so
   Include /usr/local/tomcat/conf/auto/mod_jk2.conf
 
 
 Your workers.
 Should be somehting like this .. ..   
 

http://jakarta.apache.org/tomcat/connectors-doc/howto/workers.html
 
 I will look into your problem from home ..  Have
 emailed my home address
 ...
 
 
 Regards
 Guru 
 
 -Original Message-
 From: sai krishna [mailto:[EMAIL PROTECTED]
 Sent: 21 June 2005 13:06
 To: Tomcat Users List
 Subject: RE: How to make tomcat work on a remote
 server?
 
 
  Can anyone help me out  here??
  Im unable to access my jsp page on the net. I get
 internal server error. Im using included both mod_jk
 and mod_jk2 module, /var/logs/httpd/log shows that
 mod_jk2 starts but down below this module I loaded
 mod_jk module so it will support JkMount command in
 httpd.conf file. Can any one suggest m e the best
 method to access jsp pages on tomcat 4.1.17 either
 mod_jk/mod_jk2 connector and 2.0.52 apache on Fedora
 box 2.
 Today I added JkMount line in httpd.conf and rest
 everything is same as my down files 
  
   server.xml is as following
   Server port=8005 shutdown=SHUTDOWN debug=0
 !-- Define an Apache-Connector Service --
  Service name=Tomcat-Apache
!-- Define a Coyote/JK2 AJP 1.3 Connector on
 port 8009 --
   Connector
 

className=org.apache.coyote.tomcat4.CoyoteConnector
   port=8009 minProcessors=5 maxProcessors=75
   enableLookups=true redirectPort=8443
   acceptCount=10 debug=0
   connectionTimeout=2
   useURIValidationHack=false

protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler/
 Engine name=Apache
   defaultHost=www.oursitename.com debug=0
   Logger
   className=org.apache.catalina.logger.FileLogger
   prefix=apache_log. suffix=.txt
   timestamp=true/
   !-- Access log processes all requests for this
   virtual host. --
   Valve
  

className=org.apache.catalina.valves.AccessLogValve
   directory=logs  prefix=localhost_access_log.
   suffix=.txt
   pattern=common resolveHosts=false/
Host name=www.oursitename.com debug=0
 

appBase=/home/httpd/vhosts/oursitename.com/httpdocs/
unpackWARs=true autoDeploy=true
   Aliaslocalhost/Alias
   Aliaswww/Alias/Host
   AliasOur IP/Alias
   /Engine
/Service
/Server
   
   --
   httpd.conf file
 LoadModule jk2_module modules/mod_jk2.so
 LoadModule jk_module modules/mod_jk.so
 Include /usr/local/tomcat/conf/auto/mod_jk2.conf
 Include /usr/local/tomcat/conf/auto/mod_jk.conf
 VirtualHost Our IP:80
   ServerName   oursite.com:80
   ServerAlias  www.oursite.com
   UseCanonicalName On
   DocumentRoot
/home/httpd/vhosts/oursite.com/httpdocs
   CustomLog 

/home/httpd/vhosts/oursite.com/statistics/logs/access_log
combined
   ErrorLog  

/home/httpd/vhosts/oursite.com/statistics/logs/error_log
   Alias /trainer
 /home/httpd/vhosts/oursite.com/httpdocs/trainer
 
 JkMount /trainer/*.jsp ajp13
 JkMount /trainer/adminjsp/*.jsp ajp13
 Directory
 /home/httpd/vhosts/oursite.com/httpdocs/trainer/
 Options Indexes FollowSymLinks
 DirectoryIndex index.html index.htm index.jsp
 /Directory
 Location /trainer/WEB-INF/*
 AllowOverride None 
 deny from all 
 /Location 
 Location /trainer/META-INF/*
 AllowOverride None
 deny from all
 /Location
 Directory /home/httpd/vhosts/oursite.com/httpdocs

RE: How to make tomcat work on a remote server?

2005-06-21 Thread sai krishna
 Can anyone help me out  here??
 Im unable to access my jsp page on the net. I get
internal server error. Im using included both mod_jk
and mod_jk2 module, /var/logs/httpd/log shows that
mod_jk2 starts but down below this module I loaded
mod_jk module so it will support JkMount command in
httpd.conf file. Can any one suggest m e the best
method to access jsp pages on tomcat 4.1.17 either
mod_jk/mod_jk2 connector and 2.0.52 apache on Fedora
box 2.
Today I added JkMount line in httpd.conf and rest
everything is same as my down files 
 
  server.xml is as following
  Server port=8005 shutdown=SHUTDOWN debug=0
!-- Define an Apache-Connector Service --
 Service name=Tomcat-Apache
   !-- Define a Coyote/JK2 AJP 1.3 Connector on
port 8009 --
  Connector
 className=org.apache.coyote.tomcat4.CoyoteConnector
  port=8009 minProcessors=5 maxProcessors=75
  enableLookups=true redirectPort=8443
  acceptCount=10 debug=0
  connectionTimeout=2
  useURIValidationHack=false
protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler/
Engine name=Apache
  defaultHost=www.oursitename.com debug=0
  Logger
  className=org.apache.catalina.logger.FileLogger
  prefix=apache_log. suffix=.txt
  timestamp=true/
  !-- Access log processes all requests for this
  virtual host. --
  Valve
 
className=org.apache.catalina.valves.AccessLogValve
  directory=logs  prefix=localhost_access_log.
  suffix=.txt
  pattern=common resolveHosts=false/
   Host name=www.oursitename.com debug=0

appBase=/home/httpd/vhosts/oursitename.com/httpdocs/
   unpackWARs=true autoDeploy=true
  Aliaslocalhost/Alias
  Aliaswww/Alias/Host
  AliasOur IP/Alias
  /Engine
   /Service
   /Server
  
  --
  httpd.conf file
LoadModule jk2_module modules/mod_jk2.so
LoadModule jk_module modules/mod_jk.so
Include /usr/local/tomcat/conf/auto/mod_jk2.conf
Include /usr/local/tomcat/conf/auto/mod_jk.conf
VirtualHost Our IP:80
  ServerName   oursite.com:80
  ServerAlias  www.oursite.com
  UseCanonicalName On
  DocumentRoot
   /home/httpd/vhosts/oursite.com/httpdocs
  CustomLog 
/home/httpd/vhosts/oursite.com/statistics/logs/access_log
   combined
  ErrorLog  
/home/httpd/vhosts/oursite.com/statistics/logs/error_log
  Alias /trainer
/home/httpd/vhosts/oursite.com/httpdocs/trainer

JkMount /trainer/*.jsp ajp13
JkMount /trainer/adminjsp/*.jsp ajp13
Directory
/home/httpd/vhosts/oursite.com/httpdocs/trainer/
Options Indexes FollowSymLinks
DirectoryIndex index.html index.htm index.jsp
/Directory
Location /trainer/WEB-INF/*
AllowOverride None 
deny from all 
/Location 
Location /trainer/META-INF/*
AllowOverride None
deny from all
/Location
Directory /home/httpd/vhosts/oursite.com/httpdocs/
Options None
AllowOverride None
/Directory

  ---
workers.properties
[logger.apache2]
level=DEBUG
  
[shm]
file=/home/httpd/vhosts/oursite.com/tomcatlog
size=1048576

# Example socket channel, override port and host.
[channel.socket:localhost:8009]
 port=8009
 host=127.0.0.1

# define the worker
[ajp13:localhost:8009]
channel=channel.socket:localhost:8009
 
# Uri mapping
[uri:ourIP/*.jsp]
worker=ajp13:localhost:8009
 
[uri:www.oursite.com/*.jsp]
worker=ajp13:localhost:8009

  --


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: How to make tomcat work on a remote server?

2005-06-21 Thread sai krishna
Thank You Mr. Gurumoorthy, 
Sorry I couldnt reply You back as it was already late
night here I went away from my desk. Thank you for the
urls, But couldnt get what us this below  url for? Is
it for testing whether my server is running tomcat or
not? Hope Im right 
http://www.junlu.com/msg/170819.html

Thank You once again. Ill get back to u as soon as it
runs.

Sai Krishna

--- Raghupathy,Gurumoorthy
[EMAIL PROTECTED] wrote:

 Hey just got it 
 
   Look at : http://www.junlu.com/msg/170819.html 
 
 -Original Message-
 From: Raghupathy,Gurumoorthy
 [mailto:[EMAIL PROTECTED]
 
 Sent: 21 June 2005 14:04
 To: 'Tomcat Users List'
 Cc: '[EMAIL PROTECTED]'
 Subject: RE: How to make tomcat work on a remote
 server?
 
 
 From my experience 
   Your DocumentRoot should be different to the
 appBase of your virtual
 host ... 
   Set the document root to something else and try 
 
   
 Regards
 Guru
 
 
 -Original Message-
 From: Raghupathy,Gurumoorthy
 [mailto:[EMAIL PROTECTED]
 
 Sent: 21 June 2005 13:45
 To: 'Tomcat Users List'
 Cc: '[EMAIL PROTECTED]'
 Subject: RE: How to make tomcat work on a remote
 server?
 
 
 Sorry could not get back to you earlier ... 
 
 I think you are worker2.properties ... 
 
 Remove 
   LoadModule jk2_module modules/mod_jk2.so
   Include /usr/local/tomcat/conf/auto/mod_jk2.conf
 
 
 Your workers.
 Should be somehting like this .. ..   
 

http://jakarta.apache.org/tomcat/connectors-doc/howto/workers.html
 
 I will look into your problem from home ..  Have
 emailed my home address ...
 
 
 Regards
 Guru 
 
 -Original Message-
 From: sai krishna [mailto:[EMAIL PROTECTED] 
 Sent: 21 June 2005 13:06
 To: Tomcat Users List
 Subject: RE: How to make tomcat work on a remote
 server?
 
 
  Can anyone help me out  here??
  Im unable to access my jsp page on the net. I get
 internal server error. Im using included both mod_jk
 and mod_jk2 module, /var/logs/httpd/log shows that
 mod_jk2 starts but down below this module I loaded
 mod_jk module so it will support JkMount command in
 httpd.conf file. Can any one suggest m e the best
 method to access jsp pages on tomcat 4.1.17 either
 mod_jk/mod_jk2 connector and 2.0.52 apache on Fedora
 box 2.
 Today I added JkMount line in httpd.conf and rest
 everything is same as my down files 
  
   server.xml is as following
   Server port=8005 shutdown=SHUTDOWN debug=0
 !-- Define an Apache-Connector Service --
  Service name=Tomcat-Apache
!-- Define a Coyote/JK2 AJP 1.3 Connector on
 port 8009 --
   Connector
 

className=org.apache.coyote.tomcat4.CoyoteConnector
   port=8009 minProcessors=5 maxProcessors=75
   enableLookups=true redirectPort=8443
   acceptCount=10 debug=0
   connectionTimeout=2
   useURIValidationHack=false

protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler/
 Engine name=Apache
   defaultHost=www.oursitename.com debug=0
   Logger
   className=org.apache.catalina.logger.FileLogger
   prefix=apache_log. suffix=.txt
   timestamp=true/
   !-- Access log processes all requests for this
   virtual host. --
   Valve
  

className=org.apache.catalina.valves.AccessLogValve
   directory=logs  prefix=localhost_access_log.
   suffix=.txt
   pattern=common resolveHosts=false/
Host name=www.oursitename.com debug=0
 

appBase=/home/httpd/vhosts/oursitename.com/httpdocs/
unpackWARs=true autoDeploy=true
   Aliaslocalhost/Alias
   Aliaswww/Alias/Host
   AliasOur IP/Alias
   /Engine
/Service
/Server
   
   --
   httpd.conf file
 LoadModule jk2_module modules/mod_jk2.so
 LoadModule jk_module modules/mod_jk.so
 Include /usr/local/tomcat/conf/auto/mod_jk2.conf
 Include /usr/local/tomcat/conf/auto/mod_jk.conf
 VirtualHost Our IP:80
   ServerName   oursite.com:80
   ServerAlias  www.oursite.com
   UseCanonicalName On
   DocumentRoot
/home/httpd/vhosts/oursite.com/httpdocs
   CustomLog 

/home/httpd/vhosts/oursite.com/statistics/logs/access_log
combined
   ErrorLog  

/home/httpd/vhosts/oursite.com/statistics/logs/error_log
   Alias /trainer
 /home/httpd/vhosts/oursite.com/httpdocs/trainer
 
 JkMount /trainer/*.jsp ajp13
 JkMount /trainer/adminjsp/*.jsp ajp13
 Directory
 /home/httpd/vhosts/oursite.com/httpdocs/trainer/
 Options Indexes FollowSymLinks
 DirectoryIndex index.html index.htm index.jsp
 /Directory
 Location /trainer/WEB-INF/*
 AllowOverride None 
 deny from all 
 /Location 
 Location /trainer/META-INF/*
 AllowOverride None
 deny from all
 /Location
 Directory /home/httpd/vhosts/oursite.com/httpdocs/
 Options None
 AllowOverride None
 /Directory
 
   ---
 workers.properties
 [logger.apache2]
 level=DEBUG
   
 [shm]
 file=/home/httpd/vhosts/oursite.com/tomcatlog
 size=1048576
 
 # Example socket channel, override port and host.
 [channel.socket:localhost:8009]
  port=8009
  host=127.0.0.1
 
 # define the worker
 [ajp13:localhost:8009]
 channel=channel.socket:localhost

How to make tomcat work on a remote server?

2005-06-20 Thread sai krishna
Hello, 
 Im a newbie to tomcat.
 I was trying to install on a remote server. I could 
 install it on the localhost perfectly I can see it
 when  I connect through lynx localhost:8080 I can see
 default tomcat page.
 But when I was trying its IP from a remote place
 http://IP-Address:8080
 Im unable to access it.
 Can some one tell me what could have gone wrong
 
 Details
 -
 OS:Fedora core 2
 Im using httpd2.0.54
 jk1.3-6 connector 
 and in conf file I added this line
 
 Include /usr/local/tomcat/conf/auto/mod_jk.conf
 and how should be virtualhost entry , adding a
 remote
 user so that I can access it from my work place
 and workers.properties 
 worker.list=ajp13
 worker.ajp13.port=8009
 worker.ajp13.host=localhost
 worker.ajp13.type=ajp13
 
 anything more needed here. Jus let me know
 
 Thank You
 Sai Krishna

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: How to make tomcat work on a remote server?

2005-06-20 Thread sai krishna
I think you  I didnt make myself enough clear?

I repeat here.

 Im able to access in localhost all the jsp files and
able to run them.But when im aceesing it through
internet, I should see the jsp examples running, but
im unable to execute them.
what should I do to run them, like what should be my
server.xml configuration set to.How should I give
permissions my other java coders to upload their files
i.e how to go with workers.properties etc. Im running
tomcat and apache and tryin to access the jsp pages
through apache using mod_jk connector, but im unable
to do that?

what could be the fault?  

hope im clear enough this time

Sai Krishna 

--- Aleksandar Valchev [EMAIL PROTECTED]
wrote:

 On Monday 20 June 2005 10:00, Anand Vijay wrote:
  Hi
 
  Check hosts file for access.
 Or check for firewall that blocks traffic on port
 8080 if hosts file is 
 correct.
 
  regards
  Vijay
 
  sai krishna said the following on 20/06/2005 12:24
 PM:
  Hello,
   Im a newbie to tomcat.
   I was trying to install on a remote server. I
 could
   install it on the localhost perfectly I can see
 it
   when  I connect through lynx localhost:8080 I
 can see
   default tomcat page.
   But when I was trying its IP from a remote place
   http://IP-Address:8080
   Im unable to access it.
   Can some one tell me what could have gone wrong
  
   Details
   -
   OS:Fedora core 2
   Im using httpd2.0.54
   jk1.3-6 connector
   and in conf file I added this line
  
   Include /usr/local/tomcat/conf/auto/mod_jk.conf
   and how should be virtualhost entry , adding a
   remote
   user so that I can access it from my work place
   and workers.properties
   worker.list=ajp13
   worker.ajp13.port=8009
   worker.ajp13.host=localhost
   worker.ajp13.type=ajp13
  
   anything more needed here. Jus let me know
  
   Thank You
   Sai Krishna
  
 
 __
  Do You Yahoo!?
  Tired of spam?  Yahoo! Mail has the best spam
 protection around
  http://mail.yahoo.com
  
 

-
  To unsubscribe, e-mail:
 [EMAIL PROTECTED]
  For additional commands, e-mail:
 [EMAIL PROTECTED]
 
 

-
  To unsubscribe, e-mail:
 [EMAIL PROTECTED]
  For additional commands, e-mail:
 [EMAIL PROTECTED]
 

-
 To unsubscribe, e-mail:
 [EMAIL PROTECTED]
 For additional commands, e-mail:
 [EMAIL PROTECTED]
 
 




 
Yahoo! Sports 
Rekindle the Rivalries. Sign up for Fantasy Football 
http://football.fantasysports.yahoo.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: How to make tomcat work on a remote server?

2005-06-20 Thread sai krishna
Yes tomcat and apache are running on the same server

Im trying to access jsp pages through apache using
mod_jk2 connector now.
and `hostname` gives someother host existing on the
same server, and apache IP is default configured to
this hostname.
Im trying to access jsp files by putting them in the
same html directory i.e
http://oursite.com/ should give index.html or
index.jsp

we are running tomcat and apache together on the same
server simultaneously 

server.xml is as following
Server port=8005 shutdown=SHUTDOWN debug=0
  !-- Define an Apache-Connector Service --
  
Service name=Tomcat-Apache
 
!-- Define a Coyote/JK2 AJP 1.3 Connector on port
8009 --
Connector
className=org.apache.coyote.tomcat4.CoyoteConnector
port=8009 minProcessors=5 maxProcessors=75
enableLookups=true redirectPort=8443
acceptCount=10 debug=0 connectionTimeout=2
useURIValidationHack=false
protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler/

Engine name=Apache
defaultHost=www.oursitename.com debug=0

Logger
className=org.apache.catalina.logger.FileLogger
prefix=apache_log. suffix=.txt
timestamp=true/
!-- Access log processes all requests for this
virtual host. --
Valve
className=org.apache.catalina.valves.AccessLogValve
directory=logs  prefix=localhost_access_log.
suffix=.txt
pattern=common resolveHosts=false/

Host name=www.oursitename.com debug=0
appBase=/home/httpd/vhosts/oursitename.com/httpdocs/

unpackWARs=true autoDeploy=true
Aliaslocalhost/Alias
Aliaswww/Alias/Host
AliasOur IP/Alias
/Engine

/Service

/Server

--
httpd.conf file

VirtualHost Our IP:80
ServerName   oursite.com:80
ServerAlias  www.oursite.com
UseCanonicalName On
DocumentRoot
/home/httpd/vhosts/oursite.com/httpdocs

CustomLog 
/home/httpd/vhosts/oursite.com/statistics/logs/access_log
 combined
ErrorLog  
/home/httpd/vhosts/oursite.com/statistics/logs/error_log

---
workers.properties
[logger.apache2]
level=DEBUG

[shm]
file=/home/httpd/vhosts/oursite.com/tomcatlog
size=1048576
  
# Example socket channel, override port and host.
[channel.socket:localhost:8009]
port=8009
host=127.0.0.1
  
# define the worker
[ajp13:localhost:8009]
channel=channel.socket:localhost:8009

# Uri mapping
[uri:ourIP/*.jsp]
worker=ajp13:localhost:8009

[uri:www.oursite.com/*.jsp]
worker=ajp13:localhost:8009

--

Thank You
Sai Krishna
--- Raghupathy,Gurumoorthy
[EMAIL PROTECTED] wrote:

 Well 
   Points you need to tell us 
   
   1. Is apache on the same machine as tomcat ?
   what is the name of machine ( ip address ) of
 apache 
   what is the name of machine ( ip address ) of
 tomcat 
   2. how are you accessing apache (
 http://servername/ )  ???
 
 Send me the httpd.conf and the server.xml and the
 worker.properties ...
 
 We will have a look and let you know 
 
 Regards
 Guru
 
   
 
 -Original Message-
 From: sai krishna [mailto:[EMAIL PROTECTED] 
 Sent: 20 June 2005 10:24
 To: Tomcat Users List
 Subject: Re: How to make tomcat work on a remote
 server?
 
 
 12:24
  PM:
   Hello,
Im a newbie to tomcat.
I was trying to install on a remote server. I
  could
install it on the localhost perfectly I can
 see
  it
when  I connect through lynx localhost:8080 I
  can see
default tomcat page.
But when I was trying its IP from a remote
 place
http://IP-Address:8080
Im unable to access it.
Can some one tell me what could have gone
 wrong
   
Details
-
OS:Fedora core 2
Im using httpd2.0.54
jk2.0 connector
and in conf file I added this line
   
Include
 /usr/local/tomcat/conf/auto/mod_jk.conf
and how should be virtualhost entry , adding a
remote
user so that I can access it from my work
 place
and workers.properties
worker.list=ajp13
worker.ajp13.port=8009
worker.ajp13.host=localhost
worker.ajp13.type=ajp13
   
anything more needed here. Jus let me know
   
Thank You
Sai Krishna
   
  
 
 __
   Do You Yahoo!?
   Tired of spam?  Yahoo! Mail has the best spam
  protection around
   http://mail.yahoo.com
   
  
 

-
   To unsubscribe, e-mail:
  [EMAIL PROTECTED]
   For additional commands, e-mail:
  [EMAIL PROTECTED]
  
  
 

-
   To unsubscribe, e-mail:
  [EMAIL PROTECTED]
   For additional commands, e-mail:
  [EMAIL PROTECTED]
  
 

-
  To unsubscribe, e-mail:
  [EMAIL PROTECTED]
  For additional commands, e-mail:
  [EMAIL PROTECTED]
  
  
 
 
 
   
 
 
 Yahoo! Sports 
 Rekindle the Rivalries. Sign up for Fantasy Football
 
 http://football.fantasysports.yahoo.com

RE: How to make tomcat work on a remote server?

2005-06-20 Thread sai krishna

Ok, explain for mod_jk, I can configure it and have it
here. mod_jk2 is not a requirement here. Iwas trying
to run tomcat with apache
 
--- Raghupathy,Gurumoorthy
[EMAIL PROTECTED] wrote:

 Well I only know mod_jk ... Not mod_jk2 ... 
 
 -Original Message-
 From: sai krishna [mailto:[EMAIL PROTECTED] 
 Sent: 20 June 2005 12:11
 To: Tomcat Users List
 Subject: RE: How to make tomcat work on a remote
 server?
 
 
 Yes tomcat and apache are running on the same server
 
 Im trying to access jsp pages through apache using
 mod_jk2 connector now.
 and `hostname` gives someother host existing on the
 same server, and apache IP is default configured to
 this hostname.
 Im trying to access jsp files by putting them in the
 same html directory i.e
 http://oursite.com/ should give index.html or
 index.jsp
 
 we are running tomcat and apache together on the
 same
 server simultaneously 
 
 server.xml is as following
 Server port=8005 shutdown=SHUTDOWN debug=0
   !-- Define an Apache-Connector Service --
   
 Service name=Tomcat-Apache
  
 !-- Define a Coyote/JK2 AJP 1.3 Connector on port
 8009 --
 Connector

className=org.apache.coyote.tomcat4.CoyoteConnector
 port=8009 minProcessors=5 maxProcessors=75
 enableLookups=true redirectPort=8443
 acceptCount=10 debug=0 connectionTimeout=2
 useURIValidationHack=false

protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler/
 
 Engine name=Apache
 defaultHost=www.oursitename.com debug=0
 
 Logger
 className=org.apache.catalina.logger.FileLogger
 prefix=apache_log. suffix=.txt
 timestamp=true/
 !-- Access log processes all requests for this
 virtual host. --
 Valve

className=org.apache.catalina.valves.AccessLogValve
 directory=logs  prefix=localhost_access_log.
 suffix=.txt
 pattern=common resolveHosts=false/
 
 Host name=www.oursitename.com debug=0

appBase=/home/httpd/vhosts/oursitename.com/httpdocs/
 
 unpackWARs=true autoDeploy=true
 Aliaslocalhost/Alias
 Aliaswww/Alias/Host
 AliasOur IP/Alias
 /Engine
 
 /Service
 
 /Server
 
 --
 httpd.conf file
 
 VirtualHost Our IP:80
 ServerName   oursite.com:80
 ServerAlias  www.oursite.com
 UseCanonicalName On
 DocumentRoot
 /home/httpd/vhosts/oursite.com/httpdocs
 
 CustomLog 

/home/httpd/vhosts/oursite.com/statistics/logs/access_log
  combined
 ErrorLog  

/home/httpd/vhosts/oursite.com/statistics/logs/error_log
 
 ---
 workers.properties
 [logger.apache2]
 level=DEBUG
 
 [shm]
 file=/home/httpd/vhosts/oursite.com/tomcatlog
 size=1048576
   
 # Example socket channel, override port and host.
 [channel.socket:localhost:8009]
 port=8009
 host=127.0.0.1
   
 # define the worker
 [ajp13:localhost:8009]
 channel=channel.socket:localhost:8009
 
 # Uri mapping
 [uri:ourIP/*.jsp]
 worker=ajp13:localhost:8009
 
 [uri:www.oursite.com/*.jsp]
 worker=ajp13:localhost:8009
 
 --
 
 Thank You
 Sai Krishna
 --- Raghupathy,Gurumoorthy
 [EMAIL PROTECTED] wrote:
 
  Well 
  Points you need to tell us 
  
  1. Is apache on the same machine as tomcat ?
  what is the name of machine ( ip address ) of
  apache 
  what is the name of machine ( ip address ) of
  tomcat 
  2. how are you accessing apache (
  http://servername/ )  ???
  
  Send me the httpd.conf and the server.xml and the
  worker.properties ...
  
  We will have a look and let you know 
  
  Regards
  Guru
  
  
  
  -Original Message-
  From: sai krishna [mailto:[EMAIL PROTECTED] 
  Sent: 20 June 2005 10:24
  To: Tomcat Users List
  Subject: Re: How to make tomcat work on a remote
  server?
  
  
  12:24
   PM:
Hello,
 Im a newbie to tomcat.
 I was trying to install on a remote server.
 I
   could
 install it on the localhost perfectly I can
  see
   it
 when  I connect through lynx localhost:8080
 I
   can see
 default tomcat page.
 But when I was trying its IP from a remote
  place
 http://IP-Address:8080
 Im unable to access it.
 Can some one tell me what could have gone
  wrong

 Details
 -
 OS:Fedora core 2
 Im using httpd2.0.54
 jk2.0 connector
 and in conf file I added this line

 Include
  /usr/local/tomcat/conf/auto/mod_jk.conf
 and how should be virtualhost entry , adding
 a
 remote
 user so that I can access it from my work
  place
 and workers.properties
 worker.list=ajp13
 worker.ajp13.port=8009
 worker.ajp13.host=localhost
 worker.ajp13.type=ajp13

 anything more needed here. Jus let me know

 Thank You
 Sai Krishna

   
  
 
 __
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam
   protection around
http://mail.yahoo.com
 
=== message truncated ===




__ 
Discover Yahoo! 
Stay in touch with email, IM, photo

RE: How to make tomcat work on a remote server?

2005-06-20 Thread sai krishna

I gave them already. Here they are again

 server.xml is as following
 Server port=8005 shutdown=SHUTDOWN debug=0
   !-- Define an Apache-Connector Service --
   
 Service name=Tomcat-Apache
  
 !-- Define a Coyote/JK2 AJP 1.3 Connector on port
 8009 --
 Connector

 className=org.apache.coyote.tomcat4.CoyoteConnector
 port=8009 minProcessors=5 maxProcessors=75
 enableLookups=true redirectPort=8443
 acceptCount=10 debug=0
 connectionTimeout=2
 useURIValidationHack=false


protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler/
 
 Engine name=Apache
 defaultHost=www.oursitename.com debug=0
 
 Logger
 className=org.apache.catalina.logger.FileLogger
 prefix=apache_log. suffix=.txt
 timestamp=true/
 !-- Access log processes all requests for this
 virtual host. --
 Valve

 className=org.apache.catalina.valves.AccessLogValve
 directory=logs  prefix=localhost_access_log.
 suffix=.txt
 pattern=common resolveHosts=false/
 
 Host name=www.oursitename.com debug=0


appBase=/home/httpd/vhosts/oursitename.com/httpdocs/
 
 unpackWARs=true autoDeploy=true
 Aliaslocalhost/Alias
 Aliaswww/Alias/Host
 AliasOur IP/Alias
 /Engine
 
 /Service
 
 /Server
 
 --
 httpd.conf file
 
 VirtualHost Our IP:80
   ServerName   oursite.com:80
   ServerAlias  www.oursite.com
   UseCanonicalName On
DocumentRoot
 /home/httpd/vhosts/oursite.com/httpdocs
 
CustomLog 
/home/httpd/vhosts/oursite.com/statistics/logs/access_log
  combined
 ErrorLog  


/home/httpd/vhosts/oursite.com/statistics/logs/error_log
 
 ---
 workers.properties
 [logger.apache2]
 level=DEBUG
 
 [shm]
file=/home/httpd/vhosts/oursite.com/tomcatlog
size=1048576
   
 # Example socket channel, override port and host.
 [channel.socket:localhost:8009]
 port=8009
host=127.0.0.1
   
 # define the worker
 [ajp13:localhost:8009]
 channel=channel.socket:localhost:8009
 
 # Uri mapping
 [uri:ourIP/*.jsp]
 worker=ajp13:localhost:8009
 
 [uri:www.oursite.com/*.jsp]
 worker=ajp13:localhost:8009
 
 --
 
--- Raghupathy,Gurumoorthy
[EMAIL PROTECTED] wrote:

 Send me your httpd.conf / worker.properties /
 server.xml 
 
 Regardds
 Guru 
 





__ 
Yahoo! Mail 
Stay connected, organized, and protected. Take the tour: 
http://tour.mail.yahoo.com/mailtour.html 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]