qq_27493725
qq_27493725
2015-04-17 14:44

具体问下我的Mac Django apache2.4的问题,附配置文件

  • apache
  • django
  • 配置文件
  • mac

就是按照网上那几个教程配的,可总是出现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 granted

DirectoryIndex 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

  • 点赞
  • 回答
  • 收藏
  • 复制链接分享

1条回答

为你推荐

换一换