Index: [Article Count Order] [Thread]

Date:  Fri, 20 Oct 2006 01:54:50 +0200
From:  Arthur Sherman <arturs (at mark) netvision.net.il>
Subject:  [coba-e:07642] Re: Domain pointing doesn't work
To:  coba-e (at mark) bluequartz.org
Message-Id:  <00e101c6f3d9$f74513b0$3701a8c0@lapxp>
In-Reply-To:  <002c01c6f3d1$2f373720$0301a8c0@Jerrycp>
X-Mail-Count: 07642

> 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