2👍
Connect to your EC2, go to etc/httpd/conf.d folder and open wsgi.conf file. Insert the code within VirtualHost DOM:
WSGIPassAuthorization On
RewriteEngine on
RewriteCond %{HTTP:Authorization} ^(.*)
RewriteRule .* - [e=HTTP_AUTHORIZATION:%1]
- How can I easily convert a Django app from mySQL to PostgreSQL?
- Django: default language i18n
- How to filter filter_horizontal in Django admin?
- Django admin, extending admin with custom views
0👍
in folder /etc/apache2/sites-available
open your config file, for example mySite.conf
and then add WSGIPassAuthorization On
to it as follows:
...
</Files>
</Directory>
WSGIPassAuthorization On
WSGIScriptAlias / /home/X/wsgi.py
WSGIDaemonProcess sepanta_dev python-path=/home/X python-home=/home/X/venv
...
- Where are the files downloaded using pip stored in virtualenv?
- Django 1.9 JSONField order_by
- Improving Performance of Django ForeignKey Fields in Admin
Source:stackexchange.com