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
Pantheon Drupal8 missing fastcgi_param PATH_INFO #18
Comments
Interestingly, I just reviewed the nginx config on one of my Pantheon Drupal sites by doing this:
It looks like Pantheon's path info handling more or less matches ours, I grepped for |
You have an interesting perspective on it, Dustin, since you know Lando and Pantheon rather well. Even with the insight that Pantheon's own configuration does not visibly set the |
Doing a bit more research via SFTP, the prepend.php file includes
It looks to me that we just load this file from our global nginx service and we can make a tweak there |
Nice snooping! |
This is done on Pantheon and seems to be needed for the latest versions of SimpleSaml. Researching these params for NGINX in general, it seems these values are actually set by default: @see https://www.nginx.com/resources/wiki/start/topics/examples/phpfcgi/
@woodseowl ive got @dustinleblanc's worked queued up in another branch, ready to be merged into master. This at least seems to define _keys_in This will be in the next release but will require |
@pirog I just tested locally with these commits and it works great now. Thanks! |
Oh very nice! Great to have confirmation from projects running in the wild |
Using Lando v3.0.0-rc.23 with Pantheon Drupal 8...
I'm finding that
PATH_INFO
isn't defined in the server environment variable but there is a line in the pantheon/drupal8.conf.tpl file that suggests it is expected to be:https://github.com/lando/lando/blob/6a37c0912104861684be3346fa60de76abf38cbc/plugins/lando-pantheon/recipes/pantheon/drupal8.conf.tpl#L154
Based on nginx's documentation, the
PATH_INFO
param needs to be explicitly set:http://nginx.org/en/docs/http/ngx_http_fastcgi_module.html#fastcgi_split_path_info
This is coming to the surface because simplesamlphp 1.18 made a change in how it gets
PATH_INFO
and the latest drupal/simplesamlphp_auth (v3.2) has recently incorporated that.I tested locally by running Lando from source and adding the recommended line from the nginx documentation after each of the three
fastcgi_split_path_info
settings:This fixed the missing
PATH_INFO
server env variable.I tried a couple of ways just to set this value through local custom config files (a la https://docs.lando.dev/config/nginx.html#configuration or https://docs.lando.dev/config/pantheon.html#configuration) but couldn't seem to get it to take in this Pantheon D8 setup. It was too much black box experimentation at that point to really try to find it, but I would love to know how to make that work.
The text was updated successfully, but these errors were encountered: