[ How to run own project on bitnami ec2? ]
I have my own old django project which has not been created through django 1.4.1. I want to host it on ec2 bitnami so that inspite of running default htdocs folder my desired folder must be displayed. I have done this before but this time with new machine its not running. I have been go through this link
http://bitnami.org/forums/forums/djangostack/topics/getting-started
and was already all that. My changes what i have are..
In httpd.conf
In myproject_cofig.conf
WSGIScriptAlias /fortis_django "/opt/bitnami/apps/django/conf/fortis_django_wsgi.wsgi"\
<Directory '/opt/bitnami/apps/django/conf'>
Order deny,allow
Allow from all
</Directory>
In myproject_wsgi.wsgi
import os, sys
sys.path.append('/opt/bitnami/')
sys.path.append('/opt/bitnami/projects/')
sys.path.append('/opt/bitnami/projects/fortis_django')
os.environ['DJANGO_SETTINGS_MODULE'] = 'fortis_django.settings'
import django.core.handlers.wsgi
application = django.core.handlers.wsgi.WSGIHandler()
And location of project is checked and its correct..
In httpd.conf i changed..
DocumentRoot "/opt/bitnami/projects"
Include "/opt/bitnami/apps/django/conf/fortis_django_config.conf"
And redirected also..
RedirectMatch /fortis /fortis_django/login
So, whenever i go to myurl/fortis it come myurl/fortis_django/login with error too many loops. I am stucked from days please help to run my own project from my location. Thanks in advance.
Answer 1
Try:
RedirectMatch ^/fortis$ /fortis_django/login
Your existing pattern will not match what you are redirecting to.