Tagged Questions
0
votes
1answer
25 views
Internal Server Error when retrieving JSON from a python script using JQuery
I'm trying to write a simple web application that uses JQuery to call a python script. The python script returns data in JSON format. Here is the ajax call in my Javascript:
console.log('before');
...
0
votes
1answer
16 views
Python mod_wsgi application strange behavior
I am relatively new to Python and Python web application development. Currently I am creating a hello world application in Python using mod_wsgi
Here are my configurations.
Apache configuration
...
0
votes
1answer
28 views
how to write a wsgi wrapper for php applications?
Is it possible to write a wsgi (werkzeug) application, that returns the output of a php application?
In detail, i have the following problem:
We have a couple of old, legacy php applications and need ...
1
vote
1answer
45 views
(Another) ImportError with Flask under mod_wsgi
Sorry if this seems like a repeat of several previous questions, but none of those have helped me so far :-/
I have written a Flask app that I am attempting to deploy under mod_wsgi and apache2.
I ...
0
votes
1answer
19 views
Apache2 Ruby and Python load default website when *.domain.net is set in vhost file
5 sites setup using named vhosts.
site1.domain.net (PHP)
site2.domain.net (Python)
site3.domain.net (Ruby)
site4.domain.net (PHP)
site5.domain.net (PHP)
In the vhost for site1 I also have the ...
5
votes
3answers
4k views
Problem of loading mod_wsgi module into apache on Windows 64-bit
I'm trying to install mod_wsgi module followed this instruction. I've downloaded mod_wsgi.so from this source. It seems like apache cannot restart services properly and the page cannot be loaded after ...
0
votes
0answers
42 views
Error with subprocess in python and apache as well as requests
I am trying to develop a website with django, and I had everything running fairly well under my development environment but now that I am trying to deploy it to an apache based server I am running ...
0
votes
0answers
58 views
Apache with mod_wsgi and python returns 500 periodically
I have a website running on Python and Flask. 4 times out of 10 it returns a 500 error, randomly as far as I can tell.
from flask import Flask
app = Flask(__name__)
@app.route("/")
def index():
...
0
votes
1answer
51 views
Import python from wsgi fails
I've got a folder structure on an apache2/flask server that is this:
/var/www/myapp
/var/www/myapp/routing.py
/var/www/myapp/__init__.py
/var/www/wsgi-scripts/myapp.wsgi
My application file ...
1
vote
0answers
120 views
Django Response always Chunked with text/html cannot set Content-Length
In my Django Application's views.py , I return an HttpResponse object after attempting to set the following HTTP Header fields:
# Create a Response Object with the content to return
response = ...
0
votes
1answer
96 views
Caching Django Responses with mod_wsgi and Apache2 mem_cache
I've followed the following article in an attempt to setup Apache2 caching in order to use it with Django on Ubuntu 12.10 with mod_wsgi. I want Apache to cache some requests for me.
...
0
votes
0answers
63 views
Configure Django with Apache
I am trying to get my Django application running under apache with mod_python but I do not know what is the problem.
my django project is under the directory /srv/APCC
Apache virtual host configs as ...
0
votes
2answers
108 views
How do I determine if my mod_wsgi application is running on HTTPS?
I've just inherited a Python application which is running under Apache 2.4, mod_wsgi 3.4 and Python 2.7. The same application serves both HTTP and HTTPS requests.
In the existing code, it is trying ...
0
votes
1answer
70 views
Issue in deployment zc.buildout with apache
I am facing some issues with deploying my buildout project (Django) in Apache using mod_wsgi.
My folder structure:
t/
bootstrap.py
setup.py
bin/
buildout
django
django.wsgi
...
0
votes
1answer
78 views
mod_wsgi working directory and user
I'm running flask on mod_wsgi. my flask app, which is on /var/www/app receives some file from user and saves it to /var/www/app/tmp directory. However even after all chmod and chown(thought it was a ...