Skip to content

Commit

Permalink
fixes web2py#1413
Browse files Browse the repository at this point in the history
  • Loading branch information
niphlod committed Sep 21, 2016
1 parent 075f493 commit 37d2efa
Showing 1 changed file with 4 additions and 12 deletions.
16 changes: 4 additions & 12 deletions handlers/wsgihandler.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,22 +7,16 @@
License: LGPLv3 (http://www.gnu.org/licenses/lgpl.html)
This is a WSGI handler for Apache
Requires apache+mod_wsgi.
In httpd.conf put something like:
LoadModule wsgi_module modules/mod_wsgi.so
WSGIScriptAlias / /path/to/wsgihandler.py
This is a WSGI handler
"""

import sys
import os

# change these parameters as required
LOGGING = False
SOFTCRON = False

import sys
import os

path = os.path.dirname(os.path.abspath(__file__))
os.chdir(path)
Expand All @@ -32,8 +26,6 @@

sys.path = [path] + [p for p in sys.path if not p == path]

sys.stdout = sys.stderr

import gluon.main

if LOGGING:
Expand Down

0 comments on commit 37d2efa

Please sign in to comment.