You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi.
We need to include a custom code snippet inside nginx.conf. The rules are:
if X-Forwarded-For is present and if X-Forwarded-Proto is not https or missing then send 307 redirect to HTTPS
Does buildpack support that?
server {
listen 8080;
server_name _;
root /home/vcap/app/web/;
index index.html index.htm;
error_page 403 @403-custom;
error_page 404 @404-custom;
error_page 503 @503-custom;
set $my_insecure_forwarded 1;
if ($http_x_forwarded_for = '') {
set $my_insecure_forwarded 0;
}
if ($http_x_forwarded_proto = 'https') {
set $my_insecure_forwarded 0;
}
if ($my_insecure_forwarded) {
return 307 https://$host$request_uri;
}
The text was updated successfully, but these errors were encountered:
Hi.
We need to include a custom code snippet inside nginx.conf. The rules are:
if X-Forwarded-For is present and if X-Forwarded-Proto is not https or missing then send 307 redirect to HTTPS
Does buildpack support that?
The text was updated successfully, but these errors were encountered: