Sunday, May 1, 2011

Re: How to setup the django progject to apache2

I got the error like this:

Forbidden

You don't have permission to access / on this server.


Apache/2.2.16 (Ubuntu) Server at 127.0.0.1 Port 9000




when I modify the httpd.conf:
########################################################################
Listen 9000
<VirtualHost *:9000>
ServerAdmin webmaster@localhost
    
    WSGIScriptAlias / /home/zikey/Workspace/Django/djcms/django.wsgi
DocumentRoot /home/zikey/Workspace/Django/djcms
<Directory /home/zikey/Workspace/Django/djcms>
AllowOverride None
Order deny,allow
allow from all
</Directory>

</VirtualHost>

2011/5/1 Gianluca Sforna <giallu@gmail.com>
On Sun, May 1, 2011 at 12:41 PM, Steven Han <zikey77@gmail.com> wrote:
> But every time I run the URL http://127.0.0.1:9000
> it always displays:
>
> "Oops! Google Chrome could not connect to 127.0.0.1:9000 "
>
> :(
> Do you know what I missed ?

This is more an apache question than a django question, however I
think you're missing to let the server actually listen on port 9000.

Try adding a line like:
Listen 9000
outside your virtualhost directive.

See http://httpd.apache.org/docs/2.2/bind.html#virtualhost for details


--
Gianluca Sforna

http://morefedora.blogspot.com
http://identi.ca/giallu - http://twitter.com/giallu

--
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+unsubscribe@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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

No comments:

Post a Comment