Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have a single server on which I need to replicate a two server environment for testing purposes. One of the servers is an Apache reverse proxy and the other is an app server.

What I imagine I would do is setup Apache to use eth0 and create a virtual Ethernet interface (eth1) for the app server to use. Then I would configure Apache to act as a reverse proxy for eth1 which should allow me to access the app side of things via the eth0 address.

Is this possible? or am I on the wrong path?

share|improve this question

1 Answer 1

up vote 0 down vote accepted

I wouldn't do it that way: it will be difficult to assert whether your reverse proxy is actually working or whether you're hitting the final interface directly. You'll need to check the content of the data over the wire to be sure.

Why not setup a couple of VMs for this instead ?

share|improve this answer
    
Never considered it.. we're actually running as a VM already. While I could request a new VM that would take forever. Running VMs on a VM just seems.. odd? –  ShaneC Sep 14 '10 at 15:17
    
Well, it's usually not even possible: you'd need an emulator instead of an hypervisor to do it and performances would be very bad. But maybe you can have a look at user-mode linux (user-mode-linux.sourceforge.net): it probably can help you with that. –  Stephane Sep 15 '10 at 7:11

Your Answer

 
discard

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.