Re: mod_proxy.c configuration problem for a tomcat6-bridged situation

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Eric Covener wrote:
On Mon, Jan 4, 2010 at 12:38 PM, Alvise Nicoletti
<lists@xxxxxxxxxxxxxxxxxxx> 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@xxxxxxxxxxxxxxxxx"
       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>

[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux