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
This ticket documents multiple warnings encountered while running sudo nginx -t to test the Nginx configuration.
Warnings:
Deprecated "listen ... http2" directive: The warnings indicate that several configuration files are using the deprecated listen ... http2 directive. The recommended replacement is the http2 directive. This should be updated across all affected configurations.
List of affected files:
/etc/nginx/conf.d/figgy-prod.conf (line 27)
/etc/nginx/conf.d/figgy-staging.conf (line 25)
/etc/nginx/conf.d/fpul-prod.conf (line 23)
... (list continues - please see full output for details)
Protocol options redefined: The warnings also mention multiple instances of redefined protocol options for 0.0.0.0:443. This could potentially lead to unexpected behavior. Further investigation is needed to identify the root cause and implement a proper fix.
List of affected files (where applicable):
/etc/nginx/conf.d/figgy-staging.conf (line 25)
... (list continues - please see full output for details)
server_names_hash warnings: The configuration test mentions warnings related to server_names_hash. The output suggests that increasing either server_names_hash_max_size or server_names_hash_bucket_size might be necessary.
Conflicting server name: The test identified a conflicting server name "cdh-test-derrida.princeton.edu" on 0.0.0.0:443. This needs to be addressed to avoid potential issues. - Proposed Resolution:
Update all occurrences of the deprecated listen ... http2 directive to the recommended http2 directive in the affected configuration files.
Investigate the cause of redefined protocol options for 0.0.0.0:443 and implement a solution to ensure proper configuration.
Increase server_names_hash_max_size or server_names_hash_bucket_size in the Nginx configuration based on the recommendation from the test output.
Resolve the conflicting server name "cdh-test-derrida.princeton.edu" on 0.0.0.0:443.
Additional Notes:
swap out all configs that have listen 443 ssl http2; to have listen 443 ssl;
investigate server_hash problem
The complete output of sudo nginx -t
nginx: [warn] the "listen ... http2" directive is deprecated, use the "http2" directive instead in /etc/nginx/conf.d/figgy-prod.conf:27
nginx: [warn] the "listen ... http2" directive is deprecated, use the "http2" directive instead in /etc/nginx/conf.d/figgy-staging.conf:25
nginx: [warn] protocol options redefined for0.0.0.0:443in /etc/nginx/conf.d/figgy-staging.conf:25
nginx: [warn] the "listen ... http2" directive is deprecated, use the "http2" directive instead in /etc/nginx/conf.d/fpul-prod.conf:23
nginx: [warn] protocol options redefined for0.0.0.0:443in /etc/nginx/conf.d/geaccirc.conf:32
nginx: [warn] the "listen ... http2" directive is deprecated, use the "http2" directive instead in /etc/nginx/conf.d/imagecat_staging.conf:25
nginx: [warn] protocol options redefined for0.0.0.0:443in /etc/nginx/conf.d/imagecat_staging.conf:25
nginx: [warn] protocol options redefined for0.0.0.0:443in /etc/nginx/conf.d/issuetracker.conf:24
nginx: [warn] the "listen ... http2" directive is deprecated, use the "http2" directive instead in /etc/nginx/conf.d/lae-staging.conf:33
nginx: [warn] protocol options redefined for0.0.0.0:443in /etc/nginx/conf.d/lae-staging.conf:33
nginx: [warn] protocol options redefined for0.0.0.0:443in /etc/nginx/conf.d/lib-jobs-prod.conf:32
nginx: [warn] the "listen ... http2" directive is deprecated, use the "http2" directive instead in /etc/nginx/conf.d/lib-jobs-staging.conf:32
nginx: [warn] protocol options redefined for0.0.0.0:443in /etc/nginx/conf.d/lib-jobs-staging.conf:32
nginx: [warn] the "listen ... http2" directive is deprecated, use the "http2" directive instead in /etc/nginx/conf.d/lib-sc-prod.conf:24
nginx: [warn] the "listen ... http2" directive is deprecated, use the "http2" directive instead in /etc/nginx/conf.d/lib-sc-staging.conf:25
nginx: [warn] protocol options redefined for0.0.0.0:443in /etc/nginx/conf.d/libimages.conf:33
nginx: [warn] the "listen ... http2" directive is deprecated, use the "http2" directive instead in /etc/nginx/conf.d/lockers-and-study-spaces-staging.conf:32
nginx: [warn] protocol options redefined for0.0.0.0:443in /etc/nginx/conf.d/lockers-and-study-spaces-staging.conf:32
nginx: [warn] protocol options redefined for0.0.0.0:443in /etc/nginx/conf.d/lrp.conf:23
nginx: [warn] the "listen ... http2" directive is deprecated, use the "http2" directive instead in /etc/nginx/conf.d/maps-prod.conf:25
nginx: [warn] protocol options redefined for0.0.0.0:443in /etc/nginx/conf.d/maps-prod.conf:25
nginx: [warn] the "listen ... http2" directive is deprecated, use the "http2" directive instead in /etc/nginx/conf.d/maps-staging.conf:23
nginx: [warn] the "listen ... http2" directive is deprecated, use the "http2" directive instead in /etc/nginx/conf.d/oawaiver-prod.conf:33
nginx: [warn] the "listen ... http2" directive is deprecated, use the "http2" directive instead in /etc/nginx/conf.d/oawaiver-staging.conf:24
nginx: [warn] the "listen ... http2" directive is deprecated, use the "http2" directive instead in /etc/nginx/conf.d/ojs-prod.conf:24
nginx: [warn] the "listen ... http2" directive is deprecated, use the "http2" directive instead in /etc/nginx/conf.d/ojs-staging.conf:24
nginx: [warn] protocol options redefined for0.0.0.0:443in /etc/nginx/conf.d/orcid_prod.conf:35
nginx: [warn] the "listen ... http2" directive is deprecated, use the "http2" directive instead in /etc/nginx/conf.d/pdc-describe_prod.conf:30
nginx: [warn] protocol options redefined for0.0.0.0:443in /etc/nginx/conf.d/pdc-describe_prod.conf:30
nginx: [warn] the "listen ... http2" directive is deprecated, use the "http2" directive instead in /etc/nginx/conf.d/pdc-describe_staging.conf:31
nginx: [warn] the "listen ... http2" directive is deprecated, use the "http2" directive instead in /etc/nginx/conf.d/pdc-discovery_prod.conf:24
nginx: [warn] the "listen ... http2" directive is deprecated, use the "http2" directive instead in /etc/nginx/conf.d/pdc-discovery_staging.conf:25
nginx: [warn] the "listen ... http2" directive is deprecated, use the "http2" directive instead in /etc/nginx/conf.d/pudl_prod.conf:22
nginx: [warn] the "listen ... http2" directive is deprecated, use the "http2" directive instead in /etc/nginx/conf.d/pudl_prod.conf:34
nginx: [warn] the "listen ... http2" directive is deprecated, use the "http2" directive instead in /etc/nginx/conf.d/pulcheck_staging.conf:24
nginx: [warn] the "listen ... http2" directive is deprecated, use the "http2" directive instead in /etc/nginx/conf.d/pulfa_old.conf:23
nginx: [warn] protocol options redefined for0.0.0.0:443in /etc/nginx/conf.d/pulfalight-prod.conf:25
nginx: [warn] the "listen ... http2" directive is deprecated, use the "http2" directive instead in /etc/nginx/conf.d/pulfalight-qa.conf:23
nginx: [warn] protocol options redefined for0.0.0.0:443in /etc/nginx/conf.d/pulfalight-qa.conf:23
nginx: [warn] protocol options redefined for0.0.0.0:443in /etc/nginx/conf.d/pulfalight-staging.conf:32
nginx: [warn] the "listen ... http2" directive is deprecated, use the "http2" directive instead in /etc/nginx/conf.d/pulmonitor_staging.conf:23
nginx: [warn] protocol options redefined for0.0.0.0:443in /etc/nginx/conf.d/pulmonitor_staging.conf:23
nginx: [warn] the "listen ... http2" directive is deprecated, use the "http2" directive instead in /etc/nginx/conf.d/rbsc-prod.conf:11
nginx: [warn] the "listen ... http2" directive is deprecated, use the "http2" directive instead in /etc/nginx/conf.d/recap-prod.conf:24
nginx: [warn] the "listen ... http2" directive is deprecated, use the "http2" directive instead in /etc/nginx/conf.d/recap-prod.conf:46
nginx: [warn] the "listen ... http2" directive is deprecated, use the "http2" directive instead in /etc/nginx/conf.d/recap-staging.conf:25
nginx: [warn] the "listen ... http2" directive is deprecated, use the "http2" directive instead in /etc/nginx/conf.d/repec-prod.conf:32
nginx: [warn] the "listen ... http2" directive is deprecated, use the "http2" directive instead in /etc/nginx/conf.d/repec-staging.conf:31
nginx: [warn] the "listen ... http2" directive is deprecated, use the "http2" directive instead in /etc/nginx/conf.d/slavery-dev.conf:24
nginx: [warn] the "listen ... http2" directive is deprecated, use the "http2" directive instead in /etc/nginx/conf.d/slavery-prod.conf:31
nginx: [warn] the "listen ... http2" directive is deprecated, use the "http2" directive instead in /etc/nginx/conf.d/slavery-staging.conf:31
nginx: [warn] protocol options redefined for0.0.0.0:443in /etc/nginx/conf.d/static_prod.conf:60
nginx: [warn] the "listen ... http2" directive is deprecated, use the "http2" directive instead in /etc/nginx/conf.d/svn-prod.conf:24
nginx: [warn] protocol options redefined for0.0.0.0:443in /etc/nginx/conf.d/svn-prod.conf:24
nginx: [warn] the "listen ... http2" directive is deprecated, use the "http2" directive instead in /etc/nginx/conf.d/svn-staging.conf:24
nginx: [warn] protocol options redefined for0.0.0.0:443in /etc/nginx/conf.d/thesis_central.conf:13
nginx: [warn] the "listen ... http2" directive is deprecated, use the "http2" directive instead in /etc/nginx/conf.d/towerdeploy_prod.conf:23
nginx: [warn] protocol options redefined for0.0.0.0:443in /etc/nginx/conf.d/towerdeploy_prod.conf:23
nginx: [warn] the "listen ... http2" directive is deprecated, use the "http2" directive instead in /etc/nginx/conf.d/veridian-sites.conf:62
nginx: [warn] the "listen ... http2" directive is deprecated, use the "http2" directive instead in /etc/nginx/conf.d/veridian-sites.conf:84
nginx: [warn] protocol options redefined for0.0.0.0:443in /etc/nginx/conf.d/veridian-sites.conf:106
nginx: [warn] the "listen ... http2" directive is deprecated, use the "http2" directive instead in /etc/nginx/conf.d/veridian-sites.conf:129
nginx: [warn] protocol options redefined for0.0.0.0:443in /etc/nginx/conf.d/veridian-sites.conf:129
nginx: [warn] protocol options redefined for0.0.0.0:443in /etc/nginx/conf.d/videoreserves_prod.conf:31
nginx: [warn] could not build optimal server_names_hash, you should increase either server_names_hash_max_size: 512 or server_names_hash_bucket_size: 64; ignoring server_names_hash_bucket_size
nginx: [warn] conflicting server name "cdh-test-derrida.princeton.edu" on 0.0.0.0:443, ignored
nginx: [warn] could not build optimal server_names_hash, you should increase either server_names_hash_max_size: 512 or server_names_hash_bucket_size: 64; ignoring server_names_hash_bucket_size
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful
The text was updated successfully, but these errors were encountered:
This ticket documents multiple warnings encountered while running sudo nginx -t to test the Nginx configuration.
Warnings:
- Proposed Resolution:
listen 443 ssl http2;
to havelisten 443 ssl;
The complete output of sudo nginx -t
The text was updated successfully, but these errors were encountered: