问题描述
- 具体问下我的Mac Django apache2.4的问题,附配置文件
-
就是按照网上那几个教程配的,可总是出现403错误,我把自己的配置文件的关键地方贴上吧
LoadModule wsgi_module /usr/libexec/apache2/mod_wsgi.so
Alias /media/ /Library/WebServer/Documents/newsite/media/
Alias /static/ /Library/WebServer/Documents/newsite/static/Require all granted
Require all granted
WSGIScriptAlias /newsite /Library/WebServer/Documents/newsite/newsite/wsgi.py
WSGIPythonPath /Library/WebServer/Documents/newsite
Require all granted
DocumentRoot "/Library/WebServer/Documents" <Directory "/Library/WebServer/Documents">
Options FollowSymLinks Multiviews
MultiviewsMatch Any
AllowOverride None
Require all grantedDirectoryIndex showdata.html
最后出现了403forbidden界面,error_log给出的是:[autoindex:error] [pid 804] [client ::1:51583] AH01276: Cannot serve directory /Library/WebServer/Documents/: No matching DirectoryIndex (showdata.html) found, and server-generated directory index forbidden by Options directive
解决方案
http://www.it165.net/admin/html/201501/4746.html
时间: 2024-10-22 01:26:50