Apache2 mod_wsgi 403 forbidden error

前端 未结 3 1068
难免孤独
难免孤独 2021-01-18 05:09

I had it configured right, but then I decided to reinstall my Debian (switching from wheezy to jessie version by the way). Here\'s the problem:

I have a python mod_w

3条回答
  •  深忆病人
    2021-01-18 05:57

    I solved it finally. pxl was half-right, because not only Allow from all should be replaced by Require all granted, but also Order allow,deny is no longer necessary. It turns out to be the reason for my error. Complete script alias config should be like this:

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

    And it works.

提交回复
热议问题