HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Installation/Configuration (http://www.howtoforge.com/forums/forumdisplay.php?f=16)
-   -   www host directs to shared ip message (http://www.howtoforge.com/forums/showthread.php?t=15336)

klaus++ 5th September 2007 13:02

www host directs to shared ip message
 
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 webmaster@pgz-treptow.de
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>

till 5th September 2007 13:43

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.

klaus++ 5th September 2007 14:14

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++

Quote:

Originally Posted by till
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.



All times are GMT +2. The time now is 19:56.

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