After installation of mod_wsgi/4.4.1 I did some further small trial:
*1. changed in httpd.conf *
   from 
        Order allow,deny
        Allow from all
   to
        Require all granted
   and changed file name from myapp.wsgi to myapp.py
   *so new VirtualHost version is the following:*
        <VirtualHost *:80>
            ServerName www.vm1w8.com
            ServerAlias vm1w8.com
            ServerAdmin [email protected]
            DocumentRoot c:/Apache24/htdocs
            <Directory c:/Apache24/htdocs>
            *Require all granted*
            </Directory>
            WSGIScriptAlias /myapp C:/Apache24/wsgi-scripts*/myapp.py*
            <Directory C:/Apache24/wsgi-scripts>
            *Require all granted*
            </Directory>
        </VirtualHost>
*2. still get error*
    Forbidden
    You don't have permission to access /myapp on this server.
*3.  error.log content*
[Thu Dec 04 11:03:02.894500 2014] [mpm_winnt:notice] [pid 108:tid 424] 
AH00455: Apache/2.4.10 (Win64) mod_wsgi/4.4.1 Python/3.4.2 configured -- 
resuming normal operations
[Thu Dec 04 11:03:02.894500 2014] [mpm_winnt:notice] [pid 108:tid 424] 
AH00456: Apache Lounge VC11 Server built: Jul 17 2014 12:58:29
[Thu Dec 04 11:03:02.894500 2014] [core:notice] [pid 108:tid 424] AH00094: 
Command line: 'C:\\Apache24\\bin\\httpd.exe -d C:/Apache24'
[Thu Dec 04 11:03:02.894500 2014] [mpm_winnt:notice] [pid 108:tid 424] 
AH00418: Parent: Created child process 2980
[Thu Dec 04 11:03:03.363247 2014] [mpm_winnt:notice] [pid 2980:tid 456] 
AH00354: Child: Starting 64 worker threads.
[Thu Dec 04 11:03:28.503872 2014] [authz_core:error] [pid 2980:tid 976] 
[client 127.0.0.1:50456] AH01630: client denied by server configuration: 
C:/Apache24/wsgi-scripts
dcm

Il giorno giovedì 4 dicembre 2014 07:27:24 UTC+1, marco del corto ha 
scritto:
>
> 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.

Reply via email to