> Are you sure you have the correct site defined in "document root"
This is WHAT should be redirected:
---
[root@ns1 vhosts]# cat site2
# owned by VirtualHost
NameVirtualHost 212.179.113.183:80
# FrontPage needs the following four things to be here
# otherwise all the vhosts need to go in httpd.conf, which could
# get very large since there could be thousands of vhosts
ServerRoot /etc/httpd
<VirtualHost 212.179.113.183:80>
ServerName www.compros.co.il
ServerAdmin admin
#DocumentRoot /home/.sites/143/site2/web
DocumentRoot /home/.sites/148/site6/web
ErrorDocument 401 /error/401-authorization.html
ErrorDocument 403 /error/403-forbidden.html
ErrorDocument 404 /error/404-file-not-found.html
ErrorDocument 500 /error/500-internal-server-error.html
RewriteEngine on
RewriteCond %{HTTP_HOST} !^212.179.113.183(:80)?$
RewriteCond %{HTTP_HOST} !^www.compros.co.il(:80)?$ [NC]
RewriteRule ^/(.*) http://www.compros.co.il/$1 [L,R]
RewriteOptions inherit
AliasMatch ^/~([^/]+)(/(.*))?
/home/.sites/143/site2/users/$1/web/$3
Include /etc/httpd/conf/vhosts/site2.include
# BEGIN WebScripting SECTION. DO NOT EDIT MARKS OR IN BETWEEN.
AddType application/x-httpd-php .php4
AddType application/x-httpd-php .php
# END WebScripting SECTION. DO NOT EDIT MARKS OR IN BETWEEN.
</VirtualHost>
# end of VirtualHost owned section
---
And this is WHERE should it go:
---
[root@ns1 vhosts]# cat site6
# owned by VirtualHost
NameVirtualHost 212.179.113.183:80
# FrontPage needs the following four things to be here
# otherwise all the vhosts need to go in httpd.conf, which could
# get very large since there could be thousands of vhosts
ServerRoot /etc/httpd
<VirtualHost 212.179.113.183:80>
ServerName www.cpt.co.il
ServerAlias www.compros.co.il cpt.co.il
ServerAdmin admin
DocumentRoot /home/.sites/148/site6/web
ErrorDocument 401 /error/401-authorization.html
ErrorDocument 403 /error/403-forbidden.html
ErrorDocument 404 /error/404-file-not-found.html
ErrorDocument 500 /error/500-internal-server-error.html
RewriteEngine on
RewriteCond %{HTTP_HOST} !^212.179.113.183(:80)?$
RewriteCond %{HTTP_HOST} !^www.cpt.co.il(:80)?$ [NC]
RewriteRule ^/(.*) http://www.cpt.co.il/$1 [L,R]
RewriteOptions inherit
AliasMatch ^/~([^/]+)(/(.*))?
/home/.sites/148/site6/users/$1/web/$3
Include /etc/httpd/conf/vhosts/site6.include
# BEGIN WebScripting SECTION. DO NOT EDIT MARKS OR IN BETWEEN.
AddHandler cgi-wrapper .cgi
AddHandler cgi-wrapper .pl
AddType application/x-httpd-php .php4
AddType application/x-httpd-php .php
# END WebScripting SECTION. DO NOT EDIT MARKS OR IN BETWEEN.
</VirtualHost>
# end of VirtualHost owned section
---
See anything weird?
www.cpt.co.il works fine.
I am out of ideas...
Best,
--
Arthur Sherman
+972-52-4878851
CPTeam