Title: Is there any way to allow https to only selective application in Tomcat?
Tags: java;tomcat;https;tomcat8
Question: I have a jax-ws based web application which is deployed to tomcat as a WAR file (XYZ.war), there are some other applications as well deployed.
I have configured https using self signed jks file and have configured connector in setting.xml file of tomcat. But it applies to all the web applications which are deployed.
Is there any way to only allow https to this particular application(XYZ) in Tomcat?
Comment: Is this a public site?  Is there a reason the other web apps can't use HTTPS?  There is a single listener so you can't really split them out.  But there are free SSL providers and your site may as well be completely protected.



{'source': 'StackExchangeDataset', 'subset': 'stackoverflow.com', 'metadata': {'AnswerCount': 0, 'CommentCount': 1, 'ContentLicense': 'CC BY-SA 4.0', 'CreationDate': '2021:00:07/15/21', 'FavoriteCount': None, 'PostTypeId': 1, 'Tags': '<java><tomcat><https><tomcat8>', 'Title': 'Is there any way to allow https to only selective application in Tomcat?', 'ViewCount': 27, 'id': 68392067, 'user_AboutMe': None, 'user_AccountId': 7980250.0, 'user_DisplayName': 'Tejas Ghonge', 'user_Reputation': 55.0, 'user_Views': 11.0, 'user_id': 6021873.0}}