All domains are pointing to one site

Discussion in 'ISPConfig 3 Priority Support' started by erickr, Dec 24, 2013.

  1. erickr

    erickr New Member

    I've created mydomain1, mydomain2 and mydomain3 but when trying to browse to each they are all pointing to mydomain1.

    I'm hosted at digital ocean and using their dns. all three domains have A records pointing to the ip of the server. There are no dns records in ispconfig.

    Any idea why this is happening?
     
  2. erickr

    erickr New Member

    Blank vhost files are being created with the following comments

    Code:
    # nginx did not start after modifying this vhost file.
    # Please check file /etc/nginx/sites-available/mydomain.com.vhost.err for syntax errors.
    I did a new clean install on deb 7 and am getting the same thing with any new domain I create.


    here is the vhost.err file:

    Code:
    server {
            listen *:80;
    
    
            server_name mydomain.com www.mydomain.com;
    
            root   /var/www/mydomain.com/web;
    
    
    
            index index.html index.htm index.php index.cgi index.pl index.xhtml;
    
    
    
            error_log /var/log/ispconfig/httpd/mydomain.com/error.log;
            access_log /var/log/ispconfig/httpd/mydomain.com/access.log 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/client1/web1/web/stats/.htpasswd_stats;
            }
    
            location ^~ /awstats-icon {
                alias /usr/share/awstats/icon;
            }
    
            location ~ \.php$ {
                try_files /4160783f9b31f0c74be869b28b9c43ed.htm @php;
            }
    
            location @php {
                try_files $uri =404;
                include /etc/nginx/fastcgi_params;
                fastcgi_pass 127.0.0.1:9010;
                fastcgi_index index.php;
                fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
                fastcgi_intercept_errors on;
                fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
                fastcgi_intercept_errors on;
            }
    
     
  3. till

    till Super Moderator Staff Member ISPConfig Developer

    Try to rename the mydomain.com.vhost.err file to mydomain.com.vhost and then restart nginx. Afterwards, check the nginx error.log for errors.
     

Share This Page