I tried with mod_wsgi‑4.4.1.ap24.win‑amd64‑py3.4.exe and I got the same error (You don't have permission to access /myapp on this server) dcm
Il giorno giovedì 4 dicembre 2014 01:22:08 UTC+1, marco del corto ha scritto: > > I have a problem about how to configure mod_wsgi to run a basic WSGI > application > I followed the guide at > https://code.google.com/p/modwsgi/wiki/QuickConfigurationGuide > *here my environment:* > - Windows 8.1 > - Apache 2.4.10 (httpd-2.4.10-win64-VC11) > - Python 3.4 (python-3.4.2.amd64.msi) > *my steps:* > 1. Get Windows binaries from > http://www.lfd.uci.edu/~gohlke/pythonlibs/#mod_wsgi (download of > mod_wsgi-3.5.ap24.win-amd64-py3.4.zip - that contains: *mod_wsgi.so*) > 2. added the following line to httpd.conf > * LoadModule wsgi_module modules/mod_wsgi.so* > 3. created a file *myapp.wsgi* in folder “*C:\Apache24\wsgi_scripts\*” > with: > def application(environ, start_response): > status = '200 OK' > output = 'myapp.wsgi - Hello World!' > response_headers = [('Content-type', 'text/plain'), > ('Content-Length', str(len(output)))] > start_response(status, response_headers) > return [output] > 4. added following lines to *httpd.conf* > <VirtualHost *:80> > ServerName www.vm1w8.com > ServerAlias vm1w8.com > ServerAdmin [email protected] > DocumentRoot c:/Apache24/htdocs > <Directory c:/Apache24/htdocs> > Order allow,deny > Allow from all > </Directory> > * WSGIScriptAlias /myapp C:/Apache24/wsgi-scripts/myapp.wsgi* > <Directory C:/Apache24/wsgi-scripts> > Order allow,deny > Allow from all > </Directory> > </VirtualHost> > 5. after *restart Apache* I get: > *from url www.vm1w8.com <http://www.vm1w8.com> -> a page with "It > works!" (from default apache index.html)* > > > * from url www.vm1w8.com/myapp <http://www.vm1w8.com/myapp> -> a page > with: Forbidden You don't have permission to access /myapp on > this server.* > note: the file C:/Apache24/wsgi-scripts/myapp.wsgi has read-execute > permission for Apache user > can you help me to understand where is the problem? > thanks > -- 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 http://groups.google.com/group/modwsgi. For more options, visit https://groups.google.com/d/optout.
