new Website - configuration error?

Discussion in 'General' started by sigiberlin, Aug 13, 2014.

  1. sigiberlin

    sigiberlin New Member


    today i used ISPConfig3 to add a new website. my browser shows me the index.html in /usr/share/nginx/html.
    furtherr observing shows that the file /etc/nginx/sites-available tells me "nginx did not start after modifying this vhost file".

    this is the vhost.err file:

    server {
            listen *:80;
            root   /var/www/;
            index index.html index.htm index.php index.cgi index.xhtml;
            error_log /var/log/ispconfig/httpd/;
            access_log /var/log/ispconfig/httpd/ combined;
            location ~ /\. {
                deny all;
                access_log off;
                log_not_found off;
            location = /favicon.ico {
                log_not_found off;
                access_log off;
            location = /robots.txt {
                allow all;
                log_not_found off;
                access_log off;
            location /stats/ {
                index index.html index.php;
                auth_basic "Members Only";
                auth_basic_user_file /var/www/clients/client8/web20/web/stats/.htpasswd_stats;
            location ^~ /awstats-icon {
                alias /usr/share/awstats/icon;
            location ~ \.php$ {
                try_files /d964e47ef94b8a4f166b4853de951dcd.htm @php;
            location @php {
                try_files $uri =404;
                include /etc/nginx/fastcgi_params;
                fastcgi_pass unix:/var/lib/php5-fpm/web20.sock;
                fastcgi_index index.php;
                fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
                fastcgi_intercept_errors on;
    but i cant see any error there ---

    whats wrong?
  2. sigiberlin

    sigiberlin New Member

    ok, i think i did resolve this...

    [email protected]:/etc/nginx# nginx -t
    nginx: [emerg] could not build the server_names_hash, you should increase server_names_hash_bucket_size: 64
    nginx: configuration file /etc/nginx/nginx.conf test failed
    i changed server_names_hash_bucket_size to 128, restarted nkinx and - site is running.

Share This Page