>>
>> Let me quickly introduce the contents of the files to make the case more
>> concrete.
>> This is my /etc/apache2/sites-available/default file

I think that this is the problem. That file is not loaded by the
Apache server included with BitNami. You would need to add a new
include line in /opt/bitnami/apache2/conf/httpd.conf pointing to that
file. To follow the BitNami conventions I would create a file
/opt/bitnami/apps/django/conf/yourproject.conf which would include the
VirtualHost and all the Apache configuration for your project. Then in
/opt/bitnami/apache2/conf/httpd.conf add the following:

Include "/opt/bitnami/apps/django/conf/yourproject.conf"

After that restart the Apache server with /opt/bitnami/ctlscript.sh
restart apache.



>>
>> <VirtualHost *:80>
>> ServerAdmin root@***
>> ServerName ***
>>
>> Alias /site_media/
>> /opt/bitnami/apps/django/django_projects/***/site_media/
>> Alias /static/
>> /opt/bitnami/apps/django/lib/python2.7/site-packages/django/contrib/admin/static/
>> Alias /robots.txt
>> /opt/bitnami/apps/django/django_projects/***/site_media/robots.txt
>> Alias /favicon.ico
>> /opt/bitnami/apps/django/django_projects/***/site_media/favicon.ico
>>
>> CustomLog "|/usr/sbin/rotatelogs
>> /opt/bitnami/apps/django/django_projects/logs/access.log.%Y%m%d-%H%M%S 5M"
>> combined
>> ErrorLog "|/usr/sbin/rotatelogs
>> /opt/bitnami/apps/django/django_projects/logs/error.log.%Y%m%d-%H%M%S 5M"
>> LogLevel warn
>>
>> WSGIProcessGroup [***.com]
>> WSGIScriptAlias / /opt/bitnami/apps/django/scripts/django.wsgi
>>
>> <Directory /opt/bitnami/apps/django/django_projects/***/site_media>
>> Order deny,allow
>> Allow from all
>> Options -Indexes FollowSymLinks
>> </Directory>
>>
>> <Directory /opt/bitnami/apps/django/django_projects/***/conf/apache>
>> Order deny,allow
>> Allow from all
>> </Directory>
>> </VirtualHost>
>> This is my /opt/bitnami/apps/django/scripts/django.wsgi file
>> import os, sys
>>
>> sys.path.append('/opt/bitnami/apps/django/lib/python2.7/site-packages/')
>> sys.path.append('/opt/bitnami/apps/django/django_projects')
>> sys.path.append('/opt/bitnami/apps/django/django_projects/***')
>> os.environ['DJANGO_SETTINGS_MODULE'] = '***.settings'
>>
>> import django.core.handlers.wsgi
>>
>> application = django.core.handlers.wsgi.WSGIHandler()
>> Here is the relevant portion of /opt/bitnami/apache2/conf/httpd.conf file:
>> ServerRoot "/opt/bitnami/apache2"
>> Listen 80
>> ServerName [***.com]
>> DocumentRoot "/opt/bitnami/apache2/htdocs"
>> LoadModule wsgi_module modules/mod_wsgi.so
>> WSGIPythonHome /opt/bitnami/python
>> Include "/opt/bitnami/apache2/conf/ssi.conf"
>> Include "/opt/bitnami/apps/django/conf/django.conf"
>> Include "/opt/bitnami/apache2/conf/bitnami/httpd.conf"
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Django users" group.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msg/django-users/-/jtSgAF03CiAJ.
>> To post to this group, send email to django-users@googlegroups.com.
>> To unsubscribe from this group, send email to
>> django-users+unsubscr...@googlegroups.com.
>> For more options, visit this group at
>> http://groups.google.com/group/django-users?hl=en.
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to