Questions tagged [mod-wsgi]

mod_wsgi is an easy to use Apache module that can host Python web applications which support the Python WSGI interface.

mod_wsgi is a simple to use Apache module which can host any Python application which supports the Python WSGI interface. The module would be suitable for use in hosting high performance production web sites, as well as your average self managed personal sites running on web hosting services.

399 questions
0
votes
2 answers

Configure mod_wsgi WSGIScriptAlias with mod_rewrite

I want to redirect ex.com to www.ex.com but I still want www.ex.com/ to point to my app.wsgi without it showing up in the url. When I use the conf below and I go to ex.com, I get a 404 error saying can't find www.ex.com/app.wsgi/ If I change the…
Lazik
  • 105
  • 7
0
votes
1 answer

Apache and mod_wsgi prevent user from viewing source

I'm running a WSGI application written in Python with flask on Apache. I have so far configured my vhost correctly to use my application. ServerName mydomain.com ErrorLog /var/www/abizeitung/error.log LogLevel warn CustomLog…
0
votes
2 answers

ubuntu linode server 404 error with django mod_wsgi

I have configured a linode server with apache2 and mod_wsgi.. the server is running wsgi is running postgre is running and syncdb was successful what I am having trouble finishing is actually serving the app.. my file structure: . ├── logfile └──…
user2016117
  • 121
  • 3
0
votes
1 answer

Issue configuring Apache virtualHost with modwsgi

Hello i have a problem configuring apache with Virtualhosts and ModWSGI, see i want to run a Python Script when i access to the domain, but it keeps showing me the content of my folder instead executing the script. Here is the site-enabled…
hidura
  • 115
  • 5
0
votes
1 answer

apache2: two virtual hosts interfere

I am a developer, not a sys-admin :) I always have been running multiple vhosts in parallel on different ports, but this time something is interfering. I have one vhost which runs a python-based django web application, which uses wsgi. The other one…
transient_loop
  • 499
  • 1
  • 4
  • 15
0
votes
1 answer

centos 6.4 - django deploy with apache and mod_wsgi

I'm trying to deploy on a VM with centos 6.4 a basic django project with apache and mod_wsgi. This is the project tree: myproj/ ├── manage.py ├── myapp │   ├── __init__.py │   ├── models.py │   ├── tests.py │   └── views.py └── myproj ├──…
Luke
  • 103
  • 3
0
votes
1 answer

Troubleshooting mod-wsgi thread dying

A WSGI daemon on our public-facing web server died and required reloading apache configuration to start it again. All the error.log says is: Script timed out before returning headers: wsgi.py (and the same message with ,referer:url appendend). I…
Jan Hudec
  • 275
  • 3
  • 13
0
votes
1 answer

Python app with wsgi apache2 returns *.py file content

I have a small Flask app that I managed to get running using apache2 and mod-wsgi. I set it up to run on a subdomain like test.example.com The app is in /var/www/flasktest . Now if I go to example.com/flasktest/test.wsgi it returns the contents of…
sirrocco
  • 117
  • 5
0
votes
1 answer

mod_wsgi Causing httpd to Segmentation Fault

I have just installed python2.6 and mod_wsgi on my MediaTemple CentOS5.8 server. I had to install python2.6 along side the default python version of 2.4. I then compiled mod_wsgi telling it to use python2.6. Everything compiled and built fine. I…
OpIvy
  • 113
  • 1
  • 1
  • 5
0
votes
1 answer

Upgrading from Django 1.3 (Python 2.6) to Django 1.5 + Python 2.7 CentOS

We currently have a server running python2.6 + apache and mod_wsgi that runs with Django 1.3. I plan to use the following guide to install python 2.7 http://toomuchdata.com/2012/06/25/how-to-install-python-2-7-3-on-centos-6-2/. Then use pip to…
Jeff_Hd
  • 103
  • 4
0
votes
1 answer

Deploy a Django site and a PHP site on the same server with Apache and mod_wsgi

I currently have a Django site working at cinepass.com.ec , I would like to deploy an additional PHP site to the same server at mobile.cinepass.com.ec My current httpd.conf (from DjangoFoo) : Order…
edu222
  • 101
  • 1
0
votes
1 answer

Apache django mysql very slow

I am using Django, wsgi with apache, but the server is really slow when I try to insert data into mysql server. It takes 1 second to insert 200 rows in a table. The strange thing is that only 3% of CPU and memory is used by apache and mysql. I am…
Jiechao Li
  • 253
  • 1
  • 4
  • 13
0
votes
2 answers

CherryPy 3 with Apache 2 using ModWSGI: stack traces?

I am trying to show stack traces or at least some sort of errors rendered to the HTML response while using a WSGI script. A ModuleNotFound exception is raised when I tried to import a module the script can't seem to find (which is fine for now), but…
0
votes
1 answer

How to get apache to use python 2 with mod_wsgi?

I have an Arch Linux server that used to use Python 2.7.3 just fine with Apache and mod_wsgi-3.4-2. I have both Python 2.7.3 and 3.3.0 installed on the server, and both executables are located in /usr/bin. Recently it has started to use Python 3. I…
Nathan Jones
  • 151
  • 1
  • 1
  • 9
0
votes
1 answer

Is there any way to isolate the python2.7 , mod_wsgi installation from main environment

I have many local virtual machines for building the django websites. I find it very hard to configure all the machines with mod_wsgi , python and all that installation issues. Is there any way that i can install even python 2.7 , mod_wsgi etc and…
Mirage
  • 561
  • 4
  • 10
  • 25