Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
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.
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
Last edited by ScorchPipe; 12-18-2011 at 08:09 AM.
ProxyRequests Off
ProxyPass /op5 http://x.x.x.x
ProxyPassReverse /op5 http://x.x.x.x
where x.x.x.x is the internal IP of your box running that Op5
Regards
Hi and thanks for your response.
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
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
Doesn't make sense. If the frontend apache can connect to the backend webserver with its internal IP, it should work the same either from LAN and from the internet.
Doesn't make sense. If the frontend apache can connect to the backend webserver with its internal IP, it should work the same either from LAN and from the internet.
The connection between them is just fine. Also tried without any firewalls running.
Same problem:
"The connection has timed out
The server at 192.168.0.198 is taking too long to respond."
"The connection has timed out
The server at 192.168.0.198 is taking too long to respond."
I don't know what to tell
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 *>
Order deny,allow
Allow from all
</Proxy>
ProxyPreserveHost On
ProxyTimeout 300
...
I don't know what to tell
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 *>
Order deny,allow
Allow from all
</Proxy>
ProxyPreserveHost On
ProxyTimeout 300
...
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
Tried it. Now it says
"The server at mywebsite.com is taking too long to respond"
from both inside and outside.
I guess it's the timeout that is too big and your browser times out first.
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.