mod_proxy.c configuration problem for a tomcat6-bridged situation

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

 



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@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>
====================================================
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@xxxxxxxxxxxxxxxx
  "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[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