Apache - redirect to internal server
Hi
I have a web server running Apache. Here I have a website with some personal, useful stuff like ruTorrent, system information, webmin, Motion etc Some time ago I installed Op5 on a different machine. Op5 has it's own web interface and database. I want to be able to access this web interface through a <a href> link on my usual website. Maybe like a location in httpd.conf where mywebsite.com/op5 will put me through to the Op5 machine. Both servers are behind a router and I still want to use standard ports. Is there a way to solve this? CentOS is running on both machines btw edit: Ofc, the best would be if it still looks like the user is on mywebsite.com/op5 in the adress field |
Hi,
You can use apache as a reverse proxy: Code:
ProxyRequests Off Regards |
Quote:
I added this to httpd.conf and restarted httpd. Now it works when I'm on my LAN, but not from the outside. Gets "connection has timed out" because it's trying to contact my internal IP |
What does the link inside <A HREF=""> look like? It should be referencing the public server, not the internal host behind the proxy.
|
Quote:
|
Quote:
|
Quote:
Same problem: "The connection has timed out The server at 192.168.0.198 is taking too long to respond." |
Quote:
If the frontend can connect to the backend (I guess it's 192.168.0.198), then there should be no problem. Maybe your router is doing something nasty. Anyway you can add the following before the other proxy directives, to see if they help Code:
<Proxy *> |
Quote:
Tried it. Now it says "The server at mywebsite.com is taking too long to respond" from both inside and outside. I will look into the router, but I don't think I will find anything there Thanks for your help anyway |
Quote:
I can't think of anything else about the initial problem. If the reverse proxy works through your LAN, it should work from the outside too. It's maybe your router, or the backend application (op5) needs some special settings to work behind a reverse proxy |
All times are GMT -5. The time now is 09:35 AM. |