Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3493830
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T11:55:53+00:00 2026-05-18T11:55:53+00:00

I configure a default tomcat installation (running on localhost at port 8080) as a

  • 0

I configure a default tomcat installation (running on “localhost” at port “8080”) as a proxy server in my browser and try to connect to http://www.google.com.

I would expect either an error message saying tomcat is not configured as a proxy server or I should get the contents of google website.

Instead I get the index.html page of my tomcat installation.

What is going wrong?

  • 1 1 Answer
  • 1 View
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T11:55:54+00:00Added an answer on May 18, 2026 at 11:55 am

    Tomcat doesn’t know that it’s supposed to proxy the request. All it knows is that your browser showed up and asked it for something, like this:

    GET http://www.google.com/example HTTP/1.1
    [plus other headers]
    

    With Apache HTTPD, you might have configuration such that when a request shows up for a host that’s not itself, it acts as a proxy for the request.

    Tomcat is not generally used as a proxy. Tomcat is however frequently used behind a reverse proxy where the request may be for something like “www.google.com” which may be relayed back to Tomcat as the site it’s supposed to be serving. Tomcat’s standard configuration pretty much accepts the host specified as its own, and adopts it for the purpose of creating absolute references to itself, with the assumption that if a request got to it, it was legitimate. You can of course alter this behavior with configuration, but if you don’t, Tomcat is pretty much going to try to serve what you requested from its set of applications, assuming you knew what you were doing with the Host header.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

The default port for Tomcat (and other secondary web servers/servlet containers) is 8080. If
I configure the default document of site http://www.modapik.com as index.aspx in both IIS and
when i try access my webapplication with link http://localhost:8080/MyWebApp/login.do It works fine but when
I'm running a Tomcat server with some virtual hosts and I need to POST
I need to configure the default maxHttpHeaderSize on the HTTP connector and I cant
I have created a UItableView using the default Xcode template and configure it to
I'm running Tomcat in standalone mode. The standalone part is very important: I am
I have a default package w/ an interceptor configure, and i'm extending that package
I want to configure my app to use a different schema than the default
The correct answer to question [1] below is: Configure SrvA with no default gateway

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.