Results 1 to 5 of 5

Thread: Apache goes crazy after enabling eth1

  1. #1
    Join Date
    Sep 2009
    Beans
    72

    Apache goes crazy after enabling eth1

    Hi

    I have got a problem with Apache. Everything was fine with eth0 (public ip). Now, I have got eth1 (192.168.x.x). That local connection is used for the backup purposes. As soon as the backup script connects to the local backup server Apache starts to spawn multiple child processes. At this point I have to restart Apache, because it doesn't respond to the http requests.

    There is one thing that may point to the solution. Both eth0 and eth1 are working on the same gateway.

  2. #2
    Join Date
    May 2007
    Location
    NY's first capital
    Beans
    2,868
    Distro
    Ubuntu 20.04 Focal Fossa

    Re: Apache goes crazy after enabling eth1

    What to do you have in ports.conf.

    If you have

    Code:
    Listen 80
    Perhaps change that to

    Code:
    Listen 192.170.2.1:80
    Replacing the above ip with eth0 ip. This of course will require static ip.

    You will also need to change any name virtualhost files to use the full ip.

    like:

    Code:
    <VirtualHost 192.170.2.1:80>
    and not

    Code:
    <VirtualHost *:80>
    Nothing is ever easy, but if it is difficult you must be doing it wrong.

  3. #3
    Join Date
    Sep 2009
    Beans
    72

    Re: Apache goes crazy after enabling eth1

    Thanks for the tip. I'll give it a try.

  4. #4
    Join Date
    Sep 2009
    Beans
    72

    Re: Apache goes crazy after enabling eth1

    Nope. It didn't help.

  5. #5
    Join Date
    May 2007
    Location
    NY's first capital
    Beans
    2,868
    Distro
    Ubuntu 20.04 Focal Fossa

    Re: Apache goes crazy after enabling eth1

    You mention you have the same gateway for each NIC. Are they both on the same subnet as well?

    What is the output of

    Code:
    ifconfig
    Nothing is ever easy, but if it is difficult you must be doing it wrong.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •