2016-03-24 35 views
0

Apache ile mod_wsgi'yi yapılandırdım, ancak yanıt olarak 403 Yasak alıyorum.Apache2 403 Yasak

Bu benim günlüğüne görebilirsiniz hatadır:

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

Bu benim apache yapılandırma gibi görünüyor: Sorun ne olabilir

<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> 

Can birisi tavsiye?

cevap

0

Sorunu çözdüm.

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

ben apache yapılandırma dosyasına bu yapılandırmayı eklendi
İlgili konular