qq_27493725 2015-04-17 14:44 采纳率: 0%
浏览 2080

具体问下我的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 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条回答 默认 最新

  • devmiao 2015-04-17 18:16
    关注
    评论

报告相同问题?

悬赏问题

  • ¥15 安装svn网络有问题怎么办
  • ¥15 Python爬取指定微博话题下的内容,保存为txt
  • ¥15 vue2登录调用后端接口如何实现
  • ¥65 永磁型步进电机PID算法
  • ¥15 sqlite 附加(attach database)加密数据库时,返回26是什么原因呢?
  • ¥88 找成都本地经验丰富懂小程序开发的技术大咖
  • ¥15 如何处理复杂数据表格的除法运算
  • ¥15 如何用stc8h1k08的片子做485数据透传的功能?(关键词-串口)
  • ¥15 有兄弟姐妹会用word插图功能制作类似citespace的图片吗?
  • ¥15 latex怎么处理论文引理引用参考文献