> On 27 Jun 2017, at 10:10 PM, Vigneshrajan <[email protected]> wrote:
>
> 1. mod_wsgi is installed properly
> 2. mod_wsgi-express module-config
>
> LoadFile "c:/program files/anaconda/python35.dll"
> LoadModule wsgi_module "c:/program
> files/anaconda/lib/site-packages/mod_wsgi/server/mod_wsgi.cp35-win_amd64.pyd"
> WSGIPythonHome "c:/program files/anaconda"
>
>
> need to rename this mod_wsgi.cp35-win_amd64.pyd file name to mod_wsgi.so and
> mention in LoadModule?
Why are you renaming it? The LoadModule line that was generated said:
LoadModule wsgi_module "c:/program
files/anaconda/lib/site-packages/mod_wsgi/server/mod_wsgi.cp35-win_amd64.pyd"
So it calculated that it had a .pyd extension and you should have used that as
is. You are supposed to include all those three lines.
So remove the:
LoadModule wsgi_module "c:/program
files/anaconda/lib/site-packages/mod_wsgi/server/mod_wsgi.so"
and replace it with:
LoadFile "c:/program files/anaconda/python35.dll"
LoadModule wsgi_module "c:/program
files/anaconda/lib/site-packages/mod_wsgi/server/mod_wsgi.cp35-win_amd64.pyd"
WSGIPythonHome "c:/program files/anaconda"
as was generated by mod_wsgi-express module-config.
Put the name of the file back to mod_wsgi.cp35-win_amd64.pyd as it was
originally.
Also, since it looks like you are only hosting the one site, get rid of the
VirtualHost block and ServerName. Use just:
WSGIScriptAlias /wsgi "c:/wsgi_app/wsgi_app.py"
<Directory "c:/wsgi_app">
<Files wsgi_app.py>
Require all granted
</Files>
Order deny,allow
Allow from all
</Directory>
and then connect with the url:
http://localhost/wsgi <http://localhost/wsgi>
Also be aware that ServerName is not meant to have a ':80' port in it. It
should be just the hostname.
Graham
--
You received this message because you are subscribed to the Google Groups
"modwsgi" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/modwsgi.
For more options, visit https://groups.google.com/d/optout.