LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 02-18-2020, 01:28 PM   #1
wh33t
Member
 
Registered: Oct 2003
Location: Canada
Posts: 922

Rep: Reputation: 61
Cool Apache as Reverse Proxy and Lets Encrypt SSL


Hey LQ,

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!
 
Old 02-19-2020, 04:19 AM   #2
Morgo
LQ Newbie
 
Registered: Nov 2019
Posts: 5

Rep: Reputation: Disabled
Hey,

I would highly recommend that you use nginx as your reverese proxy, and keep apache in front of it.

Otherwise, you seem to be on the right track. You might run into some issues with Certbot and let's encrypt over one such set-up.

I've found myself battling this oddity a few times at a hosting company I shall not name, that I previously worked in, several times over.

https://community.letsencrypt.org/t/...rd-proxy/49484

This post on let's encrypt's community forum might shed some light on the matter, it is a common issue, when setting up any kind of proxy-ing.

Best regards,

Morgo
 
1 members found this post helpful.
Old 02-26-2020, 12:39 PM   #3
jdrosales
LQ Newbie
 
Registered: Feb 2020
Location: Virginia, USA
Distribution: Ubuntu, Debian
Posts: 21
Blog Entries: 1

Rep: Reputation: 3
Quote:
Originally Posted by wh33t View Post
Hey LQ,

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.

Good luck!

Last edited by jdrosales; 02-26-2020 at 12:41 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Lets encrypt not verifying wildcard domain with nginx reverse proxy Mark_667 Linux - Server 3 07-10-2019 08:06 AM
LXer: Odoo 8 with SSL Reverse Proxy using Apache LXer Syndicated Linux News 0 11-26-2014 06:36 PM
Nginx Reverse proxy on a internal apache reverse server ITiger Linux - Software 0 04-25-2014 07:44 AM
Setting up Reverse Proxy With SSL Support On Apache And Multiple Addreses vglover Linux - Server 7 07-30-2012 05:00 PM
Apache, reverse proxy, and SSL Phaethar Linux - Software 4 05-27-2010 12:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 10:35 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration