Created
March 20, 2014 09:06
-
-
Save gcavalcante8808/9659919 to your computer and use it in GitHub Desktop.
wsgi file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
import os | |
sys.path.insert(0, '/var/www/html/htpwd') | |
from htpwd import app as htpwdapp | |
def application(req_environ, start_response): | |
os.environ['HTPASSWD_FILE'] = req_environ['HTPASSWD_FILE'] | |
os.environ['SECRET_KEY'] = req_environ['SECRET_KEY'] | |
os.environ['REGEXP'] = req_environ['REGEXP'] | |
os.environ['TARGET_PAGE'] = req_environ['TARGET_PAGE'] | |
return htpwdapp(req_environ, start_response) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment