Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have 2 machines.

Machine A is remote development server running, Ubuntu, Apache, PostGres, [Custom Java Application + Tomcat]

Machine B is local development server, running as VM. I have managed to copy the database and Java App. And every thing is working good so far.

Now I want to replicate the apache settings aswell. Here is where I am having issues. I am not really versed in apache maintenance so I am looking for pointers.

Machine A, has 3 IP based virtual hosts. pointing to var/www/a1 pointing to var/www/a2 pointing to var/www/a3

As mentioned I am trying to do this locally in my network, so my server B IP is 192.168.0.x

How do I set it up so that I can access these websites locally? I tried to assign "free" IP addresses to websites but its not working. By free IPs I mean random guesses I know which arent being used in my local network........ I guess I just dont know where to go from here. There are also SSL certificates I need to install aswell.....I would need to read up on that after I get the initial apache help would be greatly appreciated.


share|improve this question

I tried to assign "free" IP addresses to websites but its not working.

IP addresses are associated with interfaces not 'websites'. You should set IP aliases on your B server interface, for instance:

sudo ifconfig eth0:0 netmask up
sudo ifconfig eth0:1 netmask up
sudo ifconfig eth0:2 netmask up
share|improve this answer
Thank you for the tip. I just stumbled upon this article which mentioned exactly that. I am going through it currently.… – bcrawl Dec 12 '10 at 13:33

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.