I want to set up my Django in Apache server using wsgi I have already install mod_wsgi but when I make django.conf and try to include it in my "etc/apache2/conf.d/includes/pre_main_global.conf to get include to my httpd.conf i got this error in my whm Sorry, you cannot update the include files at this time. Your Apache configuration file currently has a syntax error.*Error:*
The “/usr/sbin/httpd -DSSL -t -f /etc/apache2/conf/httpd.conf -C Include "/etc/apache2/conf.modules.d/*.conf"” command (process 17945) reported error number 1 when it ended. Configuration problem detected on line 12 of file /etc/apache2/conf.d/django.conf: Name duplicates previous WSGI daemon definition. --- /etc/apache2/conf.d/django.conf --- 6<Directory /home/zporta6/public_html/cgi-bin/django1/project1> 7 <Files wsgi.py> 8 Require all granted 9 </Files> 10</Directory> 11 12 ===> WSGIDaemonProcess centos python-path=/home/zporta6/public_html/cgi-bin/django1/project1:/home/zporta6/public_html/cgi-bin/django1/lib/python2.7/site-packages <=== 13WSGIProcessGroup centos 14WSGIScriptAlias / /home/zporta6/public_html/cgi-bin/django1/project1/project1/wsgi.py --- /etc/apache2/conf.d/django.conf --- I try to change the name of project1 I thought maybe name duplicated but still the same result any idea what should I do my django.conf is : Alias /static /home/zporta6/public_html/cgi-bin/django1/project1/static <Directory /home/zporta6/public_html/cgi-bin/django1/project1/static> Require all granted </Directory> <Directory /home/zporta6/public_html/cgi-bin/django1/project1> <Files wsgi.py> Require all granted </Files> </Directory> WSGIDaemonProcess centos python-path=/home/zporta6/public_html/cgi-bin/django1/project1:/home/zporta6/public_html/cgi-bin/django1/lib/python2.7/site-packages WSGIProcessGroup centos WSGIScriptAlias / /home/zporta6/public_html/cgi-bin/django1/project1/project1/wsgi.py -- 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 https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/8177324c-ed97-4fe8-add2-dc216e1d8e21%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.