This is been fixed
On Monday, 8 May 2017 15:39:25 UTC+5:30, sarfaraz ahmed wrote:
-- On Monday, 8 May 2017 15:39:25 UTC+5:30, sarfaraz ahmed wrote:
Now I am seeing the list of directory and files instead of website.Now I downloaded Apache 2.4 compiled in VC9 + Python 2.7.13 on my windows server 2016(AWS instance) I moved my website to this server. Changed firewall setting to accepting incoming traffic and also networking configuration.Hello Guys,After lot of struggle I understood there is no MOD_WSGI file available for latest version of XAMP which is compiled in VC14. I am not sure how to compile MOD_WSGI with VC 14 so I gave upHere is my wsgi.py file
------------------------------------------------------------ ------------------------------ ------------------------------ ------------------------------ ----------------
import os
import sys
from django.core.wsgi import get_wsgi_application
sys.path.append('C:\Apache24\htdocs\testarhamcollections\')
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "project1.settings")
application = get_wsgi_application()
------------------------------------------------------------ ------------------------------ ------------------------------ ------------------------------ --------------- This is conf file for Apache------------------------------------------------------------ ------------------------------ ------------------------------ ------------------------------ ----------------
<VirtualHost *:80>
ServerAdmin admin@testarhamcollections.com
DocumentRoot "C:/Apache24/htdocs/testarhamcollections"
ServerName www.testarhamcollections.com
ServerAlias testarhamcollections.com
ErrorLog "C:/Apache24/htdocs/testarhamcollections/logs/ testarhamcollections.com- error.log"
CustomLog "C:/Apache24/htdocs/testarhamcollections/logs/ testarhamcollections.com- access.log" common
WSGIScriptAlias / "c:/Apache24/htdocs/testarhamcollections/project1/ wsgi.py"
Alias / "c:/Apache24/htdocs/testarhamcollections"
Alias /static/ "c:/Apache24/htdocs/testarhamcollections/static/"
Alias /media/ "c:/Apache24/htdocs/testarhamcollections/static/ media/"
<Directory c:/Apache24/htdocs/testarhamcollections/project1>
<Files wsgi.py>
Require all granted
</Files>
</Directory>
</VirtualHost>
------------------------------------------------------------ ------------------------------ ------------------------------ ------------------------------ ----------------------------- I checked the error log of website it shows nothing.--Thanks with regards,
Sarfaraz Ahmed
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+unsubscribe@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/319ea95f-1b36-4191-b94e-1dfff946543a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment