General
cancel
Showing results for 
Search instead for 
Did you mean: 

2 Ethernet Cards on 1 Server--Help!

SOLVED
Go to solution
Kyle D. Harris
Regular Advisor

2 Ethernet Cards on 1 Server--Help!

Hello All-
I was just asked to research/look into this:

We have 2 servers which both run Department of Defense Webpages. We want to move the web pages from one server, over to another server. So we'll have 1 server running all the webpages.
Removing the ethernet card from one server and putting it in the other, thus having 2 ethernet cards in the same server. How difficult is this? Also would Apache be affected at all by this???
I'm sorry if this is hard to follow but I'm not very experienced as a Sys Admin yet so it's confusing to me too. Thanks so much in advance for any feedback. You all help me out so much!

Kyle Harris
5 REPLIES
James Specht
Trusted Contributor

Re: 2 Ethernet Cards on 1 Server--Help!

It is easy to move the card from one server to the other. Linux should see the card during the new hardware search it does on bootup.

Once the card is configured, apache can be setup to do virtual hosting. You can set it to answer for each card or IP address differently. Site a is 192.168.0.1 tied to /var/www/sitea/htdocs and site b is 192.168.100.1 tied to /var/www/siteb/htdocs. Both will still be port 80 or 443 if you are using SSL.

Good Luck.

--Jim
"Everyone can be taught to sculpt: Michelangelo would have had to be taught how not to. So it is with the great programmers."
Kyle D. Harris
Regular Advisor

Re: 2 Ethernet Cards on 1 Server--Help!

Jim-
I appreciate the tips greatly! So Apache is virtually unaffected then? The way you made it sound, it seems as though it's a fairly easy process?

Kyle Harris
James Specht
Trusted Contributor

Re: 2 Ethernet Cards on 1 Server--Help!

Apache is affected. If you are not already doing virtual hosting you will have to change the configuration of apache to virtual hosting, so that is answers as both sitea and siteb for each IP address or nic card. It is very straight forward and if you have webmin http://www.webmin.com/ it is even easier to do.

Good Luck!

--Jim
"Everyone can be taught to sculpt: Michelangelo would have had to be taught how not to. So it is with the great programmers."
Kyle D. Harris
Regular Advisor

Re: 2 Ethernet Cards on 1 Server--Help!

Jim-
My Staff Sergeant just said you gave a great answer and thanks! Do you have any good sites or resources where I can check into virtual hosting? Thanks!

Kyle Harris
James Specht
Trusted Contributor
Solution

Re: 2 Ethernet Cards on 1 Server--Help!

You can go to http://httpd.apache.org/docs-2.0/vhosts/ for information on virtual hosting in apache. This URL assumes apache 2.0. For 1.3 go to http://httpd.apache.org/docs/vhosts/index.html.

--Jim
"Everyone can be taught to sculpt: Michelangelo would have had to be taught how not to. So it is with the great programmers."