www host directs to shared ip message

Discussion in 'Installation/Configuration' started by klaus++, Sep 5, 2007.

  1. klaus++

    klaus++ New Member HowtoForge Supporter

    Hello,
    first I thought this must be a common problem but I have not managed to find exactly the same phenomenon:
    I create a web with the host name www and the domain name pgz-treptow.de. Now http://pgz-treptow.de points to the www.pgz-treptow.de welcome page and http://www.pgz-treptow.de points to the shared-ip message of the main server.

    The server only has one ip, Vhosts_ispconfig.conf seems to be ok and trash is empty. Now I ran out of ideas and would need your inspiration to go any further.

    Thank you for your help,
    klaus++

    BTW here's the paragraph of Vhosts_ispconfig.conf

    ######################################
    # Vhost: www.pgz-treptow.de:80
    ######################################
    #
    #
    <VirtualHost 85.10.208.41:80>
    ServerName www.pgz-treptow.de:80
    ServerAdmin [email protected]
    DocumentRoot /srv/www/web59/web
    ServerAlias pgz-treptow.de
    DirectoryIndex index.html index.htm index.php index.php5 index.php4 index.php3 index.shtml index.cgi index.pl index.jsp Default.htm default.htm
    ScriptAlias /cgi-bin/ /srv/www/web59/cgi-bin/
    AddHandler cgi-script .cgi
    AddHandler cgi-script .pl
    ErrorLog /srv/www/web59/log/error.log
    AddType application/x-httpd-php .php .php3 .php4 .php5
    <Files *.php>
    SetOutputFilter PHP
    SetInputFilter PHP
    </Files>
    <Files *.php3>
    SetOutputFilter PHP
    SetInputFilter PHP
    </Files>
    <Files *.php4>
    SetOutputFilter PHP
    SetInputFilter PHP
    </Files>
    <Files *.php5>
    SetOutputFilter PHP
    SetInputFilter PHP
    </Files>
    php_admin_flag safe_mode Off
    AddType text/html .shtml
    AddOutputFilter INCLUDES .shtml
    Alias /error/ "/srv/www/web59/web/error/"
    ErrorDocument 400 /error/invalidSyntax.html
    ErrorDocument 401 /error/authorizationRequired.html
    ErrorDocument 403 /error/forbidden.html
    ErrorDocument 404 /error/fileNotFound.html
    ErrorDocument 405 /error/methodNotAllowed.html
    ErrorDocument 500 /error/internalServerError.html
    ErrorDocument 503 /error/overloaded.html
    AliasMatch ^/~([^/]+)(/(.*))? /srv/www/web59/user/$1/web/$3
    AliasMatch ^/users/([^/]+)(/(.*))? /srv/www/web59/user/$1/web/$3
    </VirtualHost>
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    It works for me. The domain points with and without www to the website and not to the shared IP page. Please check the hosts file on your workstation, if you redirected the domain with www to a wrong IP.
     
  3. klaus++

    klaus++ New Member HowtoForge Supporter

    hosts ok. There must have been wrong entries in a DNS cache ....
    Sometimes things happen outside your server :-(
    Thank you so much for checking!
    klaus++

     

Share This Page