Skip to content

Add tests for variable proxy_protocol - #115

Open
ZihaoFU245 wants to merge 1 commit into
nginx:masterfrom
ZihaoFU245:conditional-pp
Open

ZihaoFU245 wants to merge 1 commit into
nginx:masterfrom
ZihaoFU245:conditional-pp

Conversation

@ZihaoFU245

Copy link
Copy Markdown

map $ssl_preread_server_name $pp {
example.com on;
example2.com v2;
default off;
}

server {
listen 8000;
proxy_pass backend;
proxy_protocol $pp;
}

Proposed changes

nginx/nginx#1713

Checklist

Before creating a PR, run through this checklist and mark each as complete:

map $ssl_preread_server_name $pp {
	example.com 	on;
	example2.com 	v2;
	default		off;
}

server {
	listen 8000;
	proxy_pass backend;
	proxy_protocol $pp;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: New

Development

Successfully merging this pull request may close these issues.

1 participant