Um exemplo.Note que neste caso o apache esta bsucando a porta 3128 que é
onde esta o squid... Se não usar o squid tem que alterar um pouco...
Pela sua mensaqgem de erro voicê tem que ver se o mod_rewrite esta
instalado...

<VirtualHost *:80>
    ServerName exemplo.org

    RewriteEngine On
    RewriteLog /opt/Ploneback/zeocluster/var/log/rewrite_exemplo.org.log
    RewriteLogLevel 0

    CustomLog /opt/Ploneback/zeocluster/var/log/access_exemplo.org.log
combined
    ErrorLog /opt/Ploneback/zeocluster/var/log/error_exemplo.org.log

    <Proxy http://exemplo.org:3128>
      Allow from all
    </Proxy>


   

    RewriteRule ^/awstats/(.*) /awstats/$1 [L,PT]
    RewriteRule ^/awstatsclasses/(.*) /awstatsclasses/$1 [L,PT]
    RewriteRule ^/awstatscss/(.*) /awstatscss/$1 [L,PT]
    RewriteRule ^/awstatsicons/(.*) /awstatsicons/$1 [L,PT]


    RewriteRule ^(.*)$ - [E=BACKEND_LOCATION:exemplo.org]
    RewriteRule ^(.*)$ - [E=BACKEND_PORT:3128]
    RewriteRule ^(.*)$ - [E=HOST:exemplo.org]
    RewriteRule ^(.*)$ - [E=PORT:80]
    RewriteRule ^(.*)$ - [E=PROTO:http]
    RewriteRule ^(.*)$ - [E=ZOPEPATH:]
    RewriteRule  ^/(.*)/$
http://%{ENV:BACKEND_LOCATION}:%{ENV:BACKEND_PORT}/VirtualHostBase/%{ENV:PROTO}/%{ENV:HOST}:%{ENV:PORT}/%{ENV:ZOPEPATH}/VirtualHostRoot/$1
[L,P]
    RewriteRule  ^/(.*)$
http://%{ENV:BACKEND_LOCATION}:%{ENV:BACKEND_PORT}/VirtualHostBase/%{ENV:PROTO}/%{ENV:HOST}:%{ENV:PORT}/%{ENV:ZOPEPATH}/VirtualHostRoot/$1
[L,P]



Edgard Costa escreveu:
>
> Amigos Zope
>
> Estou tentando todas as possíveis combinações encontradas na net e
> neste grupo de discussão para fazer o meu apache redirecionar para o Zope
> O máximo que consigo é seguinte mensagem de Erro:
>
> Forcing reload of web server (apache2)...Syntax error on line 68 of
> /etc/apache2/sites-enabled/000-default:
> Invalid command 'RewriteEngine', perhaps misspelled or defined by a
> module not included in the server configuration
> failed!
>
> Pacotes instalados e sistema operacional
>
> Debian etch
> apache2
> Em mod-available proxy e rewrite load.
>
> A configuração do default
> #Plone
> #<VirtualHost admin.pewebhosting.com>
> #
> # ServerName admin.pewebhosting.com
> # ProxyVia On
> # RewriteEngine On
> # RewriteRule ^/(.*)" to
> http://201.20.20.30:8080/VirtualHostBase/http/*
> <http://201.20.20.30:8080/VirtualHostBase/http/*>{HTTP_HOST}:80/VirtualHostRoot/$1
> [L,P]
> #</VirtualHost>
>
> * Esta comentado para o apache poder trabalhar sem problemas
>
> EdgardCosta
>
> 

Responder a