[Plone-IT] Apache 2.2.3 & VirtualHost: help!

SauZheR sauzher a gmail.com
Gio 8 Ott 2009 17:55:26 UTC


manca ServerName subito dopo <virtualhost...>


2009/10/8 Silvio <silviot a gmail.com>:
> On Thu, Oct 8, 2009 at 7:34 PM, Vito Falco <vitofalco a gmail.com> wrote:
>> Ciao a tutti,
>> di solito configuro senza problemi i virtual host con rewriterule su Apache
>> 2.0x (e CentOs4 / 5).
>>
>> Purtroppo devo configurare una istanza su una RedHat 5 enterprise.
>> Questa distribuzione fornisce "on board" l'Apache 2.2.3 che mi sta dando un
>> sacco di rogne. Quindi vorrei il vostro aiuto prima di disinstallare la
>> versione corrente e mettere le più "conosciute" 2.0.x
>>
> Io con apache 2.2.4 di Ubuntu gutsy uso
>     <Directory proxy:*>
>         Order deny,allow
>         Allow from all
>     </Directory>
>    <ProxyMatch http://127.0.0.1:[0-9]+/.*>
>                  Order deny,allow
>                  Allow from all
>    </ProxyMatch>
>
> Non le comprendo appieno, ma provando vedo che almeno accedo a Plone e
> non ho lasciato un open proxy.
> Se le usi e funzionano controlla di non averlo fatto neanche tu.
>
>          Silvio
>
>> Nel httpd.conf, alla fine, ho messo (poichè ora è solo in fase di test)
>> queste righe:
>> [...]
>>>
>>> <VirtualHost *:80>
>>>  ServerAlias   test.miosito.it
>>>  ServerAdmin   webmaster a miosito.it
>>>  ServerSignature On
>>>
>>>  # we don't need a DocumentRoot for a zope only sites
>>>  #DocumentRoot  /var/www/example.org
>>>
>>>  CustomLog     /var/log/httpd/example.org-access.log combined
>>>  ErrorLog      /var/log/httpd/example.org-error.log
>>>  LogLevel warn
>>>
>>>  # log the deflate compression rate to a file
>>>  #CustomLog /var/log/apache2/deflate_log deflate
>>>
>>>  <IfModule mod_rewrite.c>
>>>    RewriteEngine On
>>>
>>>    # use RewriteLog to debug problems with your rewrite rules
>>>    # disable it after you found the error our your harddisk will be filled
>>> *very fast*
>>>    # RewriteLog "/var/log/apache2/rewrite_log"
>>>    # RewriteLogLevel 2
>>>
>>>    # serving icons from apache 2 server
>>>    RewriteRule ^/icons/ - [L]
>>>
>>>    # rewrite any other access to the zope server using a proxy [P] and add
>>> the VMH magic keywords
>>>    # use %{SERVER_NAME} instead of example.com to avoid busting the
>>> ServerAlias
>>>    # %{HTTP_HOST} is bad because it may contain the port
>>>    RewriteRule ^/(.*) \
>>>
>>> http://localhost:8080/VirtualHostBase/http/%{SERVER_NAME}:80/VirtualHostRoot/$1
>>> [L,P]
>>>  </IfModule>
>>>
>>>  <IfModule mod_proxy.c>
>>>     ProxyRequests On
>>>     ProxyVia On
>>>     <Proxy *>
>>>       Order Deny,Allow
>>>       Deny from all
>>>       Allow from 127.0.0.1
>>>    </Proxy>
>>>   </IfModule>
>>>
>>>
>>>  # caching (disabled)
>>>  # this caches every file with the correct caching informations starting
>>> at /
>>>  <IfModule mod_disk_cache.c>
>>>    #CacheEnable disk /
>>>  </IfModule>
>>>
>>>  # compression (disabled)
>>>  <IfModule mod_deflate.c>
>>>    #SetOutputFilter DEFLATE
>>>  </IfModule>
>>> </VirtualHost>
>>
>> Digitando l'IP via browser ottengo l'erroraccio 403 FORBIDDEN, o se gioco un
>> po' con le impostazioni mi ritrovo il 503 :-S
>>
>> Vorrei "soltanto" che tutte le chiamate sulla porta 80 venissero (per il
>> momento) redirette verso l'istanza Zope.
>> Sto forse chiedendo la luna?! O_O
>>
>> Grazie
>> Vito
>>
>>
>> --
>> "Design is the method of putting form and content together. Design, just as
>> art, has multiple definitions; there is no single definition. Design can be
>> art. Design can be aesthetics. Design is so simple, that's why it is so
>> complicated." by Paul Rand
>>
>> _______________________________________________
>> Plone-IT mailing list
>> Plone-IT a lists.plone.org
>> http://lists.plone.org/mailman/listinfo/plone-it
>> http://www.nabble.com/Plone---Italy-f21728.html
>>
>
> _______________________________________________
> Plone-IT mailing list
> Plone-IT a lists.plone.org
> http://lists.plone.org/mailman/listinfo/plone-it
> http://www.nabble.com/Plone---Italy-f21728.html
>



-- 
  bye
SauZheR
************************************
l'iterazione è umana...
la ricorsione, Divina!
************************************
reply to: sauzher AT gmail DOT com




Maggiori informazioni sulla lista Plone-IT