Hello Ashok,
For connecting apache with tomcat you need to use a connector called mod_jk. You have to configured this in apache as a module ( load module and add module directives in apache configuration file) then you have to add the directives for tomact for the virtual hosts which wants to use tomcat.
Please change the Connector port from following location
vi /usr/local/jakarta/tomcat/conf/server.xml ( please check where you are install tomcat on your server) On my Server it's under /usr/local/
Check the following directive.
<Connector port="8080"
maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
enableLookups="false" redirectPort="8443" acceptCount="100"
connectionTimeout="20000" disableUploadTimeout="true" />
maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
enableLookups="false" redirectPort="8443" acceptCount="100"
connectionTimeout="20000" disableUploadTimeout="true" />
For changing tomcat port please see this link
============================================================
Please see URLS for Help
and go step by step it should work by these steps.
I'm giving you below some
production environment configurations below
<VirtualHost 207.44.186.26>
ServerAlias www.salar.ca salar.ca
ServerAdmin [EMAIL PROTECTED]
DocumentRoot /home/salarca/public_html
BytesLog domlogs/salar.ca-bytes_log
<IfModule mod_php4.c>
php_admin_value open_basedir "/home/salarca/:/usr/lib/php:/usr/local/lib/php:/tmp"
</IfModule>
<IfModule mod_userdir.c>
UserDir disabled
UserDir enabled salarca
</IfModule>
ServerName www.salar.ca
User salarca
Group salarca
CustomLog domlogs/salar.ca combined
ScriptAlias /cgi-bin/ /home/salarca/public_html/cgi-bin/
ServerAlias www.salar.ca salar.ca
ServerAdmin [EMAIL PROTECTED]
DocumentRoot /home/salarca/public_html
BytesLog domlogs/salar.ca-bytes_log
<IfModule mod_php4.c>
php_admin_value open_basedir "/home/salarca/:/usr/lib/php:/usr/local/lib/php:/tmp"
</IfModule>
<IfModule mod_userdir.c>
UserDir disabled
UserDir enabled salarca
</IfModule>
ServerName www.salar.ca
User salarca
Group salarca
CustomLog domlogs/salar.ca combined
ScriptAlias /cgi-bin/ /home/salarca/public_html/cgi-bin/
<IfModule mod_jk.c>
JkMount /*.jsp ajp13
JkMount /servlet/* ajp13
JkMount /servlets/* ajp13
</IfModule>
</VirtualHost>
JkMount /*.jsp ajp13
JkMount /servlet/* ajp13
JkMount /servlets/* ajp13
</IfModule>
</VirtualHost>
below are the
Section 1: Global Environment section directives
#LoadModule jk_module libexec/mod_.so
#LoadModule gzip_module libexec/mod_gzip.so
LoadModule security_module libexec/mod_security.so
LoadModule jk_module libexec/mod_jk.so
AddModule mod_jk.c
Include "/usr/local/apache/conf/jk.conf"
the jk.conf file contains
JkWorkersFile /usr/local/apache/conf/workers.properties
JkLogFile /usr/local/apache/logs/mod_jk.log
JkLogLevel info
JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
JkRequestLogFormat "%w %V %T"
JkLogFile /usr/local/apache/logs/mod_jk.log
JkLogLevel info
JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
JkRequestLogFormat "%w %V %T"
Please follow the steps given in the tomcat tutorial in the link. It may be helpful for you.
I'm
coming tomumbai tommorow. I'll call you or i'll give you miss call then call me.
check the above info may be useful for you.
Bye
Sachin
ashok pawar <[EMAIL PROTECTED]> wrote:
hi ,my web site is running on apache web server port 80 and my tomcat is running on 8080 , now request are comming on port 80 but cannot able to connect to tomcat on port 8080 , is there any procedure to interconnect apache and tomcat .kindly suggest
Yahoo! Photos
Ring in the New Year with Photo Calendars. Add photos, events, holidays, whatever.
Yahoo! DSL Something to write home about. Just $16.99/mo. or less
***Archives:
http://groups.yahoo.com/group/linuxvadapav/messages
***Group Usage Guidelines (Please Read):
http://groups.yahoo.com/group/linuxvadapav/files/mailing_rules
YAHOO! GROUPS LINKS
- Visit your group "linuxvadapav" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
- [linuxvadapav] how to connect apache with tomcat ashok pawar
- Re: [linuxvadapav] how to connect apache with t... Gowrishankar Rajaiyan
- Re: [linuxvadapav] how to connect apache with t... sachin raje
Reply via email to
