Join GitHub today. GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together. Added HTTP/2 support to SSL hosts #118. Closed pentago wants to merge 1 commit into h5bp: master from unknown repository. nginx -t nginx: emerg invalid parameter 'http2' in. Sslciphers directive is duplicate after 'http2pref' enable Discussion in ' Plesk 12.x for Linux ' started by Willem Janssen, Apr 18, 2016. Willem Janssen New Pleskian.
Can you help me? I'm trying to block all requests outside my domain, and allow the request if a specified parameter exists
And I'm getting this error when nginx starts:
nginx: [emerg] 'if' directive is not allowed here in /etc/nginx/sites-enabled/default:17
What should I do to fix this issue?Thank you!
nginx does not allow nested if
statements. You need to use map
functionality to achieve your goal.
In the http
level, add the map: