Index: [Article Count Order] [Thread]

Date:  Fri, 26 May 2006 13:04:13 +0100
From:  e.a (at mark) post.com
Subject:  [coba-e:05406] Re: Preview site feature
To:  Maurice de Laat <coba-e (at mark) bluequartz.org>
Message-Id:  <109192611.20060526130413 (at mark) post.com>
In-Reply-To:  <20060526080622.GA75812 (at mark) xs4all.nl>
References:  <433876405.20060518005921 (at mark) post.com> <1668559203.20060518222318 (at mark) post.com> <20060519220944.GA97948 (at mark) xs4all.nl> <1271800891.20060520012611 (at mark) post.com> <20060526080622.GA75812 (at mark) xs4all.nl>
X-Mail-Count: 05406

Hello,

In /etc/httpd/conf/vhosts/preview , I have :

NameVirtualHost 216.194.67.218:80
<VirtualHost 216.194.67.218:80>
ServerName bq2.lusodigital.net
DocumentRoot /var/www/html
RewriteEngine On
RewriteCond %{HTTP_HOST}                ^([^:]+)
RewriteCond %{DOCUMENT_ROOT}            !-d
RewriteRule .*                          http://%1:444/error/forbidden.html [L,R]
RewriteCond %{HTTP_HOST}                ^([^:]+)
RewriteRule ^/admin/?$                 http://%1:444/login.php [L,R]
RewriteCond %{HTTP_HOST}                ^([^:]+)
RewriteRule ^/siteadmin/?$             http://%1:444/login.php [L,R]
RewriteCond %{HTTP_HOST}                ^([^:]+)
RewriteRule ^/personal/?$              http://%1:444/login.php [L,R]
RewriteCond %{HTTP_HOST}                ^([^:]+)
RewriteRule ^/login/?$                 http://%1:444/login.php [L,R]

<Directory /var/www/html>
Options +MultiViews
</Directory>

Alias /no-vhost-error/ /usr/sausalito/ui/web/error/
ErrorDocument 401 /no-vhost-error/authorizationRequired.html
ErrorDocument 403 /no-vhost-error/forbidden.html
ErrorDocument 404 /no-vhost-error/fileNotFound.html
ErrorDocument 500 /no-vhost-error/internalServerError.html
Alias /bq2.lusodigital.net/ /home/.sites/28/site1/web/
<Directory /home/.sites/28/site1/web>
AddType application/x-httpd-php .php4
AddType application/x-httpd-php .php
AddHandler cgi-wrapper .cgi
AddHandler cgi-wrapper .pl
AddHandler server-parsed .shtml
AddType text/html .shtml

</Directory>
Alias /www.gicsal.com/ /home/.sites/70/site4/web/
<Directory /home/.sites/70/site4/web>
AddType application/x-httpd-php .php4
AddType application/x-httpd-php .php
AddHandler cgi-wrapper .cgi
AddHandler cgi-wrapper .pl
AddHandler server-parsed .shtml
AddType text/html .shtml

</Directory>
Alias /www.bq2bq2.com/ /home/.sites/143/site2/web/
<Directory /home/.sites/143/site2/web>
AddType application/x-httpd-php .php4
AddType application/x-httpd-php .php
AddHandler cgi-wrapper .cgi
AddHandler cgi-wrapper .pl
AddHandler server-parsed .shtml
AddType text/html .shtml

</Directory>
Alias /www.testecom.com/ /home/.sites/106/site3/web/
<Directory /home/.sites/106/site3/web>
AddType application/x-httpd-php .php4
AddType application/x-httpd-php .php
AddHandler cgi-wrapper .cgi
AddHandler cgi-wrapper .pl
AddHandler server-parsed .shtml
AddType text/html .shtml

</Directory>

</VirtualHost>


-- 

Very best Regards

Emmanuel



MdL> On Sat, May 20, 2006 at 01:26:11AM +0100, e.a (at mark) post.com wrote:

>> >> When I try to preview www.DOMAIN.COM I get in error_log :
>> >> > File does not exist: /home/.sites/28/site1/web/www.DOMAIN.COM
>> 
>> MdL> For preview to function, the URL you browse to needs a trailing /
>> 
>> Ending with / does't help ... I get the same "File Not Found"
>> 
>> Any idea ?

MdL> What is in your /etc/httpd/conf/vhosts/preview?