# ---------------------------------------------------------------------------------------------
# local.conf.erb
# 
# The Apache configuration for this web application
# 
# Copyright (c) 2015 Kevin Cureton
# ---------------------------------------------------------------------------------------------

LoadModule ssl_module modules/mod_ssl.so

<Directory /var/www/code>
    Options FollowSymLinks
    Order allow,deny
    Allow from all
    AllowOverride AuthConfig
</Directory>

#<Location />
#    AuthType basic
#    AuthName "API Realm"
#    Require valid-user
#</Location>

<VirtualHost *:80>
    ServerName localhost.localdomain
    Redirect / https://localhost/
</VirtualHost>

<VirtualHost *:443>
    WSGIScriptAlias / /var/www/code/site/main.prod.wsgi
    ServerName localhost.localdomain
    SSLEngine on
    SSLCertificateFile /etc/httpd/ssl/apache.crt
    SSLCertificateKeyFile /etc/httpd/ssl/apache.key
</VirtualHost>

# ---------------------------------------------------------------------------------------------
# local.conf.erb
# 
# The Apache configuration for this web application
# 
# Copyright (c) 2015 Kevin Cureton
# ---------------------------------------------------------------------------------------------

LoadModule ssl_module modules/mod_ssl.so

<Directory /var/www/code>
    Options FollowSymLinks
    Order allow,deny
    Allow from all
    AllowOverride AuthConfig
</Directory>

#<Location />
#    AuthType basic
#    AuthName "API Realm"
#    Require valid-user
#</Location>

<VirtualHost *:80>
    WSGIScriptAlias / /var/www/code/site/main.prod.wsgi
    WSGIPassAuthorization On
    ServerName 10.0.0.10
#    Redirect / https://localhost/
</VirtualHost>

<VirtualHost *:443>
    WSGIScriptAlias / /var/www/code/site/main.prod.wsgi
    WSGIPassAuthorization On
    ServerName 10.0.0.10
    SSLEngine on
    SSLCertificateFile /etc/httpd/ssl/apache.crt
    SSLCertificateKeyFile /etc/httpd/ssl/apache.key
</VirtualHost>

Add option to pass authorization header into the WSGI application.
Add option to pass authorization header into the WSGI application.
