Lullabot / ddev-node-js-demo

Demo repository for node projects using DDEV
https://www.lullabot.com/articles/nodejs-development-ddev
3 stars 2 forks source link

increase server_names_hash_bucket_size to 128 for longer domains #1

Open mandrasch opened 5 months ago

mandrasch commented 5 months ago

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!