1. When I open "http://localhost/"; page, it is an error message
"Forbidden. You don't have permission to access / on this server".

2. with in /etc/apache2/sites-available/ directory I created a file
named "locahost". In that I placed the Virtual Host settings.

NameVirtualHost *:80

<VirtualHost localhost:80>

DocumentRoot /home/balu/Django/workspace/mysite/

WSGIScriptAlias / /home/balu/Django/workspace/mysite/apache/
django.wsgi

<Directory /home/balu/Django/workspace/mysite/>

  Order allow, deny
  Allow from all

</Directory>

</VirtualHost>

3.
***************** django.wsgi **************

import os, sys

wsgi_dir = os.path.abspath(os.path.dirname(__file__))

project_dir = os.path.dirname(wsgi_dir)

sys.path.append(project_dir)

project_settings = os.path.join(project_dir,'settings')

os.environ['DJANGO_SETTINGS_MODULE'] = 'mysite.settings'

application = django.core.handlers.wsgi.WSGIHandler()

On Mar 11, 5:58 pm, Kenneth Gonsalves <law...@thenilgiris.com> wrote:
> On Fri, 2011-03-11 at 04:46 -0800, balu wrote:
> > Here is the error log sir.
>
> nobody asked you for the apache error log. To repeat:
>
> please paste the following:
>
> 1. what error does your browser show
> 2. the relevant part of your apache config file (please do not post the
> whole config file)
> 3. your django.wsgi file
> --
> regards
> KGhttp://lawgon.livejournal.com
> Coimbatore LUG roxhttp://ilugcbe.techstud.org/

-- 
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