[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

05/09/2005 at 09:38AM PDT, ID: 21417682
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

8.4

Small little Apache/Tomcat question...

Asked by grouparmstrong in Java Programming Language, Java Servlets

Tags: 8443, tomcat

I have two servers, both running Redhat ES v3.  The Web server resides in my DMZ behind eth0 of my firewall.  I use the Apache 2 binary that I get through the RH subscription (ES Extra's).  The App server is on the LAN, behind eth1 of my firewall.  I have tomcat 5 configured to run over 8080.  I have a rule in my firewall that allows traffic over port 8009 to pass from VLAN IP of the webserver to the VLAN IP of the App server.  

Configuring the App server was easy.  I just made sure that the following connector statement was in conf/server.xml:

<!-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 -->
    <Connector port="8009" enableLookups="false" redirectPort="8443" debug="0" protocol="AJP/1.3" />

Configuring the Web server took a little more time.  First, I downloaded a mod_jk2.so binary that I thought was close enough to my OS and put it in the /usr/lib/httpd/modules directory of my Web server.  Second, I created the following workers2.properties file and put in in the same directory as my httpd.conf file:

--------------------

[channel.socket:192.168.aaa.aaa:8009]
port=8009
host=192.168.100.10
tomcatId=192.168.aaa.aaa:8009

[shm]
shm=/var/log/httpd/jk.shm
size=100248576
debug=0
disabled=0

[ajp13:192.168.aaa.aaa:8009]
channel=channel.socket:192.168.aaa.aaa:8009

worker=ajp13:192.168.aaa.aaa:8009

[uri:/*]

------------------------------

Next, I modified the httpd.conf file and put the following mod_jk2.so LoadModule statement with all the other LoadModule statements:

LoadModule jk2_module modules/mod_jk2.so

That was it.  After starting Apache and Tomcat, it all worked almost perfectly.  I have 4 Virtual Hosts in my Web server.  Once I loaded the mod_jk2.so module, every virtual host was sent to the App server.  I have no clue how to make it so that only virtual host 2 is sent to the App server.  Everything would be great if I didn't have to run other websites, but I do...  

Here is an snapshot of my Virtual Hosts 2 taken from httpd.conf of the Web server:

# Virtual host 2
 <VirtualHost 192.168.xxx.xxx>
 ServerName www.<domainname>.com
 ServerAdmin admin@<domainname>.com
 DocumentRoot /var/www/<domainname>/htdocs
 ServerSignature Email
 DirectoryIndex index.html index.htm index.php default.htm default.html
 LogLevel debug
 HostNameLookups off
</VirtualHost>

Any ideas?
 
Keywords: Small little Apache/Tomcat question...
 
Loading Advertisement...
 
[+][-]05/09/05 09:45 AM, ID: 13961114

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05/09/05 09:45 AM, ID: 13961121

View this solution now by starting your 30-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Java Programming Language, Java Servlets
Tags: 8443, tomcat
Sign Up Now!
Solution Provided By: aozarov
Participating Experts: 2
Solution Grade: A
 
 
[+][-]05/09/05 09:48 AM, ID: 13961152

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 30-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]05/09/05 10:59 AM, ID: 13961740

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05/09/05 11:12 AM, ID: 13961828

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05/09/05 11:14 AM, ID: 13961846

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08/03/05 06:58 AM, ID: 14588536

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 30-day free trial to view this Administrative Comment or ask the Experts your question.

 
[+][-]08/08/05 06:32 AM, ID: 14623020

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 30-day free trial to view this Administrative Comment or ask the Experts your question.

 
[+][-]08/12/05 03:36 AM, ID: 14659398

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 30-day free trial to view this Administrative Comment or ask the Experts your question.

 
 
Loading Advertisement...
20090824-EE-VQP-74