Problem in configuring two httpd services on one machine with two IPs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello Team,

I need some help from the Apache experts.
I have a machine with Red Hat Linux OS and Apache HTTP Server 2.2.3. This machine has another IP installed on it.
Now I need to have httpd service listening on port 80 and 443 for both the IPs of the server. For which I need to have two instances httpd running.

I read the Apache Virtual Host documentation, and I feel I need to go with IP based Virtual Host and setup Multiple Daemons (http://httpd.apache.org/docs/2.0/vhosts/ip-based.html#multiple)
For Multiple Daemon Setup, the page states : "Create a separate httpd installation for each virtual host.". When I try to run the Apache installer again, it says the software is already installed.
Can anyone help me with the process of separate httpd installation for different IP on same server?

Just for trying out a way that struck my mind, I did following:
I tried to copy the folder created after first install i.e. /etc/httpd as /etc/httpd1 and edit the httpd.conf in httpd1. I edited following attributes ServerName to point to second IP, ServerRoot folder and PidFile.
I also renamed the /etc/httpd1/httpd.conf to /etc/httpd1/httpd1.conf to point to httpd1.
When I try to start the httpd1 service, by following statement : service httpd1 start. I get following output : "httpd1: unrecognized service"

Thanks in anticipation of a solution.

Thanks,
Nish.


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux