How to set the tomcat to act as a proxy server?

15,996

Solution 1

No, as far as I know tomcat cannot be configured to act as a proxy server. With programming of course everything is possible.

On the other hand nothing prevents you from deploying on it e.g. Apache MINA library and a couple of classes to configure it as a proxy server. Then you have a proxy server which can be deployed as part of your tomcat solution. But this has nothing to do with tomcat, other than that it happens to start the thing.

Solution 2

You can do this by using a web app to do the http proxy. There are several ready-to-go web apps that you can use. J2EP seems to work fine, and there are others

Share:
15,996
Rakesh Juyal
Author by

Rakesh Juyal

Actively seeking new opportunities.

Updated on June 05, 2022

Comments

  • Rakesh Juyal
    Rakesh Juyal about 2 years

    Can i use Apache Tomcat to behave like a proxy server? I know there are other methods also, to create a proxy server [ using HTTP/Socks-5 , using google app engine, blah blah ]

    The answer can be simply, No . or if it is possible to create a proxy server using Tomcat then please let us know.