[HOME] [DOWNLOAD] [DOCS] [NEWS] [SUPPORT] [TIPS] [ISSUES] [DONATE]

Trying v3 Onions

Hey guys

I tried setting up a v3 onion service with my website today and got some interesting errors when I changed the “server_name” in my nginx.conf.

could not build server_names hash, you should increase server_names_hash_bucket_size: 64

I didn’t see anything on the whonix site about server_name errors or modifying nginx’s bucket size so I thought I’d mention this as it might help others in the future. It would also be great if the whonix devs could comment of how modifying the bucket size might effect the performance or anonymity of a nginx server – as I am far from a developer level and probably shouldn’t be editing my nginx conf in ways I don’t totally understand

To resolve the hash errors, as per the nginx documentation, I increased the bucket size to 128:

http {
    server_names_hash_bucket_size  128; # double space between the directive and the value is necessary
    ...
}

My nginx conf looks like this:

# main website
server {
    listen 10.152.152.XX:80;
    server_name v2onion.onion v3onion.onion;
    ...
}

# subdomain
server {
    listen 10.152.152.XX:80;
    server_name subdomain.v2onion.onion subdomain.v3onion.onion;
    ...
}
1 Like
[Imprint] [Privacy Policy] [Cookie Policy] [Terms of Use] [E-Sign Consent] [DMCA] [Investors] [Priority Support] [Professional Support]