Category Archives: Linux

How to set REMOTE_ADDR variable in Apache2 behind an nginx proxy

A lot of people are starting to put nginx in front of apache for performance and efficiency reasons.  Unfortunately, this causes problems for some web applications.  Especially anti-spam plugins or any other application that needs to know the client’s ip … Continue reading

Posted in nginx | Comments Off on How to set REMOTE_ADDR variable in Apache2 behind an nginx proxy

How to create multiple network interfaces in an LXC container.

You can specify more than one interface in your lxc configuration file.  Just add the interfaces one after the other and use lxc-create to create your container, like this: lxc.network.mtu = 1500 lxc.network.type = veth lxc.network.name = eth0 lxc.network.link = … Continue reading

Posted in lxc | Tagged , | Comments Off on How to create multiple network interfaces in an LXC container.