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: Ping configuration is not optimal #143

Open
ragnarkurmwunder opened this issue Sep 8, 2020 · 0 comments
Open

Nginx: Ping configuration is not optimal #143

ragnarkurmwunder opened this issue Sep 8, 2020 · 0 comments
Labels
invalid This doesn't seem right nginx

Comments

@ragnarkurmwunder
Copy link
Contributor

ragnarkurmwunder commented Sep 8, 2020

https://wunder.slack.com/archives/CAC0EPL1G/p1598360110001200?thread_ts=1598359982.000900&cid=CAC0EPL1G

Need to add:

fastcgi_param SCRIPT_NAME /_ping.php;

Because in AWS we would like to use this:

// Simplified IP range for AWS Health Check.
if ($_SERVER['SCRIPT_NAME'] == '/_ping.php') {
  $settings['trusted_host_patterns'][] = '^[\d.]+$';
}
@ragnarkurmwunder ragnarkurmwunder added invalid This doesn't seem right nginx labels Sep 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid This doesn't seem right nginx
Projects
None yet
Development

No branches or pull requests

1 participant