2

I created spring boot api with gradle build. everything working fine in my local.

I deployed angular app in Sites/DefaultsTest in IIS web server. it run in https://example.app.com/app

SpringBoot API base path is '/api'

I want to deploy spring boot api in same windows server machine and should able to access through Angular App globally.

please guide me.

IIS WebServer Dashboard

1 Answer 1

3

As far as I know, the spring boot API is a java web application, we don't suggest you directly hosted the java web application in the IIS.

I suggest you could try to install a docker or using tomcat to host the application, then you could use IIS reverse proxy to redirect the request to that API to get the result.

More details about how host the spring boot application on the docker, you could refer to below article. https://blog.codecentric.de/en/2017/04/ansible-docker-windows-containers-spring-boot/

More details about how to use IIS reverse proxy, you could refer to below article.

https://blogs.msdn.microsoft.com/friis/2016/08/25/setup-iis-with-url-rewrite-as-a-reverse-proxy-for-real-world-apps/

Sign up to request clarification or add additional context in comments.

1 Comment

thanks for your time to respond my question, I will try and let you know.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.