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

I have a dedicated server with 4 IPs, Debian 7 amd64, Apache 2.2.22, PHP 5.4.4. I have configured 4 Virtualhosts, so that anyone of them listen only one IP. The problem is that all they using only one IP for outgoing connections and i want that they all use they own IP´s for outgoing connections.

What do i must add to apache configuration to force they to do it?

share|improve this question
Why do you need 4 IP's for each virtual host when one would do? – Matt May 29 '13 at 21:10
To difference what which VirtualHost has made on other server, from the logs. And no, i can not put variable to identify or something else, i need, that they all use they different IP´s – BASILIO May 29 '13 at 21:13
What outgoing connections does Apache have? – Hauke Laging May 29 '13 at 21:13
Mysql at example. – BASILIO May 29 '13 at 21:14
Is it possible for you to have the vhosts run as different users? Would it be an option not to use vhosts at all but to run completely separate Apache configurations? – Hauke Laging May 29 '13 at 21:18

Your Answer


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

Browse other questions tagged or ask your own question.