Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > General

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 6th November 2011, 21:47
DantePasquale DantePasquale is offline
Senior Member
 
Join Date: Feb 2007
Location: Lakewood, OH US
Posts: 108
Thanks: 10
Thanked 3 Times in 3 Posts
Send a message via AIM to DantePasquale
Default ISPConfig3 single website using mod_jk connector

Hi All,

I'm just looking for advice on this setup that I'm planning for a customer. I've installed ISPConfig3 latest update on Ubuntu 11.10 64. The customer will have a single website, www.cust.com for example. This website needs to connect to an Oracle Linux server, running Oracle 10g + JBoss 6.

I can add mod_jk to the web server's apache2.conf file and it works OK. But, how will this all workout with ISPConfig CP?

I'll need to modify the vhost file for the website to use jk_load etc. What would be the best way to do this so it doesn't get wiped out if they use the ISPConfig3 CP for other modifications?

I'm thinking that ISPConfig CP may be overkill since this is a single web site, but it's easy to use and the customer has no IT experience so I thought this would be the best way to manage it.
Reply With Quote
Sponsored Links
  #2  
Old 7th November 2011, 11:01
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,745 Times in 2,578 Posts
Default

Quote:
Originally Posted by DantePasquale View Post
I'll need to modify the vhost file for the website to use jk_load etc. What would be the best way to do this so it doesn't get wiped out if they use the ISPConfig3 CP for other modifications?.
You can use the Apache Directives field on the Options tab of your website in ISPConfig. Alternatively, you can customize the vhost.master.conf template in /usr/local/ispconfig/server/conf and save your customized template in /usr/local/ispconfig/server/conf-custom (it will override the template in /usr/local/ispconfig/server/conf).
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
The Following User Says Thank You to falko For This Useful Post:
DantePasquale (8th November 2011)
  #3  
Old 8th November 2011, 18:56
DantePasquale DantePasquale is offline
Senior Member
 
Join Date: Feb 2007
Location: Lakewood, OH US
Posts: 108
Thanks: 10
Thanked 3 Times in 3 Posts
Send a message via AIM to DantePasquale
 
Default

Hi Falko,

Here's what I ended up doing in the Control Panel->Sites->MySite->Options:

Code:
# I need to rewrite the webpage from the old webapp to the new webapp:
RewriteEngine On
#
RewriteRule ^/old-webapp/(.*) /new-webapp/$1 [L,R]
#
# now put the directives used by jk_ajp13 to connect
# to JBoss 6 running on the data warehouse server where our
# EJB App is located
# First copy the globals, used for /manager /stat
JKMountCopy ON
#
#Then tell Apache to use the JkMounter to tie URLs into the worker
#
JkMount /new-webapp/* ajp13_worker
#
Here's the workers.properties file to tell Apache to use ajp13 connector for this webpage:

Code:
worker.list=ajp13_worker

#
#------ ajp13_worker WORKER DEFINITION ------------------------------
#---------------------------------------------------------------------
#

# Define worker.template so all workers can be derived from a common starting point
#
worker.template.type=ajp13
worker.template.host=warehouse
worker.template.socket_connect_timeout=5000
worker.template.socket_keepalive=true
worker.template.ping_mode=A
worker.template.ping_timeout=10000
worker.template.connection_pool_minsize=0
worker.template.connection_pool_timeout=600
worker.template.reply_timeout=300000
worker.template.recovery_options=3
worker.template.lbfactor=1
#
# now define our actual worker
#
worker.ajp13_worker.reference=worker.template
worker.ajp13_worker.port=8009
And now, the web server sends the request for new-webapp to the data warehouse server running JBoss 6 and Oracle 10g on Oracle Linux 5u2.

Thanks for the suggestion of where to put this info in the CP.
Reply With Quote
The Following User Says Thank You to DantePasquale For This Useful Post:
till (8th November 2011)
Reply

Bookmarks

Tags
apache 2, ispconfig 3, jboss

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem Updating and Uploading to Wordpress website on ISPConfig3 - Fedora 13 MrCompTech Tips/Tricks/Mods 8 25th August 2014 15:18
Website with dedicated IP on ISPConfig3 slave server Hans Installation/Configuration 2 9th June 2011 23:05
ISPConfig3 | website traffic limit Hans General 4 25th October 2010 12:26
Single RoundCube setup for multiple ISPConfig3 servers Hans Tips/Tricks/Mods 27 30th August 2010 22:45
amavis rejects all inbound emails aclhkaclhk Installation/Configuration 5 28th February 2010 05:24


All times are GMT +2. The time now is 16:40.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.