Skip to content
This repository has been archived by the owner on Jun 20, 2024. It is now read-only.

increase server_names_hash_bucket_size to 128 for longer domains #1

Open
mandrasch opened this issue May 20, 2024 · 0 comments
Open

Comments

@mandrasch
Copy link

mandrasch commented May 20, 2024

Hi,

I noticed that for longer server names there will be an nginx error on ddev start

fails with nginx: [emerg] could not build server_names_hash, you should increase server_names_hash_bucket_size: 64

I solved it by increasing the config value to 128

# important, otherwise nginx fails with "[emerg] could not build server_names_hash,
# you should increase server_names_hash_bucket_size: 64"
server_names_hash_bucket_size 128;

server {

  server_name frontend.ddev-laravel-breeze-sveltekit.ddev.site;
 

https://github.com/mandrasch/ddev-laravel-breeze-sveltekit/blob/main/.ddev/nginx_full/frontend.conf

This is also the default DDEV value (https://github.com/ddev/ddev/blob/d824ffe36ff3378b1252d699411a7f6ae021f88c/containers/ddev-nginx-proxy-router/etc/nginx/nginx.conf#L14)

Just wanted to let you know, cheers!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant