Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 2 > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Closed Thread
 
Thread Tools Display Modes
  #1  
Old 19th April 2009, 13:05
Lobanak Lobanak is offline
Junior Member
 
Join Date: Sep 2005
Posts: 14
Thanks: 0
Thanked 1 Time in 1 Post
Default www.host.dom redirected to /var/www/sharedip/index.html

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 webmaster@host.dom
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 by Lobanak; 19th April 2009 at 13:12. Reason: adding vhost example
Sponsored Links
  #2  
Old 20th April 2009, 10:58
Lobanak Lobanak is offline
Junior Member
 
Join Date: Sep 2005
Posts: 14
Thanks: 0
Thanked 1 Time in 1 Post
 
Default

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.
Closed Thread

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
ISPConfig 3 RC 1 User domains all redirected to "It works!" apache message qriz Installation/Configuration 14 24th February 2009 21:55
Debian 3.1 & ISPConfig, perfect setup, but redirected to apache2-default netphreak Installation/Configuration 6 30th December 2006 12:19
Mail received is all redirected to adminispconf@localhost... badben Installation/Configuration 8 12th January 2006 12:30


All times are GMT +2. The time now is 13:36.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.