2016-03-24 18 views
0

私はApacheでmod_wsgiを設定しましたが、403 Forbiddenを応答として取得しています。Apache2 403 Forbidden

これは私がログに見ることができますエラーです。

Symbolic link not allowed or link target not accessible: /mnt/myapp/current 

これは私のApache設定がどのように見えるかです:

<VirtualHost *:443> 
     ServerName somedomain.com 
     ServerAlias www.somedomain.com 

     <Directory /mnt/myapp/> 
       Options Indexes FollowSymLinks MultiViews 
       AllowOverride None 
       Require all granted 
     </Directory> 

     <Directory /mnt/myapp/current/> 
       Options Indexes FollowSymLinks MultiViews 
       AllowOverride None 
       Require all granted 
     </Directory> 

     # Django Application 
     Alias /static /mnt/myapp/current/static 
     <Directory /mnt/myapp/current/static> 
       Options FollowSymLinks 
       Require all granted 
     </Directory> 

     <Directory /mnt/myapp/current/myproject/apache> 
       <Files wsgi.py> 
         Options FollowSymLinks 
         Require all granted 
       </Files> 
     </Directory> 

     WSGIDaemonProcess grapevine python-path=/mnt/myapp/current:/mnt/env/lib/python3.4/site-packages 
     WSGIProcessGroup myproject 
     WSGIScriptAlias//mnt/myapp/current/myproject/apache/wsgi.py 

     SSLEngine on 
     SSLCertificateFile /home/myapp/myapp.com.crt 
     SSLCertificateKeyFile /home/myapp/myapp.com.key 
     SSLCertificateChainFile /home/myapp/myapp.crt 

</VirtualHost> 

誰かが問題になる可能性が何かアドバイスはできますか?

答えて

0

私はこの問題を解決しました。

私は、Apacheの設定ファイルにこの設定を追加しました:

DocumentRoot /mnt 
<Directory /> 
     Options FollowSymLinks 
     AllowOverride None 
</Directory>