httpd: Syntax error on line 548 of F:/apache/Apache24/conf/httpd.conf: </Directory> without matching

出错地方:
Alias /static/ F:\LAB\LAB_WEB\lab_website\static\
<Directory F:\LAB\LAB_WEB\\lab_website>
     <Files wsgi.py>
      Require all granted
      setHandler wsgi-script
     </Files>
</Directory>

改为:

Alias /static/ F:\LAB\LAB_WEB\lab_website\static
<Directory F:\LAB\LAB_WEB\\lab_website>
     <Files wsgi.py>
      Require all granted
      setHandler wsgi-script
     </Files>
</Directory>

去掉‘\’,成功运行

Syntax OK
 

已标记关键词 清除标记
©️2020 CSDN 皮肤主题: 大白 设计师:CSDN官方博客 返回首页