www.host.dom redirected to /var/www/sharedip/index.html

Discussion in 'Installation/Configuration' started by Lobanak, Apr 19, 2009.

Thread Status:
Not open for further replies.
  1. Lobanak

    Lobanak New Member

    Hello all,

    a user has created some weired (is this right?) entries as he wanted to create a sub-/co-domain.

    The problem now is, that host.dom is showing the homepage, but www.host.dom is displaying the index.html from /var/www/sharedip saying that the IP is forked (it displays the german text, so I don't know the real english text).

    Now I have corrected everything in the admin panel, so that the domain looks like every other domain. All entries in bind9 and apache2 vhosts looks like all the other domains with sub-domains/co-domains. But apache always redirect to the above mentioned page.

    What could be the problem? Other domains on the same IP work without a problem.

    Thanks

    Greets

    AlexR

    Vhosts.ispconfig
    Code:
    NameVirtualHost aa.bb.ccc.dd:80
    <VirtualHost aa.bb.ccc.dd:80>
      ServerName localhost
      ServerAdmin root@localhost
      DocumentRoot /var/www/sharedip
      <IfModule mod_rewrite.c>
        RewriteEngine on
        RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK)
        RewriteRule .* - [F]
      </IfModule>
    </VirtualHost>
    ...
    ######################################
    # Vhost: www.host.dom:80
    ######################################
    #
    #
    <VirtualHost aa.bb.ccc.dd:80>
    SuexecUserGroup web11_user web11
    ServerName www.host.dom:80
    ServerAdmin [email protected]
    DocumentRoot /var/www/web11/web
    ServerAlias portfolio.host.dom host.dom shop.host.dom handy.host.dom meinshop.host.dom graffiti.host.dom sattelstueble.host.dom geburtstag.host.dom
    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
    Alias  /cgi-bin/ /var/www/web11/cgi-bin/
    AddHandler cgi-script .cgi
    AddHandler cgi-script .pl
    ErrorLog /var/www/web11/log/error.log
    AddType application/x-httpd-php .php .php3 .php4 .php5
    php_admin_flag safe_mode Off
    Alias /error/ "/var/www/web11/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 ^/~([^/]+)(/(.*))? /var/www/web11/user/$1/web/$3
    AliasMatch ^/users/([^/]+)(/(.*))? /var/www/web11/user/$1/web/$3
    RewriteEngine on
    RewriteCond %{HTTP_HOST}   ^portfolio\.host\.dom [NC]
    RewriteRule   ^/(.*)$  http://www.host.dom/portfolio$1  [R]
    RewriteCond %{HTTP_HOST}   ^shop\.host\.dom [NC]
    RewriteRule   ^/(.*)$  http://www.host.dom/shop$1  [R]
    RewriteCond %{HTTP_HOST}   ^handy\.host\.dom [NC]
    RewriteRule   ^/(.*)$  http://www.host.dom/handy$1  [R]
    RewriteCond %{HTTP_HOST}   ^graffiti\.host\.dom [NC]
    RewriteRule   ^/(.*)$  http://www.host.dom/z_graffiti/$1  [R]
    RewriteCond %{HTTP_HOST}   ^sattelstueble\.host\.dom [NC]
    RewriteRule   ^/(.*)$  http://www.host.dom/bsp/sattelstueble/$1  [R]
    RewriteCond %{HTTP_HOST}   ^geburtstag\.host\.dom [NC]
    RewriteRule   ^/(.*)$  http://www.host.dom/mandy/geburtstag/$1  [R]
    <IfModule mod_rewrite.c>
      RewriteEngine on
      RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK)
      RewriteRule .* - [F]
    </IfModule>
    </VirtualHost>
     
    Last edited: Apr 19, 2009
  2. Lobanak

    Lobanak New Member

    ok, seems that some domain entries were staying in cache or something like that.

    Today all works like it should and I really don't know what was the problem.


    edit: to the mods. Maybe you can close/move or delete this, cause no more problem with the above settings.
     
Thread Status:
Not open for further replies.

Share This Page