Web Analytics Made Easy -
StatCounter Unable to connect Apache and Tomcat - CodingForum

Announcement

Collapse
No announcement yet.

Unable to connect Apache and Tomcat

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Unable to connect Apache and Tomcat

    Hello...

    I installed Apache2.0.43 and tomcat4.1.27 in redhat 9. I connected both Apache and tomcat successfully using mod_jk2.0.43 where it's still in localhost. But, when I changed the localhost to an IP add (pc's IP), both won't be connected anymore. I replace the localhost with the IP add in httpd.conf, server.xml and workers.properties.
    Please help. Thank you.
    Edit/Delete Message Reply With Quote Quick reply to this message

  • #2
    Is it a port issue?

    I recall Apache runs on port 80/443
    i.e http://127.0.0.1:80 or http://127.0.0.1:443

    And tomcat runs on 8080
    i.e. http://127.0.0.1:8080

    Could that be the issue?
    Create accessible online surveys -::- Koobten.com - compare netbook prices and reviews -::- Affordable, reliable hosting for less than $20 per year
    Zend Certified Engineer

    Comment


    • #3
      Unable to change localhost to IP Address

      Thanks for ur reply

      No, it is not port issue.

      When I use http:localhost:80 or http://127.0.0.1:80 (means server still stand alone), both servers work fine and can communicate to each other which means I can read both HTML and JSP files.

      But, when I change the localhost (127.0.0.1) to my server's IP, 10.100.38.51, then both server can not communicate at all. When I access server from another computer, I only able to see the HTML files and can not access JSP files at all.

      Thanks. Please help.

      Comment


      • #4
        Unable to connect Apache and Tomcat

        Hello...

        I'm using redhat 9. There's this network configuration where there are primary, DNS, secondary, tertiary address. The server's IP is 10.100.38.51. Where should I put that address?
        Maybe I put in the wrong place?
        Please help. Thanks

        Comment


        • #5
          check your httpd.conf file.

          Look for the following line...

          Code:
          Listen 127.0.0.1
          or ...

          Code:
          ServerName localhost
          You may need to putz with those
          Create accessible online surveys -::- Koobten.com - compare netbook prices and reviews -::- Affordable, reliable hosting for less than $20 per year
          Zend Certified Engineer

          Comment


          • #6
            Unable to connect Apache and Tomcat

            thanks for reply...

            ya, the 127.0.0.1 was listen to port 80.....

            my problem is how to change my 127.0.0.1 (localhost) to my server's IP (10.100.38.51). As I mentioned, the server can work when it is under localhost or 127.0.0.1. But, when I change it to 10.100.38.51, then it can not work.


            Thanks, please help.

            Comment


            • #7
              What type of error are you getting? 404???

              Try commenting out the lines I gave you earlier. Do that make a difference?

              Could adding a line to your /etc/hosts file help?

              Maybe look at your /etc/resolv.conf file too.

              Can you ping your 10.x.x.x address? What type of response do you get?

              May post the results of this here...
              Code:
              $> cat /etc/hosts >> cf.txt; cat /etc/resolv.conf >> cf.txt; ping 10.100.38.51 -c 5 >> cf.txt
              Then just post the contentx of cf.txt


              Just some random thoughts.
              Last edited by bcarl314; Feb 26, 2004, 07:31 AM.
              Create accessible online surveys -::- Koobten.com - compare netbook prices and reviews -::- Affordable, reliable hosting for less than $20 per year
              Zend Certified Engineer

              Comment


              • #8
                Unable to connect Apache and Tomcat

                there was not error 404.
                The server is originally listen to 127.0.0.1:80.

                I can solve my problem that both server is connected. What I dis is excatly same as before but this time the things can work. I think maybe is the OS or the hardware problem.

                Anyway, thanks very much

                Comment

                Working...
                X