Proxy Reverso Tomcat 6

0 respostas
Tuor

Estou com dificuldades em configurar o proxy reverso no Apache Tomcat 6.

Pelo que entendi da explicação deste link [url]http://tomcat.apache.org/tomcat-6.0-doc/proxy-howto.html[/url]

A seguinte configuração do arquivo httpd.conf seria suficiente:

LoadModule proxy_module  /usr/lib/apache2/modules/mod_proxy.so
AddModule  mod_proxy.c


LoadModule proxy_http_module  /usr/lib/apache2/modules/mod_proxy_http.so
AddModule  mod_proxy_http.c



ProxyRequests Off
ProxyPreserveHost On


ProxyPass /arcgis/services http://192.168.100.100:8399/arcgis/services

ProxyPassReverse /arcgis/services http://192.168.100.100:8399/arcgis/services



ProxyPass /arcgis/rest http://192.168.100.100:8399/arcgis/rest

ProxyPassReverse /arcgis/rest http://192.168.100.100:8399/arcgis/rest



ProxyPass /arcgis/sdk/rest http://192.168.100.100:8399/arcgis/sdk/rest

ProxyPassReverse /arcgis/sdk/rest http://192.168.100.100:8399/arcgis/sdk/rest



ProxyPass /arcgis/tokens http://192.168.100.100/arcgis/tokens

ProxyPassReverse /arcgis/tokens http://192.168.100.100/arcgis/tokens



ProxyPass /arcgis/server/proxyoutput/ http://192.168.100.100:8399/arcgis/server/proxyoutput/

ProxyPassReverse /arcgis/server/proxyoutput/ http://192.168.100.100:8399/arcgis/server/proxyoutput/


ProxyPass /arcgis/server/proxyjobs/ http://192.168.100.100:8399/arcgis/server/proxyjobs/

ProxyPassReverse /arcgis/server/proxyjobs/ http://192.168.100.100:8399/arcgis/server/proxyjobs/


ProxyPass /arcgis/server/proxycache/ http://192.168.100.100:8399/arcgis/server/proxycache/

ProxyPassReverse /arcgis/server/proxycache/ http://192.168.100.100:8399/arcgis/server/proxycache/


<Location "/arcgis">
  # Configurations specific to this location. Add what you need.
  # For instance, you can add mod_proxy_html directives to fix
  # links in the HTML code. See link at end of this page about using
  # mod_proxy_html.

  # Allow access to this proxied URL location for everyone.
  Order allow,deny
  Allow from all
</Location>

Já tentei inúmeras variações, até acrescentei algumas coisas a mais, mas não sei nem se o arquivo está sendo lido pelo apache. O arquivo httpd.conf estava em branco inicialmente.

Alguém tem alguma idéia do que pode estar errado?

Criado 9 de junho de 2010
Respostas 0
Participantes 1