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

  • Home
  • SEARCH
  • 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 6115219
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T15:03:58+00:00 2026-05-23T15:03:58+00:00

After my unsuccessful attempt with: Tomcat secure access Does anyone know how I can

  • 0

After my unsuccessful attempt with:
Tomcat secure access

Does anyone know how I can run a single Tomcat instance serving one WAR (or specific servlet) over one port and another WAR (or specific servlet) under another?

(My objective is to have one servlet/app with client authentication and another one with no authentication at all. It seems rather strange to me that Tomcat is white or black: or everything is secured or nothing is).

Thanks.

  • 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-23T15:03:58+00:00Added an answer on May 23, 2026 at 3:03 pm

    You can set up as many connectors as you wish within the server.xml:

    <Connector port="80" redirectPort="8443"/>    
    <Connector port="8080" redirectPort="8443"/>    
    <Connector port="999" redirectPort="8443"/>
    <Connector port="8443" maxHttpHeaderSize="8192"
                   enableLookups="false" disableUploadTimeout="true"
                   acceptCount="100" scheme="https" secure="true"
                   clientAuth="false" sslProtocol="TLS" />
    

    You can also set up secure / HTTPS ports. Then you can instruct you app to only allow secure connections(hence the purpose of the redirect port) or add code to find out which port is being used by the connection (a bit hacky).

    However, an easier approach would just be to have multiple Tomcat installations – one setup and running your secure app, the other doing the non-secure apps – each running on their own ports.

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

Sidebar

Related Questions

after the unsuccessful attempt to use Scala with NetBeans (Code Completion still doesn't work).
After an extensive unsuccessful search I hope you guys can help me out here...
I've encountered a problem with my Netbeans 6.1 IDE. After an unsuccessful update, Netbeans
I'm making a call to PayPal's credit card processor, and after a successful/unsuccessful transaction
I have a problem repopulating a set of checkboxes after an unsuccessful form validation
I try to do research about Lock out users after three unsuccessful attempts without
I've tried the following, but I was unsuccessful: ALTER TABLE person ALTER COLUMN dob
After I submit the form unsuccessfully, the form looses all the values I typed
After reading the Head First Design Patterns book and using a number of other
After the suggestion to use a library for my ajax needs I am going

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.