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 was hoping to get some confusion cleared up. I've got a server in my office that is running 2 virtual machines. Both are linux, one is a nextcloud instance, the other is just a traditional LAMP setup. I have them separated for reasons, the main reason being I will likely put those VM's on separate machines at some point in the future and keeping them isolated like this is pretty much industry standard at this point isn't it?
So I'm thinking about setting up Apache as a Reverse Proxy, that will forward cloud.mydomain.com to the nextcloud VM, and www (or any other subdomain really) to the LAMP VM.
1. Is this the right solution to the right problem?
2. When Apache is operating as a reverse proxy, does every bit of data that it is proxying have to go through the proxy itself? Am I correct in thinking it very much operates as a gateway for all proxied devices/services behind it?
3. Do I need to do anything special to use LetsEncrypt Certbot in a setup like this?
I just want to make sure I'm on the right track before I dump anymore time into setting this up. Please and thank you!
I was hoping to get some confusion cleared up. I've got a server in my office that is running 2 virtual machines. Both are linux, one is a nextcloud instance, the other is just a traditional LAMP setup. I have them separated for reasons, the main reason being I will likely put those VM's on separate machines at some point in the future and keeping them isolated like this is pretty much industry standard at this point isn't it?
So I'm thinking about setting up Apache as a Reverse Proxy, that will forward cloud.mydomain.com to the nextcloud VM, and www (or any other subdomain really) to the LAMP VM.
1. Is this the right solution to the right problem?
2. When Apache is operating as a reverse proxy, does every bit of data that it is proxying have to go through the proxy itself? Am I correct in thinking it very much operates as a gateway for all proxied devices/services behind it?
3. Do I need to do anything special to use LetsEncrypt Certbot in a setup like this?
I just want to make sure I'm on the right track before I dump anymore time into setting this up. Please and thank you!
I agree with the answer of Morgo about setting up nginx as the reverse proxy.
On the ssl certificates from letsencrypt.org I found an article that is up to date and that will guide you step by step on how to do what you want: https://linuxize.com/post/secure-ngi...-ubuntu-18-04/
Regardless of it been written for Ubuntu 18.04 server, it might apply well for what you want.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.