adeveloper
adeveloper

Reputation: 311

Hosting standalone web app in IIS (directing host name to local runnig web application)

There is a running stand alone web service running in windowserver its address http://localhost:1234, it starts running with double click of service.bat file,

In IIS, I have created a web site with hostname(myhostname) and set apps target folder as same path with service.bat,

and expected browsing from another computer like http://myhostname.com direct to this web app,

of course it doesnt work.. how can I achieve that?

Upvotes: 0

Views: 423

Answers (1)

Bruce Zhang
Bruce Zhang

Reputation: 3042

IIS won't actively execute a bat file, unless executed with the help of asp.net applications. And for security reasons, by default iis will block access to the bat file, and you need to set the permissions of the application pool. Not only the bat file, but the exe file is the same. When executing the exe file with the asp.net application, you need to set the file in the folder and add the application pool as the executable.(You can refer to this answer)

If you want to redirect to localhost:1234 by myhostname.com,you can use url rewrite or redirect module ,then enable proxy in arr. This is detail steps.

Upvotes: 1

Related Questions