hey Ngangsia,
On Mon, Aug 11, 2014 at 7:17 PM, ngangsia akumbo <ngang...@gmail.com> wrote: > i have these configs > > project path > yems bluepearlhotel # ls > blog bluepearlhotel event gallery home images manage.py media static > yems bluepearlhotel # > > > cd /etc/apcahe2/sites-available > > yems sites-available # ls > 000-default.conf bluepearlhotel.conf default-ssl.conf testsite.com > yems sites-available # > The config you are using here is testsite.com or bluepearlhotel.conf ? Recently, apache changed their default config to only look for files ending in .conf inside sites-available, iirc, so if your config is in testsite.com, maybe its not reading your config at all. > > VirtualHost *:80> > WSGIScriptAlias / /home/yems/bluepearlhotel.wsgi > > ServerName bluepearlhotel.com > > Alias /static /var/www/bluepearlhotel/static/ > > <Directory /home/yems/var/www/bluepearlhotel/> > Order allow,deny > Allow from all > </Directory> > > <Directory /home/yems/> > <Files bluepearlhotel.wsgi> > > Require all granted > </Files> > </Directory> > That *looks* okay. Can you add a couple lines for log files, and then check those files to see if you get anything in the logs that maybe helpful? Like this: ErrorLog /var/log/apache2/bluepearlhotel.com_error.log CustomLog /var/log/apache2/bluepearlhotel.com_access.log combined Also, your /static alias seems off? Where exactly are your project files? If your project folder is /home/yems/var/www/bluepearlhotel your static path should probably be something like /home/yems/var/www/bluepearlhotel/static or so? Can you paste output of the command 'pwd' inside your project folder? > > > yems@yems ~ $ ls > bluepearlhotel.wsgi > > import os > import sys > sys.path = ['home/home/var/www/bluepearlhotel'] + sys.path > os.environ['DJANGO_SETTINGS_MODULE'] = 'bluepearlhotel.settings' > import django.core.handlers.wsgi > > application = django.core.handlers.wsgi.WSGIHandler() > > when i browse > > www.bluepearlhotel.com > it give me an empty page > > Please need help > Again, that *seems* okay, but perhaps you have something weird going on with your paths. I'd check the apache log files, one of two things could happen then: 1> You don't see any errors for bluepearlhotel.com -- in this case, your apache conf is probably not being read at all. Have you done a2enmod on the vhost file? Can you check if there is an entry / symlink inside /etc/apache2/sites-enabled/ (post output of 'ls /etc/apache2/sites-enabled'). Then, first need to figure out why the conf files is not being read. 2> If the conf file is being read, you should see some errors. Those errors should give you some more information about what's going wrong. Paste those errors here and we can try and help you out. Don't give up, lets figure this out :P -Sanjay -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAG3W7ZHhdX3Oe9N%2Bp%2Bd-8BoKVhFdKFkQiHup-HQYVy50Dba6Qw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.