Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nginx nonrootpath excerpt #10

Open
ahmkindi opened this issue Oct 8, 2022 · 2 comments
Open

nginx nonrootpath excerpt #10

ahmkindi opened this issue Oct 8, 2022 · 2 comments

Comments

@ahmkindi
Copy link

ahmkindi commented Oct 8, 2022

The following didn't work for me from this config

        location ~^/(?<fusionPath>(oauth2|admin|ajax|login|password|js/identityProvider))/ {
            proxy_pass       http://fusionauth/$fusionPath/;
            ...rest of settings
        }

Although it successfully proxies to FusionAuth it kept resulting in a 404.

This is working if you would like to test:

          location ~^/(oauth2|admin|ajax|login|password|js/identityProvider) {
            proxy_pass       http://fusionauth;
            ...rest of settings
        }

not sure why, if NGINX version/or the project setup is just different.

@mooreds
Copy link
Contributor

mooreds commented Oct 10, 2022

Thanks @ahmkindi . What version of nginx were you running?

@ahmkindi
Copy link
Author

nginx version 1.21

This is my current config, its still a work in progress but its getting the job done.

first time using FusionAuth, great product, thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants