Using Windows Server IIS to redirect traffic

I have a windows application that has it own built-in web server using https:// as https://localhost:10880/api/v1/companies/ 

It has a self-generated SSL certificate that I can't change nor add a valid certificate. I have asked the developer of the application and they are just ignoring my request

I like to use IIS web server to redirect http://app.example.com:8080 to https://localhost:10880

I have created an A Record for app.example.com pointing the IP of the server where the application is installed

Is this possible and if so how would I do this?
LVL 1
GerhardpetAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Dan McFaddenSystems EngineerCommented:
Unfortunately, most client computers will think that localhost is their computer and not the Server's local host.

You will need to use IIS as a reverse proxy for the localhost application.

In essenence, your clients/users will go to a URL of your choosing and IIS will collect the request, do a transfer between it and the locahost app and then forward (for lack of a better term( the content to the origin.

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

Also, I recommend using the default port 80 and not 8080.

Dan
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Dan McFaddenSystems EngineerCommented:
Also note the link at the bottom of the article as it references typical issues with this setup.

Reference Link:  https://blogs.msdn.microsoft.com/friis/2016/08/25/iis-with-url-rewrite-as-a-reverse-proxy-part-2-dealing-with-500-52-status-codes/

Dan
0
MaheshArchitectCommented:
redirection to localhost is not possible
localhost stands for self
you can create host A record with whatever name you wish and access web site
you will get certificate warning as it is self signed cert, however you can install 3rd party / internal CA generated cert on IIS server and it will work
Developer would not want to help in this regards, because he is list bothered about cert, as a server admin you need to take initiative and do the cert changes on IIS level
U will get plenty of posts stating how to create new cert (internal / public) and apply to IIS
0
GerhardpetAuthor Commented:
I got it to work. Thanks for the help and link
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows OS

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.