Replies: 2 comments
-
you'll need to use |
Beta Was this translation helpful? Give feedback.
-
You mean location or Location? :P And to make sure, |
Beta Was this translation helpful? Give feedback.
-
you'll need to use |
Beta Was this translation helpful? Give feedback.
-
You mean location or Location? :P And to make sure, |
Beta Was this translation helpful? Give feedback.
-
Hi
I have mod_auth_openidc setup to auth with Google for one site. But now I'm in need to give access to one url and struggle to find solution.
Let's say the site
https://example.com
is protected andhttps://example.com/api
is the one needs to be bypassed. I tried to make api folder exist, which didn't make it work, as well as virtual one, where it was rewritten to the php file - this didn't work either.I did found this solution but for some unknown reason it doesn't work for me. Maybe it is somehow related to some issue I have where I can't get Auth to work when set directly in
VirtualHost->Location
. I have to set in.httaccess
instead.So I tried few things that was mostly related to move all the options around. The base options currently are:
And in .htaccess I have:
Removing
.htaccess
entry basically disables authorization like it weren't set inLocation
at all.Removing Location entries and set additional
.htaccess
in/api
folder doesn't work either - I still get prompted for auth whether it'shttps://example.com
orhttps://example.com/api
.I can change .htaccess to:
and it will work properly by passing specified IP and block others. But that is not what I'd like to do here. :P
Any suggestions?
Beta Was this translation helpful? Give feedback.
All reactions