Simple multi-tenant/VirtualHost question #664
Replies: 4 comments 1 reply
-
Gentle nudge... was hoping Hans (@zandbelt) would drop a quick "yes" or "no" in here... Anyone have experience using different configs with multiple VirtualHosts? Thanks! Bret |
Beta Was this translation helpful? Give feedback.
-
one can have multiple virtualhosts running in a single Apache instance, each with their own mod_auth_openidc OIDC RP config, one and only one per virtualhost |
Beta Was this translation helpful? Give feedback.
-
per-virtual host config has been the default since the first release in 2014... |
Beta Was this translation helpful? Give feedback.
-
Oh, *WOW*... hmmm... I wonder what happened with the customer's config,
then?
Let me be a little more precise... If a customer has a SPA served from
/www/spa1, and that's set up as a virtual host as, say, spa1.domain.com and
it's protected with your oidc module, they can also set up another virtual
host for spa2.domain.com with a separate oidc module configuration served
from /www/spa2? I think I'm restating the obvious, but I just want to make
sure. Sorry if you feel like this is a stupid question. :-(
Regards,
Bret
--
Bret Schuhmacher | Sr. Member of Technical Staff | OSET Institute | Mobile:
865.257.9856 | Main: 650.600.1450
…On Thu, Sep 2, 2021 at 4:09 PM Hans Zandbelt ***@***.***> wrote:
per-virtual host config has been the default since the first release in
2014...
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#664 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AHT6FUB5GTF5ADBAQ6Y6QUTT77KWRANCNFSM5C37X5PQ>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
Beta Was this translation helpful? Give feedback.
-
Hi there,
I'm new to the module - I'm actually researching it for a customer who uses it. I've read as much as I can find, but I don't see an answer to this. Can mod_auth_openidc handle different configurations per VirtualHost? I think the answer is "Yes", but I wanted to hear it from you Pros before I suggested it to the customer.
I found a simple httpd config in the docs at https://github.com/zmartzone/mod_auth_openidc/wiki#16-what-does-a-minimal-apache-configuration-file-look-like
Since the OIDC configuration and <Location> directives appear within the VirtualHost it appears I could have different configurations for each VirtualHost, correct?
Customer is trying to protect 50 SPAs, FWIW. I figured they could add a bunch of VirtualHosts (spa1.xyz.com, spa2.xyz.com, etc.) and configure their OIDC connections per VirtualHost.
Thanks!
Bret
Beta Was this translation helpful? Give feedback.
All reactions