Apache 2.2.3 & VirtualHost: help!

10 messages Options
Embed this post
Permalink
Vito

Apache 2.2.3 & VirtualHost: help!

Reply Threaded More More options
Print post
Permalink
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

Nel httpd.conf, alla fine, ho messo (poichè ora è solo in fase di test) queste righe:
[...]
<VirtualHost *:80>
 ServerAlias   test.miosito.it
 ServerAdmin   [hidden email]
 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
[hidden email]
http://lists.plone.org/mailman/listinfo/plone-it
http://www.nabble.com/Plone---Italy-f21728.html
silviot

Re: Apache 2.2.3 & VirtualHost: help!

Reply Threaded More More options
Print post
Permalink
On Thu, Oct 8, 2009 at 7:34 PM, Vito Falco <[hidden email]> 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   [hidden email]
>>  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
> [hidden email]
> http://lists.plone.org/mailman/listinfo/plone-it
> http://www.nabble.com/Plone---Italy-f21728.html
>

_______________________________________________
Plone-IT mailing list
[hidden email]
http://lists.plone.org/mailman/listinfo/plone-it
http://www.nabble.com/Plone---Italy-f21728.html
SauZheR at gOOgle

Re: Apache 2.2.3 & VirtualHost: help!

Reply Threaded More More options
Print post
Permalink
manca ServerName subito dopo <virtualhost...>


2009/10/8 Silvio <[hidden email]>:

> On Thu, Oct 8, 2009 at 7:34 PM, Vito Falco <[hidden email]> 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   [hidden email]
>>>  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
>> [hidden email]
>> http://lists.plone.org/mailman/listinfo/plone-it
>> http://www.nabble.com/Plone---Italy-f21728.html
>>
>
> _______________________________________________
> Plone-IT mailing list
> [hidden email]
> 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

_______________________________________________
Plone-IT mailing list
[hidden email]
http://lists.plone.org/mailman/listinfo/plone-it
http://www.nabble.com/Plone---Italy-f21728.html
Vito

Re: Apache 2.2.3 & VirtualHost: help!

Reply Threaded More More options
Print post
Permalink
In reply to this post by silviot
Ho provato sia il suggerimento di Silvio e sia (congiuntamente) quello di Alessandro, ma ora ottengo un errore 503:
Service Temporarily Unavailable
The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.
Apache/2.2.3 (Red Hat) Server at 80.17.x.x Port 80

Non ci sto capendo più niente :-S
Vito

2009/10/8 Silvio <[hidden email]>
On Thu, Oct 8, 2009 at 7:34 PM, Vito Falco <[hidden email]> 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   [hidden email]
>>  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
> [hidden email]
> http://lists.plone.org/mailman/listinfo/plone-it
> http://www.nabble.com/Plone---Italy-f21728.html
>

_______________________________________________
Plone-IT mailing list
[hidden email]
http://lists.plone.org/mailman/listinfo/plone-it
http://www.nabble.com/Plone---Italy-f21728.html



--
"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
[hidden email]
http://lists.plone.org/mailman/listinfo/plone-it
http://www.nabble.com/Plone---Italy-f21728.html
SauZheR at gOOgle

Re: Apache 2.2.3 & VirtualHost: help!

Reply Threaded More More options
Print post
Permalink
Credo che tu debba fare alternativamente o un proxymatch, o una
rewriterule, non entrambe.

Il service unavaliable spesso lo ottieni quando viene eseguita la
riscrittura su una porta sbagliata (magari zope non era avviato?!)

alessandro.


2009/10/9 Vito Falco <[hidden email]>:

> Ho provato sia il suggerimento di Silvio e sia (congiuntamente) quello di
> Alessandro, ma ora ottengo un errore 503:
>>
>> Service Temporarily Unavailable
>> The server is temporarily unable to service your request due to
>> maintenance downtime or capacity problems. Please try again later.
>> Apache/2.2.3 (Red Hat) Server at 80.17.x.x Port 80
>
> Non ci sto capendo più niente :-S
> Vito
>
> 2009/10/8 Silvio <[hidden email]>
>>
>> On Thu, Oct 8, 2009 at 7:34 PM, Vito Falco <[hidden email]> 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   [hidden email]
>> >>  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
>> > [hidden email]
>> > http://lists.plone.org/mailman/listinfo/plone-it
>> > http://www.nabble.com/Plone---Italy-f21728.html
>> >
>>
>> _______________________________________________
>> Plone-IT mailing list
>> [hidden email]
>> http://lists.plone.org/mailman/listinfo/plone-it
>> http://www.nabble.com/Plone---Italy-f21728.html
>
>
>
> --
> "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
> [hidden email]
> 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

_______________________________________________
Plone-IT mailing list
[hidden email]
http://lists.plone.org/mailman/listinfo/plone-it
http://www.nabble.com/Plone---Italy-f21728.html
SauZheR at gOOgle

Re: Apache 2.2.3 & VirtualHost: help!

Reply Threaded More More options
Print post
Permalink
hai risolto? :)

2009/10/9 SauZheR <[hidden email]>:

> Credo che tu debba fare alternativamente o un proxymatch, o una
> rewriterule, non entrambe.
>
> Il service unavaliable spesso lo ottieni quando viene eseguita la
> riscrittura su una porta sbagliata (magari zope non era avviato?!)
>
> alessandro.
>
>
> 2009/10/9 Vito Falco <[hidden email]>:
>> Ho provato sia il suggerimento di Silvio e sia (congiuntamente) quello di
>> Alessandro, ma ora ottengo un errore 503:
>>>
>>> Service Temporarily Unavailable
>>> The server is temporarily unable to service your request due to
>>> maintenance downtime or capacity problems. Please try again later.
>>> Apache/2.2.3 (Red Hat) Server at 80.17.x.x Port 80
>>
>> Non ci sto capendo più niente :-S
>> Vito
>>
>> 2009/10/8 Silvio <[hidden email]>
>>>
>>> On Thu, Oct 8, 2009 at 7:34 PM, Vito Falco <[hidden email]> 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   [hidden email]
>>> >>  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
>>> > [hidden email]
>>> > http://lists.plone.org/mailman/listinfo/plone-it
>>> > http://www.nabble.com/Plone---Italy-f21728.html
>>> >
>>>
>>> _______________________________________________
>>> Plone-IT mailing list
>>> [hidden email]
>>> http://lists.plone.org/mailman/listinfo/plone-it
>>> http://www.nabble.com/Plone---Italy-f21728.html
>>
>>
>>
>> --
>> "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
>> [hidden email]
>> 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
>



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

_______________________________________________
Plone-IT mailing list
[hidden email]
http://lists.plone.org/mailman/listinfo/plone-it
http://www.nabble.com/Plone---Italy-f21728.html
Vito

Re: Apache 2.2.3 & VirtualHost: help!

Reply Threaded More More options
Print post
Permalink
Sì,
grazie ad un grillo parlante che mi ha detto di controllare se SELINUX non interferisse con il proxing di Apache... e in effetti era così ;)

Vito

2009/10/13 SauZheR <[hidden email]>
hai risolto? :)

2009/10/9 SauZheR <[hidden email]>:
> Credo che tu debba fare alternativamente o un proxymatch, o una
> rewriterule, non entrambe.
>
> Il service unavaliable spesso lo ottieni quando viene eseguita la
> riscrittura su una porta sbagliata (magari zope non era avviato?!)
>
> alessandro.
>
>
> 2009/10/9 Vito Falco <[hidden email]>:
>> Ho provato sia il suggerimento di Silvio e sia (congiuntamente) quello di
>> Alessandro, ma ora ottengo un errore 503:
>>>
>>> Service Temporarily Unavailable
>>> The server is temporarily unable to service your request due to
>>> maintenance downtime or capacity problems. Please try again later.
>>> Apache/2.2.3 (Red Hat) Server at 80.17.x.x Port 80
>>
>> Non ci sto capendo più niente :-S
>> Vito
>>
>> 2009/10/8 Silvio <[hidden email]>
>>>
>>> On Thu, Oct 8, 2009 at 7:34 PM, Vito Falco <[hidden email]> 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   [hidden email]
>>> >>  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
>>> > [hidden email]
>>> > http://lists.plone.org/mailman/listinfo/plone-it
>>> > http://www.nabble.com/Plone---Italy-f21728.html
>>> >
>>>
>>> _______________________________________________
>>> Plone-IT mailing list
>>> [hidden email]
>>> http://lists.plone.org/mailman/listinfo/plone-it
>>> http://www.nabble.com/Plone---Italy-f21728.html
>>
>>
>>
>> --
>> "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
>> [hidden email]
>> 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
>



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

_______________________________________________
Plone-IT mailing list
[hidden email]
http://lists.plone.org/mailman/listinfo/plone-it
http://www.nabble.com/Plone---Italy-f21728.html



--
"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
[hidden email]
http://lists.plone.org/mailman/listinfo/plone-it
http://www.nabble.com/Plone---Italy-f21728.html
pepe

Re: Apache 2.2.3 & VirtualHost: help!

Reply Threaded More More options
Print post
Permalink
mi spieghi come hai fatto a risolvere che sto sbattendo la testa contro
un 403 forbidden da metá giornata?!
sono su un ubuntu locale e vorrei solo riuscire a creare un theme xdv ma
visto che non serve file statici devo fare passare il tutto via apache.

Vito Falco wrote:

> Sì,
> grazie ad un grillo parlante che mi ha detto di controllare se SELINUX
> non interferisse con il proxing di Apache... e in effetti era così ;)
>
> Vito
>
> 2009/10/13 SauZheR <[hidden email] <mailto:[hidden email]>>
>
>     hai risolto? :)
>
>     2009/10/9 SauZheR <[hidden email] <mailto:[hidden email]>>:
>     > Credo che tu debba fare alternativamente o un proxymatch, o una
>     > rewriterule, non entrambe.
>     >
>     > Il service unavaliable spesso lo ottieni quando viene eseguita la
>     > riscrittura su una porta sbagliata (magari zope non era avviato?!)
>     >
>     > alessandro.
>     >
>     >
>     > 2009/10/9 Vito Falco <[hidden email]
>     <mailto:[hidden email]>>:
>     >> Ho provato sia il suggerimento di Silvio e sia (congiuntamente)
>     quello di
>     >> Alessandro, ma ora ottengo un errore 503:
>     >>>
>     >>> Service Temporarily Unavailable
>     >>> The server is temporarily unable to service your request due to
>     >>> maintenance downtime or capacity problems. Please try again later.
>     >>> Apache/2.2.3 (Red Hat) Server at 80.17.x.x Port 80
>     >>
>     >> Non ci sto capendo più niente :-S
>     >> Vito
>     >>
>     >> 2009/10/8 Silvio <[hidden email] <mailto:[hidden email]>>
>     >>>
>     >>> On Thu, Oct 8, 2009 at 7:34 PM, Vito Falco
>     <[hidden email] <mailto:[hidden email]>> 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 <http://test.miosito.it>
>     >>> >>  ServerAdmin   [hidden email]
>     <mailto:[hidden email]>
>     >>> >>  ServerSignature On
>     >>> >>
>     >>> >>  # we don't need a DocumentRoot for a zope only sites
>     >>> >>  #DocumentRoot  /var/www/example.org <http://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
>     <http://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
>     <http://localhost:8080/VirtualHostBase/http/%%7BSERVER_NAME%7D: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
>     >>> > [hidden email] <mailto:[hidden email]>
>     >>> > http://lists.plone.org/mailman/listinfo/plone-it
>     >>> > http://www.nabble.com/Plone---Italy-f21728.html
>     >>> >
>     >>>
>     >>> _______________________________________________
>     >>> Plone-IT mailing list
>     >>> [hidden email] <mailto:[hidden email]>
>     >>> http://lists.plone.org/mailman/listinfo/plone-it
>     >>> http://www.nabble.com/Plone---Italy-f21728.html
>     >>
>     >>
>     >>
>     >> --
>     >> "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
>     >> [hidden email] <mailto:[hidden email]>
>     >> 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
>     >
>
>
>
>     --
>      bye
>     SauZheR
>     ************************************
>     l'iterazione è umana...
>     la ricorsione, Divina!
>     ************************************
>     reply to: sauzher AT gmail DOT com
>
>     _______________________________________________
>     Plone-IT mailing list
>     [hidden email] <mailto:[hidden email]>
>     http://lists.plone.org/mailman/listinfo/plone-it
>     http://www.nabble.com/Plone---Italy-f21728.html
>
>
>
>
> --
> "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
> [hidden email]
> http://lists.plone.org/mailman/listinfo/plone-it
> http://www.nabble.com/Plone---Italy-f21728.html

_______________________________________________
Plone-IT mailing list
[hidden email]
http://lists.plone.org/mailman/listinfo/plone-it
http://www.nabble.com/Plone---Italy-f21728.html
pepe

Re: Apache 2.2.3 & VirtualHost: help!

Reply Threaded More More options
Print post
Permalink
ok ho risolto anch io!!

il problema sta tra:

http://localhost:8080/VirtualHostBase/http/%{SERVER_NAME}:80/VirtualHostRoot/$1

e

<ProxyMatch http://127.0.0.1:[0-9]+/.*>

visto che la rewrite é configurata su "localhost" e il proxymatch su
127.0.0.1!


pepe wrote:

> mi spieghi come hai fatto a risolvere che sto sbattendo la testa contro
> un 403 forbidden da metá giornata?!
> sono su un ubuntu locale e vorrei solo riuscire a creare un theme xdv ma
> visto che non serve file statici devo fare passare il tutto via apache.
>
> Vito Falco wrote:
>  
>> Sì,
>> grazie ad un grillo parlante che mi ha detto di controllare se SELINUX
>> non interferisse con il proxing di Apache... e in effetti era così ;)
>>
>> Vito
>>
>> 2009/10/13 SauZheR <[hidden email] <mailto:[hidden email]>>
>>
>>     hai risolto? :)
>>
>>     2009/10/9 SauZheR <[hidden email] <mailto:[hidden email]>>:
>>     > Credo che tu debba fare alternativamente o un proxymatch, o una
>>     > rewriterule, non entrambe.
>>     >
>>     > Il service unavaliable spesso lo ottieni quando viene eseguita la
>>     > riscrittura su una porta sbagliata (magari zope non era avviato?!)
>>     >
>>     > alessandro.
>>     >
>>     >
>>     > 2009/10/9 Vito Falco <[hidden email]
>>     <mailto:[hidden email]>>:
>>     >> Ho provato sia il suggerimento di Silvio e sia (congiuntamente)
>>     quello di
>>     >> Alessandro, ma ora ottengo un errore 503:
>>     >>>
>>     >>> Service Temporarily Unavailable
>>     >>> The server is temporarily unable to service your request due to
>>     >>> maintenance downtime or capacity problems. Please try again later.
>>     >>> Apache/2.2.3 (Red Hat) Server at 80.17.x.x Port 80
>>     >>
>>     >> Non ci sto capendo più niente :-S
>>     >> Vito
>>     >>
>>     >> 2009/10/8 Silvio <[hidden email] <mailto:[hidden email]>>
>>     >>>
>>     >>> On Thu, Oct 8, 2009 at 7:34 PM, Vito Falco
>>     <[hidden email] <mailto:[hidden email]>> 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 <http://test.miosito.it>
>>     >>> >>  ServerAdmin   [hidden email]
>>     <mailto:[hidden email]>
>>     >>> >>  ServerSignature On
>>     >>> >>
>>     >>> >>  # we don't need a DocumentRoot for a zope only sites
>>     >>> >>  #DocumentRoot  /var/www/example.org <http://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
>>     <http://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
>>     <http://localhost:8080/VirtualHostBase/http/%%7BSERVER_NAME%7D: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
>>     >>> > [hidden email] <mailto:[hidden email]>
>>     >>> > http://lists.plone.org/mailman/listinfo/plone-it
>>     >>> > http://www.nabble.com/Plone---Italy-f21728.html
>>     >>> >
>>     >>>
>>     >>> _______________________________________________
>>     >>> Plone-IT mailing list
>>     >>> [hidden email] <mailto:[hidden email]>
>>     >>> http://lists.plone.org/mailman/listinfo/plone-it
>>     >>> http://www.nabble.com/Plone---Italy-f21728.html
>>     >>
>>     >>
>>     >>
>>     >> --
>>     >> "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
>>     >> [hidden email] <mailto:[hidden email]>
>>     >> 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
>>     >
>>
>>
>>
>>     --
>>      bye
>>     SauZheR
>>     ************************************
>>     l'iterazione è umana...
>>     la ricorsione, Divina!
>>     ************************************
>>     reply to: sauzher AT gmail DOT com
>>
>>     _______________________________________________
>>     Plone-IT mailing list
>>     [hidden email] <mailto:[hidden email]>
>>     http://lists.plone.org/mailman/listinfo/plone-it
>>     http://www.nabble.com/Plone---Italy-f21728.html
>>
>>
>>
>>
>> --
>> "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
>> [hidden email]
>> http://lists.plone.org/mailman/listinfo/plone-it
>> http://www.nabble.com/Plone---Italy-f21728.html
>>    
>
> _______________________________________________
> Plone-IT mailing list
> [hidden email]
> http://lists.plone.org/mailman/listinfo/plone-it
> http://www.nabble.com/Plone---Italy-f21728.html
>
>  

_______________________________________________
Plone-IT mailing list
[hidden email]
http://lists.plone.org/mailman/listinfo/plone-it
http://www.nabble.com/Plone---Italy-f21728.html
Vito

Re: Apache 2.2.3 & VirtualHost: help!

Reply Threaded More More options
Print post
Permalink
In reply to this post by pepe
Ciao,
premesso che non sono sistemista... ubuntu implementa SE LINUX?
SE sì, basta metterlo in modalità "permissiva".
Io ho fatto così per il mio problema.

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
[hidden email]
http://lists.plone.org/mailman/listinfo/plone-it
http://www.nabble.com/Plone---Italy-f21728.html