-1
By putting my website to run on IIS, and accessing the domain I put pro even the site brings me the following error, stating that it’s running on the default localhost, even with the IDE Pycharm turned off:
The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it Did Return are " * Serving Flask app 'bibliotecavapza' (Lazy loading) * Environment: Production WARNING: This is a Development server. Do not use it in a Production Deployment. Use the Production WSGI server Instead. * Debug mode: off * Running on http://127.0.0.1:5000/ (Press CTRL+C to quit) ".
If I access the given IP address, my website will log in. How to redirect correctly to my URL?
This is my web.config file, I imagine the problem might be in it:
<system.webServer>
<handlers>
<remove name="Python" />
<add name="Python" path="*.py" verb="*" modules="CgiModule" scriptProcessor="C:\Python39\python.exe %s %s" resourceType="File" requireAccess="Script" />
</handlers>
<defaultDocument>
<files>
<add value="main.py" />
</files>
</defaultDocument>
</system.webServer>