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
  • 0 Views
  • 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

How do you configure tomcat to bind to a single ip address (localhost) instead
Is it possible to configure the default file extension that Oracle's Pro*COBOL precompiler assumes
I use _vimrc to configure my vim 7.2 (windows) default settings. One setting set
In the filesystem I have /file.aspx /directory/default.aspx I want to configure IIS so that
Is it possible to configure nHibernate to connect to Paradox database ( *.db files)?
I'm trying to configure a dedicated server that runs ASP.NET to send mail through
I have configured my default page to be say abcd.aspx and is under ~/View//abcd.aspx
Is it possible to configure xampp to serve up a file outside of the
Is there anyway to configure a WCF service with a failover endpoint if the
How would one configure trac to allow anonymous submission of tickets?

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.