Nginx: Difference between revisions

From wiki
Jump to navigation Jump to search
No edit summary
Line 8: Line 8:
:Due to many servernames in a server definition. In a .conf file in /etc/nginx/conf.d put a line like
:Due to many servernames in a server definition. In a .conf file in /etc/nginx/conf.d put a line like
:<code>server_names_hash_bucket_size  64;</code>
:<code>server_names_hash_bucket_size  64;</code>
;Using listen <nowiki>[::]:80</nowiki> ipv6only=on;
:The ipv6only parameter can be set only once. If you have several virtual host you should not use it.

Revision as of 11:37, 13 April 2020

Nginx is a webserver working very well on small systems

Tips

  1. Put al customizations in your site-definitions (in ./sites-available) or in .conf files in the ./conf.d subdir. This make it easier to migrate your configuration to another server.

Issues and fixes

could not build server_names_hash, you should increase server_names_hash_bucket_size: 32
Due to many servernames in a server definition. In a .conf file in /etc/nginx/conf.d put a line like
server_names_hash_bucket_size 64;
Using listen [::]:80 ipv6only=on;
The ipv6only parameter can be set only once. If you have several virtual host you should not use it.