Apache Error: client denied by server configuration:

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Apache Error: client denied by server configuration:

Ramiro Diaz Trepat-2
Hey beach bums,
I have been trying to run a seaside image behind an apache2 reverse proxy without success, in spite that have read and based my virtualhost configuration on the instractions given by both Ramón on his blog and on the new seaside book.  I am obviously making a mistake but I can't tell where.
Basically I can access static files (served by my virtual host) but the rewrites for the seaside server produce the Forbidden error (403) with the loged message that is on the subject.
It somehow seems to be a permissions issue on /

My virtual host file looks like this now:

<VirtualHost *:80>

    # set server name
    ServerName myapp.mydomain.com
    ProxyPreserveHost On
    ProxyRequests Off
    RewriteEngine On
    UseCanonicalName Off

    # configure static file serving
    DocumentRoot /var/www/myapp
    <Directory /var/www/myapp>
        Order deny,allow
        Allow from all
    </Directory>

    # rewrite incoming requests
    RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} !-f
    RewriteRule ^/(.*)$ http://localhost:8080/myapp/$1 [proxy,last]

    # http compression
    DeflateCompressionLevel 5
    SetOutputFilter DEFLATE
    AddOutputFilterByType DEFLATE text/html text/plain text/xml application/xml application/xhtml+xml text/javascript text/css
    BrowserMatch ^Mozilla/4 gzip-only-text/html
    BrowserMatch ^Mozilla/4.0[678] no-gzip
    BrowserMatch \bMSIE !no-gzip !gzip-only-text/html

    ErrorLog  /var/log/apache2/myapp.error.log
    CustomLog /var/log/apache2/myapp.access.log combined

</VirtualHost>


I will appreciate very much any hint,  thanks.

r.


_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: Apache Error: client denied by server configuration:

Ramiro Diaz Trepat-2
I have written how to solve this issue that everyone running on a Debian based Linux with the latest apache will face, as a comment on the seaside book:

http://book.seaside.st/book/advanced/deployment/deployment-apache/configure-apache

Cheers

r.


On Fri, Sep 18, 2009 at 12:24 AM, Ramiro Diaz Trepat <[hidden email]> wrote:
Hey beach bums,
I have been trying to run a seaside image behind an apache2 reverse proxy without success, in spite that have read and based my virtualhost configuration on the instractions given by both Ramón on his blog and on the new seaside book.  I am obviously making a mistake but I can't tell where.
Basically I can access static files (served by my virtual host) but the rewrites for the seaside server produce the Forbidden error (403) with the loged message that is on the subject.
It somehow seems to be a permissions issue on /

My virtual host file looks like this now:

<VirtualHost *:80>

    # set server name
    ServerName myapp.mydomain.com
    ProxyPreserveHost On
    ProxyRequests Off
    RewriteEngine On
    UseCanonicalName Off

    # configure static file serving
    DocumentRoot /var/www/myapp
    <Directory /var/www/myapp>
        Order deny,allow
        Allow from all
    </Directory>

    # rewrite incoming requests
    RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} !-f
    RewriteRule ^/(.*)$ http://localhost:8080/myapp/$1 [proxy,last]

    # http compression
    DeflateCompressionLevel 5
    SetOutputFilter DEFLATE
    AddOutputFilterByType DEFLATE text/html text/plain text/xml application/xml application/xhtml+xml text/javascript text/css
    BrowserMatch ^Mozilla/4 gzip-only-text/html
    BrowserMatch ^Mozilla/4.0[678] no-gzip
    BrowserMatch \bMSIE !no-gzip !gzip-only-text/html

    ErrorLog  /var/log/apache2/myapp.error.log
    CustomLog /var/log/apache2/myapp.access.log combined

</VirtualHost>


I will appreciate very much any hint,  thanks.

r.



_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: Re: Apache Error: client denied by server configuration:

Lukas Renggli
Thank you. We will incorporate what you wrote into the book as soon as possible.

Cheers,
Lukas

2009/9/19 Ramiro Diaz Trepat <[hidden email]>:

> I have written how to solve this issue that everyone running on a Debian
> based Linux with the latest apache will face, as a comment on the seaside
> book:
>
> http://book.seaside.st/book/advanced/deployment/deployment-apache/configure-apache
>
> Cheers
>
> r.
>
>
> On Fri, Sep 18, 2009 at 12:24 AM, Ramiro Diaz Trepat
> <[hidden email]> wrote:
>>
>> Hey beach bums,
>> I have been trying to run a seaside image behind an apache2 reverse proxy
>> without success, in spite that have read and based my virtualhost
>> configuration on the instractions given by both Ramón on his blog and on the
>> new seaside book.  I am obviously making a mistake but I can't tell where.
>> Basically I can access static files (served by my virtual host) but the
>> rewrites for the seaside server produce the Forbidden error (403) with the
>> loged message that is on the subject.
>> It somehow seems to be a permissions issue on /
>>
>> My virtual host file looks like this now:
>>
>> <VirtualHost *:80>
>>
>>     # set server name
>>     ServerName myapp.mydomain.com
>>     ProxyPreserveHost On
>>     ProxyRequests Off
>>     RewriteEngine On
>>     UseCanonicalName Off
>>
>>     # configure static file serving
>>     DocumentRoot /var/www/myapp
>>     <Directory /var/www/myapp>
>>         Order deny,allow
>>         Allow from all
>>     </Directory>
>>
>>     # rewrite incoming requests
>>     RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} !-f
>>     RewriteRule ^/(.*)$ http://localhost:8080/myapp/$1 [proxy,last]
>>
>>     # http compression
>>     DeflateCompressionLevel 5
>>     SetOutputFilter DEFLATE
>>     AddOutputFilterByType DEFLATE text/html text/plain text/xml
>> application/xml application/xhtml+xml text/javascript text/css
>>     BrowserMatch ^Mozilla/4 gzip-only-text/html
>>     BrowserMatch ^Mozilla/4.0[678] no-gzip
>>     BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
>>
>>     ErrorLog  /var/log/apache2/myapp.error.log
>>     CustomLog /var/log/apache2/myapp.access.log combined
>>
>> </VirtualHost>
>>
>>
>> I will appreciate very much any hint,  thanks.
>>
>> r.
>>
>
>
> _______________________________________________
> seaside mailing list
> [hidden email]
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>
>



--
Lukas Renggli
http://www.lukas-renggli.ch
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: Re: Apache Error: client denied by server configuration:

Ramiro Diaz Trepat-2
Cool, I'm glad to add a little grain of sand :)



On Sat, Sep 19, 2009 at 9:48 AM, Lukas Renggli <[hidden email]> wrote:
Thank you. We will incorporate what you wrote into the book as soon as possible.

Cheers,
Lukas

2009/9/19 Ramiro Diaz Trepat <[hidden email]>:
> I have written how to solve this issue that everyone running on a Debian
> based Linux with the latest apache will face, as a comment on the seaside
> book:
>
> http://book.seaside.st/book/advanced/deployment/deployment-apache/configure-apache
>
> Cheers
>
> r.
>
>
> On Fri, Sep 18, 2009 at 12:24 AM, Ramiro Diaz Trepat
> <[hidden email]> wrote:
>>
>> Hey beach bums,
>> I have been trying to run a seaside image behind an apache2 reverse proxy
>> without success, in spite that have read and based my virtualhost
>> configuration on the instractions given by both Ramón on his blog and on the
>> new seaside book.  I am obviously making a mistake but I can't tell where.
>> Basically I can access static files (served by my virtual host) but the
>> rewrites for the seaside server produce the Forbidden error (403) with the
>> loged message that is on the subject.
>> It somehow seems to be a permissions issue on /
>>
>> My virtual host file looks like this now:
>>
>> <VirtualHost *:80>
>>
>>     # set server name
>>     ServerName myapp.mydomain.com
>>     ProxyPreserveHost On
>>     ProxyRequests Off
>>     RewriteEngine On
>>     UseCanonicalName Off
>>
>>     # configure static file serving
>>     DocumentRoot /var/www/myapp
>>     <Directory /var/www/myapp>
>>         Order deny,allow
>>         Allow from all
>>     </Directory>
>>
>>     # rewrite incoming requests
>>     RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} !-f
>>     RewriteRule ^/(.*)$ http://localhost:8080/myapp/$1 [proxy,last]
>>
>>     # http compression
>>     DeflateCompressionLevel 5
>>     SetOutputFilter DEFLATE
>>     AddOutputFilterByType DEFLATE text/html text/plain text/xml
>> application/xml application/xhtml+xml text/javascript text/css
>>     BrowserMatch ^Mozilla/4 gzip-only-text/html
>>     BrowserMatch ^Mozilla/4.0[678] no-gzip
>>     BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
>>
>>     ErrorLog  /var/log/apache2/myapp.error.log
>>     CustomLog /var/log/apache2/myapp.access.log combined
>>
>> </VirtualHost>
>>
>>
>> I will appreciate very much any hint,  thanks.
>>
>> r.
>>
>
>
> _______________________________________________
> seaside mailing list
> [hidden email]
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>
>



--
Lukas Renggli
http://www.lukas-renggli.ch
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside


_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside