Questions tagged [httpplatformhandler]

HttpPlatformHandler is an out-of-band module to enable general HTTP applications on IIS, including but not limited to Java/Python/Node.js/Go/Ruby.

When Microsoft developed Azure more than a decade ago, there was a need to enable general HTTP applications (Java/Python/Node.js/Go/Ruby and more). Since technologies like FastCGI were not applicable to such scenarios, HttpPlatformHandler was developed and published to fill the gaps.

HttpPlatformHandler is fully supported on IIS 8-10. Please note that articles like this is irrelevant if you host Java/Python/Node.js/Ruby/Go applications.

18 questions
9
votes
2 answers

HttpPlatformHandler HTTP Error 502.3 - Bad Gateway

I am trying to run rails on IIS, I followed the steps mentioned here by Scott Hanselman. Here's some info that might help: Rails version: 5.1.4 Ruby version: 2.3.3 After I followed the setup steps, I countered this issue HTTP Error 502.3 - Bad…
Mahmoud Sayed
  • 668
  • 5
  • 18
1
vote
1 answer

Flask IIS Webapp Attempting to Get User IP Address

I am attempting to deploy a Flask webapp onto IIS. First, I used standard suggestions (Flask, IIS, wfastcgi). This method allowed me to correctly see the IPs of users using ip = request.environ.get('HTTP_X_REAL_IP', request.remote_addr) For various…
David Yang
  • 2,101
  • 13
  • 28
  • 46
1
vote
1 answer

Bad Gateway = Timeout from IIS Platform with python waitress

I'm getting a bad gateway due to a timeout of 2 minutes but I don't now how to configure it, the following is what I have tried. So, first of all, in python I'm setting a 120 second timeout (I don't want to change this, I've tried with 115 seconds…
user11323942
1
vote
3 answers

How to get the authenticated user name in Python when fronting it with IIS HTTP PlatformHandler and using Windows auth?

HttpPlatformHandler supports forwarding the auth token by enabling the forwardWindowsAuthToken setting in the web.config. This sounds like a useful feature when needing to use Windows Integrated Authentication. The document on this is very vague…
1
vote
0 answers

Application.css/.js not compiling when using Rails with HttpPlatformHandler and IIS 8/jRuby

I am trying to get a Rails application to run using jRuby and IIS as a production web server. After a few weeks of trying, I followed this tutorial using HttpPlatformHandler and IIS 8. The Rails app is now running however the application.css and…
TheFlanman91
  • 141
  • 1
  • 2
  • 11
1
vote
1 answer

Host Sinatra app in IIS with HttpPlatformHandler

I have read every thread/blog I can find regarding the httpplatformhandler product but I am still unsure if I am able to host a Sinatra (NON ruby on rails) app in IIS using the HttpPlatformHandler. Is this possible? I see examples for rails, but I…
Charlie Baum
  • 107
  • 1
  • 3
  • 15
0
votes
0 answers

Flask IIS error ModuleNotFoundError: No module named 'markupsafe'

I have created a simple python code to test Flask and IIS as follows: from flask import Flask def create_app(): app = Flask(__name__) @app.route("/") def hello_world(): return "

Hello, World!

" return app I have…
Calango
  • 155
  • 2
  • 15
0
votes
0 answers

Why would the requestTimeout option give an error when seconds are specified?

I am finding that if requestTimeout is set to a value with seconds, the client app gets an immediate Bad Gateway error. For example requestTimeout="00:02:30". If I use whole minutes it works as expected. The app I am running is written in…
Roland Smith
  • 957
  • 4
  • 7
0
votes
3 answers

What's the proper way to host Nuxt.js web app on IIS?

I use IIS in Windows to run several web page servers. And this time, I studied Nuxt.js. Build a project created with Nuxt.js using the "npm run build" command. I know that if you go into that folder and "npm run dev", the server opens on port…
0
votes
0 answers

How can my httpPlatformHandler service determine the caller IP Address

I wrote a httpPlatformHandler service using C++ which seems to work well. I actually have two questions. 1 - How can I determine the client IP address? The Winsock function getpeername only returns the IP of the machine IIS is running on. 2 - How…
Roland Smith
  • 957
  • 4
  • 7
0
votes
1 answer

Flask Web App with Windows Authentication

I have Flask app on IIS similiar to this tutorial : https://medium.com/@nerdijoe/how-to-deploy-flask-on-iis-with-windows-authentication-733839d657b7 but I'm using httpPlatformHandler instead of FastCGI. With web.config as below I get None in …
0
votes
1 answer

Node Express JS in IIS with HttpPlatformHandler

I'm getting an error Cannot GET /nodetest/api/test when trying to connect to my node app using IIS with HttpPlatformHandler What I did is add my node app in IIS -> Default Website -> Add Application then use the link…
Yuu
  • 619
  • 3
  • 13
  • 34
0
votes
1 answer

Why is my HttpPlatformHandler server app getting HTTP Error 502.3 Bad Gateway

I'm writing a HttpPlatformHandler server app with C++ and Winsock functions. It works great on my development machine but when deployed on other machines it fails. I can run it separately and access it from the browser using the default port I coded…
Roland Smith
  • 957
  • 4
  • 7
0
votes
0 answers

How can I determine the full file name in my httpPlatformHandler server app?

I'm writing a web server app in C++ using httpPlatformHandler and Winsock. After some issues I have it working well. My question is: How can I determine the full path name of the file that triggered the request? The only clue I see is the first line…
Roland Smith
  • 957
  • 4
  • 7
0
votes
1 answer

HttpPlatformHandler is deprecated by ASP.NET Core for IIS 10, what is the equivalent configuration?

I was trying to download httpPlatformHandler and I discovered that it has been deprecated by ASP.NET Core. Now if you want a web app to sit behind IIS, you have to use ASP.NET Core instead. How does this change the configuration? Before what I had…
leeand00
  • 25,510
  • 39
  • 140
  • 297
1
2