claudioimai
8th September 2007, 13:42
Hello.
I've searched this forum quite a lot, and found some good pieces of information.
Now, I have 2 problems I am trying to fix and it's getting quite urgent.
1. I have a site, set in the Vhosts_ispconfig.conf file:
NameVirtualHost 78.47.195.34:80
<VirtualHost 78.47.195.34:80>
ServerName localhost
ServerAdmin root@localhost
DocumentRoot /var/www/sharedip
</VirtualHost>
NameVirtualHost 88.198.133.14:80
<VirtualHost 88.198.133.14:80>
ServerName localhost
ServerAdmin root@localhost
DocumentRoot /var/www/sharedip
</VirtualHost>
.
. (some stuff from other sites)
.
######################################
# Vhost: www.varejo29.net:80
######################################
#
#
<VirtualHost 78.47.195.34:80>
ServerName www.varejo29.net:80
ServerAdmin webmaster@varejo29.net
DocumentRoot /var/www/web15/web
ServerAlias varejo29.net varejo29.jp
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/ /var/www/web15/cgi-bin/
AddHandler cgi-script .cgi
AddHandler cgi-script .pl
ErrorLog /var/www/web15/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
AddType application/vnd.wap.wmlscriptc .wmlsc .wsc
AddType text/vnd.wap.wml .wml
AddType text/vnd.wap.wmlscript .ws .wmlscript
AddType image/vnd.wap.wbmp .wbmp
Alias /error/ "/var/www/web15/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/web15/user/$1/web/$3
AliasMatch ^/users/([^/]+)(/(.*))? /var/www/web15/user/$1/web/$3
</VirtualHost>
THE PROBLEM:
the domain www.varejo29.jp is set as serveralias, but whenever I try to view it, it shows me the "sharedip" page.
If I type www.varejo29.jp/store, it shows the correct page, located at /var/www/web15/store
Can anyone help me, or point me to the correct direction?
I've searched this forum quite a lot, and found some good pieces of information.
Now, I have 2 problems I am trying to fix and it's getting quite urgent.
1. I have a site, set in the Vhosts_ispconfig.conf file:
NameVirtualHost 78.47.195.34:80
<VirtualHost 78.47.195.34:80>
ServerName localhost
ServerAdmin root@localhost
DocumentRoot /var/www/sharedip
</VirtualHost>
NameVirtualHost 88.198.133.14:80
<VirtualHost 88.198.133.14:80>
ServerName localhost
ServerAdmin root@localhost
DocumentRoot /var/www/sharedip
</VirtualHost>
.
. (some stuff from other sites)
.
######################################
# Vhost: www.varejo29.net:80
######################################
#
#
<VirtualHost 78.47.195.34:80>
ServerName www.varejo29.net:80
ServerAdmin webmaster@varejo29.net
DocumentRoot /var/www/web15/web
ServerAlias varejo29.net varejo29.jp
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/ /var/www/web15/cgi-bin/
AddHandler cgi-script .cgi
AddHandler cgi-script .pl
ErrorLog /var/www/web15/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
AddType application/vnd.wap.wmlscriptc .wmlsc .wsc
AddType text/vnd.wap.wml .wml
AddType text/vnd.wap.wmlscript .ws .wmlscript
AddType image/vnd.wap.wbmp .wbmp
Alias /error/ "/var/www/web15/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/web15/user/$1/web/$3
AliasMatch ^/users/([^/]+)(/(.*))? /var/www/web15/user/$1/web/$3
</VirtualHost>
THE PROBLEM:
the domain www.varejo29.jp is set as serveralias, but whenever I try to view it, it shows me the "sharedip" page.
If I type www.varejo29.jp/store, it shows the correct page, located at /var/www/web15/store
Can anyone help me, or point me to the correct direction?