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

Note on Nginx and Azure #828

Open
smorris12 opened this issue Aug 9, 2024 · 0 comments
Open

Note on Nginx and Azure #828

smorris12 opened this issue Aug 9, 2024 · 0 comments

Comments

@smorris12
Copy link

This is not a bug but I didn't know how else to report this for those using Nginx with Moodle and Azure IDP. If after upgrading either Moodle or the newest version of SAML2 (thanks team, the module is great!) you get an error 500 (Bad Gateway), add the following to the site config for the nginx configuration for your Moodle site in the server section:

server {
listen 443 ssl http2;

    server_name moodle.site.com;

    fastcgi_buffers 16 16k;
    fastcgi_buffer_size 32k;
    proxy_buffer_size   128k;
    proxy_buffers   4 256k;
    proxy_busy_buffers_size   256k;     

   location ~ \.php$ {     
        ... 
         }

...
}

Taken from https://stackoverflow.com/questions/57294212/502-bad-gateway-error-upstream-sent-too-big-header-while-reading-response-head

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

1 participant