Apache - serving to external hosts from a computer on my internal network
Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Apache - serving to external hosts from a computer on my internal network
Hi, I hope I chose the right forum for this.
Here's my current setup: I have two computers - let's call them A and B - and a router exposed to the Internet. The router is configured to forward all requests on port 80 to computer B, so currently computer B is handling all webserving. Computer B is always on.
Computer A is only on when I'm using it, however I'd like this computer to be able to act as a webserver sometimes when it's switched on. Is there some way I can configure Apache on computer B to forward some requests (e.g. ones using a certain URL) to Apache on computer A, which somehow then sends the stuff back to the client through computer B again?
Or maybe that's not how it's done... But is there a way to achieve what I'm trying to describe?
Not sure if I explained that very well at all, but I hope it made sense. Can anybody explain whether this is possible, and if so how to do it?
I think I get the URL rewriting and virtual hosts stuff. I know how to configure things so that a single server serves numerous sites according to the URL requested. What I don't know is how to involve other servers on my network that cannot themselves be connected to on port 80 from the outside world (only from within my network).
Thanks a lot, I got it working. Just a little tip for anybody else running Debian who may stumble upon this thread having the same problem as me, you might need to alter the settings in /etc/apache2/mods-available/proxy.conf before things work as they should.
(The mods-available, mods-enabled thing is Debian-specific right? I think so).
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.