You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by sai krishna <ho...@yahoo.com> on 2005/06/23 07:38:20 UTC
Server.xml query
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 <rs...@adaweb.net> 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:gurumoorthy.raghupathy@uk.fid-intl.com]
> 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:gurumoorthy.raghupathy@uk.fid-intl.com]
>
> Sent: 21 June 2005 14:04
> To: 'Tomcat Users List'
> Cc: 'webtechguru@gmail.com'
> 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:gurumoorthy.raghupathy@uk.fid-intl.com]
>
> Sent: 21 June 2005 13:45
> To: 'Tomcat Users List'
> Cc: 'webtechguru@gmail.com'
> 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:hodude81@yahoo.com]
> 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="20000"
> 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">
> <Alias>localhost</Alias>
> <Alias>www</Alias></Host>
> <Alias>Our 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
>
=== message truncated ===
__________________________________
Do you Yahoo!?
Yahoo! Mail - Helps protect you from nasty viruses.
http://promotions.yahoo.com/new_mail
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org