Apache2 mod_wsgi 403 error

I configured it correctly, but then decided to reinstall my Debian (by the way, switching from wheezing to jessie). Here's the problem:

I have a python mod_wsgi application: /mnt/doc/Python/www/index.py.

$ ls -l / | grep mnt
drwxr-xr-x   3 root root  4096 sty 12 09:36 mnt

$ ls -l /mnt
drwxrwxrwx 1 sven sven 20480 sty  7 19:34 doc

$ ls -l /mnt/doc/Python/www/
total 12
drwxrwxrwx 1 sven sven 4096 Jan  3 19:52 core
-rwxrwxrwx 1 sven sven    0 Dec 22 13:25 __init__.py
drwxrwxrwx 1 sven sven    0 Dec 24 00:11 silva
-rwxrwxrwx 1 sven sven  984 Dec 22 13:47 silva.py
-rwxrwxrwx 1 sven sven  697 Dec 25 13:32 txt

All subdirectories have the same rights as /mnt/doc, but when I try to open the site, I still get 403 Forbidden error. Configuration below:

WSGIScriptAlias /huh /mnt/doc/Python/www/index.py                 
<Directory /mnt/doc/Python/www>                                   
    Order allow,deny                                                            
    Allow from all                                                              
</Directory>

When you try to open a page in the Apache2 log, the following message appears:

[authz_core:error] [pid 15269:tid 140518201730816] [client ::1:44130] AH01630: client denied by server configuration: /mnt/doc/Python/www/index.py

I am sure that I copied the previous configuration for sure. Has something changed recently?

EDIT: I forgot to add that I am using the Python 3.3 package and the libapache2-mod-wsgi-py3 Debian package.

+4
source share
3 answers

. pxl , Allow from all Reuqire from all, Order allow,deny . , , . script :

WSGIScriptAlias /huh /mnt/doc/Python/www/index.py                 
<Directory /mnt/doc/Python/www>                                   
    Require all granted
</Directory>

.

+11

Allow from all Require all granted.

Apache mod_authz_core

+3

I wrote as below

    WSGIScriptAlias /hello /home/myself/projects/hello/hello.wsgi
    <Directory /home/myself/projects/hello>
    Order allow,deny
    Allow from all
    Require all granted
    </Directory>

and he works

+2
source

All Articles