httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alvise Nicoletti <li...@alvisenicoletti.com>
Subject Re: [users@httpd] mod_proxy.c configuration problem for a tomcat6-bridged situation
Date Wed, 06 Jan 2010 11:04:37 GMT
Eric Covener wrote:
> On Mon, Jan 4, 2010 at 12:38 PM, Alvise Nicoletti
> <lists@alvisenicoletti.com> wrote:
>   
>> ====================================================
>> That is the configuration that I tryed and it's not working:
>>       <Proxy *>
>>               AddDefaultCharset off
>>               Order deny,allow
>>               Deny from all
>> #             Allow from www.TOMCATWEBSITE.com
>>       </Proxy>
>> ====================================================
>>     
>
> "Allow" restricts the client, or browser, address/hostname.  You seem
> to have listed your origin (backend) server instead.
>
> What were you trying to restrict?
>
>   
Hi ...

This is my ACTUAL configuration:
<IfModule mod_proxy.c>
        ProxyRequests Off
        <Proxy *>
                AddDefaultCharset off
        </Proxy>
        ProxyVia On
</IfModule>
So I'm open like a californian beach.

I would like to restrict access to everything-but-mywebsite like the 
example:

<IfModule mod_proxy.c>
        ProxyRequests Off
        <Proxy *>
                AddDefaultCharset off
                Order deny,allow
                Deny from all

                Allow from www.TOMCATWEBSITE.com
        </Proxy>
        ProxyVia On
</IfModule>

But this is not making work the tomcat6-apache2 bridge.
So I need your help to understand the right configuration.

This is the TOMCATWEBSITE.COM virtual host conf:
<VirtualHost *:80>
       ServerAdmin  "webmaster@TOMCATWEBSITE.com"
       ServerName www.TOMCATWEBSITE.com

       ProxyPreserveHost   On
       ProxyPass / http://www.TOMCATWEBSITE.com:8080/
       ProxyPassReverse / http://www.TOMCATWEBSITE.com:8080/
       ProxyPassReverseCookieDomain www.TOMCATWEBSITE.com:8080 
www.TOMCATWEBSITE.com
       ProxyPassReverseCookiePath / /

       LogLevel warn
       CustomLog /var/log/apache2/TOMCATWEBSITE_access.log vhost_combined
       ErrorLog /var/log/apache2/TOMCATWEBSITE_error.log


       RewriteEngine on
       RewriteRule ^/TOMCATWEBSITE/(.*)$ http://www.TOMCATWEBSITE.com/$1 
[L]
       <location "/WEB-INF/">
               # AllowOverride None
               deny from all
       </location>

</VirtualHost>

Mime
View raw message