You would be good to organize your configuration. Try creating a file under /etc/apache2/vhosts.d/ Probably my_domain.com (substitute my_domain.com with your actual domain).
And move all the configuration to it: <VirtualHost *:80> ServerAdmin webmaster@my_domain.com DocumentRoot /usr/local/django/mysite/media/ ServerName my_domain.com ServerAlias www.my_domain.com #WSGIDaemonProcess site-1 user=user-1 group=user-1 threads=25 #WSGIProcessGroup site-1 Alias /media/ /usr/local/django/mysite/media/ <Directory /home/seyfullah/django/mysite/media> Order deny,allow Allow from all </Directory> WSGIScriptAlias / /home/seyfullah/django/mysite/apache/django.wsgi <Directory /home/seyfullah/django/mysite/apache> Order deny,allow Allow from all </Directory> </VirtualHost> You can remove the comments after you are sure its working Regards On Mon, Aug 20, 2012 at 2:39 PM, Joris <joris.bensc...@gmail.com> wrote: > The DocumentRoot directive is missing from the httpd.conf, indicating you > did not send all the required data. This may be because your attachment is > incomplete: > > There is an include statement in your httpd.conf: "Include > /etc/apache2/conf.d/*.conf" > All files from that conf.d folder are also processed. Please look in files > located in /etc/apache2/conf.d/ for anything useful. Especially files that > contain a documentroot directive > > Also, it may help if you post the output of > apachectl -S > (note: some distros want apache2ctl instead of apachectl) > > jb > > > > On Monday, August 20, 2012 11:30:49 AM UTC+2, stikic wrote: > >> httpd.conf file is in the attachment. >> >> 2012/8/20, Joseph Mutumi <jjmu...@gmail.com>: >> > Hello, >> > >> > Could you post the VirtualHost configuration for Apache? >> > That would greatly help us help you. >> > >> > Regards >> > >> > On Mon, Aug 20, 2012 at 12:30 AM, Seyfullah Tıkıç <sti...@gmail.com> >> wrote: >> > >> >> Hello, >> >> >> >> I read the article below. >> >> https://docs.djangoproject.com/en/1.3/howto/deployment/modwsgi/ >> >> >> >> But still http://localhost redirects to >> >> /var/www/localhost/htdocs/index.html. >> >> I want http://localhost/ redirescts to /home/seyfullah/django/mysite. >> >> How can I do this? >> >> >> >> -- >> >> SEYFULLAH TIKIÇ >> >> >> >> -- >> >> You received this message because you are subscribed to the Google >> Groups >> >> "Django users" group. >> >> To post to this group, send email to django...@googlegroups.com. >> >> To unsubscribe from this group, send email to >> >> django-users...@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...@googlegroups.com. >> > To unsubscribe from this group, send email to >> > django-users...@googlegroups.com. >> > For more options, visit this group at >> > http://groups.google.com/group/django-users?hl=en. >> > >> > >> >> >> -- >> SEYFULLAH TIKIÇ >> > -- > 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/-/KkXJTQwbtYwJ. > > 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.