httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alvise Nicoletti <li...@alvisenicoletti.com>
Subject [users@httpd] mod_proxy.c configuration problem for a tomcat6-bridged situation
Date Mon, 04 Jan 2010 17:38:15 GMT
Hi everyone.

I successfully managed to configure a apache2 installation to show me a 
tomcat6 (port 8080) on the port 80 of a certain domain.

However, to do this, I had to comment all the raws of the file:
/etc/apache2/mods-enabled/proxy.conf
So actually it's "allow from all"

I know that this is dangerous, so I'm asking help to you on how to 
configure things, because I tryed everything but the bridge don't works.

====================================================
This is the bridge with the virtualhost:
<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>
====================================================
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>
====================================================


Thank you.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message