Hi,
I created a new domain with this settings: php version 5.4.16 OS vendor, php runs as FPM appliucation served by nginx. But when I saved it I got this error:
[warn] 12776#0: could not build optimal server_names_hash, you should increase either server_names_hash_max_size: 2526 or server_names_hash_bucket_size: 64; ignoring server_names_hash_bucket_size
[emerg] 12796#0: "server_names_hash_bucket_size" directive is duplicate in /etc/nginx/conf.d/aa500_psa_tweaks.conf:2
and every websites showed 404 error nginx. Then I commented the second line of /etc/nginx/conf.d/aa500_psa_tweaks.conf and run this commands:
/usr/local/psa/admin/bin/nginxmng --disable
/usr/local/psa/admin/bin/nginxmng --enable
/usr/local/psa/admin/bin/nginxmng --status
/usr/local/psa/admin/sbin/httpdmng --reconfigure-all
and every websites returned to work but now in /etc/nginx/conf.d/aa500_psa_tweaks.conf I have the same line again "server_names_hash_bucket_size 128" and i get this error with red background:
"New configuration files for the Apache web server were not created due to the errors in configuration templates: nginx: [emerg] "server_names_hash_bucket_size" directive is duplicate in /etc/nginx/conf.d/aa500_psa_tweaks.conf:3 nginx: configuration file /etc/nginx/nginx.conf test failed . Detailed error descriptions were sent to you by email. Please resolve the issues and click here to generate broken configuration files once again or here to generate all configuration files. See the details in Configuration Troubleshooter"
I commented the directive server_names_hash_bucket_size in /etc/nginx/nginx.conf
Why? Can you help me?
Luca
Plesk 12.5.30 #62 with IP Adress Banning and Web Application Firewall (nginx + apache served ~70 websites)
I created a new domain with this settings: php version 5.4.16 OS vendor, php runs as FPM appliucation served by nginx. But when I saved it I got this error:
[warn] 12776#0: could not build optimal server_names_hash, you should increase either server_names_hash_max_size: 2526 or server_names_hash_bucket_size: 64; ignoring server_names_hash_bucket_size
[emerg] 12796#0: "server_names_hash_bucket_size" directive is duplicate in /etc/nginx/conf.d/aa500_psa_tweaks.conf:2
and every websites showed 404 error nginx. Then I commented the second line of /etc/nginx/conf.d/aa500_psa_tweaks.conf and run this commands:
/usr/local/psa/admin/bin/nginxmng --disable
/usr/local/psa/admin/bin/nginxmng --enable
/usr/local/psa/admin/bin/nginxmng --status
/usr/local/psa/admin/sbin/httpdmng --reconfigure-all
and every websites returned to work but now in /etc/nginx/conf.d/aa500_psa_tweaks.conf I have the same line again "server_names_hash_bucket_size 128" and i get this error with red background:
"New configuration files for the Apache web server were not created due to the errors in configuration templates: nginx: [emerg] "server_names_hash_bucket_size" directive is duplicate in /etc/nginx/conf.d/aa500_psa_tweaks.conf:3 nginx: configuration file /etc/nginx/nginx.conf test failed . Detailed error descriptions were sent to you by email. Please resolve the issues and click here to generate broken configuration files once again or here to generate all configuration files. See the details in Configuration Troubleshooter"
I commented the directive server_names_hash_bucket_size in /etc/nginx/nginx.conf
Why? Can you help me?
Luca
Plesk 12.5.30 #62 with IP Adress Banning and Web Application Firewall (nginx + apache served ~70 websites)