Redirect After Login with Nginx

After migrating my site to an Ngnix server the Redirect After Login does not work. Any ideas or workarounds that I can try?

Looking at the log I see that the redirect to is blank.

[_pmr] => Array
(
[user_login] => alantest
[user_email] => xxxxxxx@gmail.com
[ws_plugin__s2member_registration] => d14dd8be0b
[ws_plugin__s2member_custom_reg_field_user_pass1] => xxx
[ws_plugin__s2member_custom_reg_field_user_pass2] => xxx
[ws_plugin__s2member_custom_reg_field_first_name] => MyFirstName
[ws_plugin__s2member_custom_reg_field_last_name] => MyLastName
[ws_plugin__s2member_custom_reg_field_city_town] => test
[redirect_to] =>
[wp-submit] => Register
)

In my experience s2 isn’t too friendly with NGINX.

I host all my sites on Amazon hosting with an Aurora DB, but s2 threw an error until I figured it out.

Not your error, but still NGINX (and super trellis/ansible)

I’m confident @clavaque will solve all of the concerns, but it’s all based on priority. Darn EU and PSD2. Then there’s U.S. sales tax. Sheesh. Poor @clavaque

BTW I used to use this service for setting up any new WP VPS.

https://serverpilot.io/

They install Apache behind NGINX so you (kind of because there’s a performance hit) get the best of both worlds.

They used to have a free tier, but folks on GitHub released code to give all the premium features and the pricing changed.

I still have some grandfathered sites on the old (free) pricing, but all my new stuff is on Trellis (see above), but I haven’t launched a new s2 site for a minute.

I seem to have found a solution. I had to create a file as instructed in this document https://s2member.com/kb-article/auto-login-on-registration/

It now redirects on registration as expected.

Why it does not work as part of the default plugin I have no idea?