Questions tagged [wsgi]

Web Server Gateway Interface is a specification for web servers and application servers to communicate with web applications. It is a Python standard, described in detail in PEP 333.

WSGI is the Web Server Gateway Interface. It is a specification for web servers and application servers to communicate with web applications (though it can also be used for more than that). It is a Python standard, described in detail in PEP 333.

124 questions
0
votes
0 answers

How to serve via uWSGI from Tomcat

I have a simple python function that I need to run as a web service from a tomcat server. This is the setup I got as an external requirement from my client and I cannot change it. I've managed to make this work with CGI, but I would like to optimise…
mapto
  • 121
  • 5
0
votes
1 answer

Showing index of / without www, works normal with www

I'm working with Python, Flask and Apache, and i'm stuck. when i try to visit mywebsite using www, it works fine. however, when i remove the www, the website is showing "index of /" with an empty list of files next. i've read all the possible…
0
votes
3 answers

Nginx and uWSGI Flask app Connection Refused

Trying to set up a Flask application with uWSGI and Nginx. I keep getting a 502 Bad Gateway error (as far as I know this means uWSGI and Nginx can't communicate correctly) This is the line that keeps showing up in my /var/log/nginx/error.log:…
Kyle Calica-St
  • 103
  • 1
  • 6
0
votes
1 answer

Would I need uWSGI for a application or Nginix will suffice?

According to official uWSGI docs : A web server faces the outside world. It can serve files (HTML, images, CSS, etc) directly from the file system. However, it can’t talk directly to Django applications; it needs something that will run the…
0
votes
1 answer

How can I run wordpress on a subdomain on the same server as a Flask WSGI application?

I've had a Flask/WSGI app running just fine on an Apache host for the last year. The httpd.conf is set up like this: ServerName myapp.com WSGISocketPrefix /var/run/wsgi WSGIScriptAlias / /var/www/myapp/myapp/myapp.wsgi WSGIDaemonProcess myapp…
DeeDee
  • 333
  • 2
  • 6
  • 16
0
votes
1 answer

Serving a Python Page with Windows / Apache / Mod_WSGI?

I'm trying to setup python / apache / WSGI on windows. I have the following installed, all 32-bit and vc9: Apache 2.4 Python 2.7.9 Mod_WSGI.so in the modules folder. http://localhost/ Displays the Apache Haus web page successfully -- Apache is…
some1
  • 79
  • 6
0
votes
2 answers

How to force the use of SSL for some URL of my Django Application?

I want to be sure that for some URL of my website, SSL will be use. I saw a lot of answer already on SO. https://stackoverflow.com/questions/724968/force-redirect-to-ssl-for-all-pages-apart-from-one So I think I will use mod_rewrite. My question is…
Natim
  • 616
  • 1
  • 6
  • 16
0
votes
1 answer

Apache WSGIScriptAlias - skip a certain prefix

The docs for WSGIScriptAliasMatch https://code.google.com/p/modwsgi/wiki/ConfigurationDirectives#WSGIScriptAliasMatch are openly scary. Is there a way to say "Everything in this directory goes through this WSGI script, unless the URL begins with a…
rosuav
  • 101
  • 1
0
votes
1 answer

How to run WSGI-file with Nginx

I have a Python-application with a Bottle-webserver running with port 8080. Now i will connect Nginx to the Bottle-webserver with a wsgi-file. Now, i have a wsgi-file, but how can i execute this with Nginx? Which commands in the Nginx- configuration…
user228548
0
votes
2 answers

Configuring wsgi application to serve a static html?

I'm looking to install www.planetplanet.org in openshift. I've hosted a few php apps on openshift, but am not sure how python apps work. The openshift template gives me a wsgi.py file, which needs the 'application' module / function as its…
gopher
  • 1
  • 3
0
votes
1 answer

Socket error with uWSGI

I am trying to run uwsgi.ini file with uwsgi --ini uwsgi.ini and it gives me an error The -s/--socket option is missing and stdin is not a…
rodling
  • 121
  • 1
  • 6
0
votes
1 answer

Database connection to postgresql refused for flask app under mod_wsgi when started by systemd

I'm having a weird problem where a flask application I am trying to run (https://github.com/pyfarm/pyfarm-master) under mod_wsgi under Apache under CentOS 7 cannot connect to a local postgresql server – but only if said apache has been started from…
guidow
  • 3
  • 2
0
votes
1 answer

Using uwsgi and gunicorn at the same time or fully switch to gunicorn?

We are running our python app behind nginx. First we used uWSGI, because it is fast, reliable and easy to deploy. Next, as the number of simultaneous clients (using server-sent events/eventstream) increased, we have partially switched the app to…
saabeilin
  • 409
  • 1
  • 4
  • 11
0
votes
2 answers

uwsgi, multiple environment variables

I am using uWSGI to run a Django application on nginx. I have configured the server and all seems to be running well. What I would really like to be able to do is store the django secret key within the systems environment variables so it is not part…
user204088
  • 147
  • 4
0
votes
1 answer

Target WSGI script not found or unable to stat

This problem has tortured me for days. I am using Apache, WSGI and django on my Raspberry Pi. Operating system is Raspbian. Everything is okay except this error from apache. [error] [client 127.0.0.1] Target WSGI script not found or unable to stat:…
Jiechao Li
  • 253
  • 1
  • 4
  • 13
1 2 3
8 9