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