LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-10-2009, 04:28 AM   #1
thomas2004ch
Member
 
Registered: Aug 2009
Posts: 537

Rep: Reputation: 32
A question about configuring Apache Http Server


Hi all,

I installed the Apache Http Web Server on RH-Linux and want to configure it so that the incoming browsing will be forward to the application deployted on Jboss. I do followings:

1. Set the ip-address in "/etc/sysconfig/network-scripts/ifcfg-eth0:xx"

2. Create a .conf file which looks as follow:
Code:
...
<VirtualHost 194.12.34.38:80>
        ServerName web-mycompany.com:80
        ServerAdmin root@localhost
        DocumentRoot /opt/content/web-myweb

        <IfModule mod_weblogic.c>
        debug ALL
        WLLogFile  /var/log/httpd/wl-proxy-myweb.log
        DebugConfigInfo ON

        </IfModule>


        CustomLog /var/log/httpd/web-myweb-test.mycompany-combined_log combined
        ErrorLog  /var/log/httpd/web-myweb-test.mycompany-error_log


        <Directory "/opt/content/web-portfolio">
            Options Indexes FollowSymLinks
            AllowOverride all
            Order allow,deny
            Allow from all
        </Directory>

         #1 Send everything for context /examples to worker named worker_portfolio (ajp13)


        JkMount  /myWebApp* myworker

</VirtualHost>
...
3. Configure the workers.properties as follow:
Code:
...
myowrker

# worker template
worker.template.connection_pool_timeout=600
worker.template.socket_timeout=120
worker.template.type=ajp13
worker.socket_keepalive=True

# Set properties for worker_portfolio
worker.myworker.reference=worker.template
worker.myworker.host=test.mycompany.com
worker.myworker.port=8009

...
I think that's all for the configuration.

But as I try to call up "http://web-mycompany.com/myWebApp", it failed. I got error message as follow:

Code:
...
The following error was encountered:

    * Connection Failed 

The system returned:

    (111) Connection refused

The remote host or network may be down. Please try the request again. 
...
 
Old 09-10-2009, 07:50 PM   #2
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,240

Rep: Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324
Add your distro name and version to your profile

cat /etc/redhat-release

Try

service iptables stop

to turn off the firewall and try again. Are you browsing from the server, or another machine?
 
Old 09-11-2009, 02:24 AM   #3
thomas2004ch
Member
 
Registered: Aug 2009
Posts: 537

Original Poster
Rep: Reputation: 32
Quote:
Originally Posted by chrism01 View Post
Add your distro name and version to your profile

cat /etc/redhat-release

Try

service iptables stop

to turn off the firewall and try again. Are you browsing from the server, or another machine?
The distro name and version are already added to the profile.

I' stoped the firewall and tried again, but it failed as before. Besides, I browse from the server, not from another machine. So I think there has little to do with firewall, right?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache HTTP Server gjagadish Linux - Software 5 12-18-2006 03:39 PM
Apache HTTP Server gjagadish Programming 1 08-10-2006 10:10 AM
Apache HTTP Server gjagadish Linux - Software 2 02-09-2006 11:58 PM
apache question - how to restrinct http to one file only? gsgleason Linux - Software 1 01-31-2006 10:10 AM
Setting up Apache HTTP server Micro420 Linux - Networking 32 03-26-2005 05:53 AM


All times are GMT -5. The time now is 02:10 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration