作者frank60116 (发蓝客)
看板Web_Design
标题[问题] apache directory设定
时间Sat Jan 7 14:09:20 2017
目前作业系统为ubuntu
目标要完成的事:让www/html/test/index.php成功在浏览器上出现
目前的设定为:
apach2.conf
<Directory /var/www/html/test>
Options FollowSymLinks
AllowOverride All
Order deny,allow
Allow from All
</Directory>
000-default.conf
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /var/www/html/test
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
test资料夹无脑设定为777
现在网页上出现的是Internal Server Error
error.log的错误讯息为
/var/www/.htaccess: <IfModule not allowed here
为什麽会喷错误在不是我目标的资料夹啊...
希望有大大可以救救我QAQ
--
※ 发信站: 批踢踢实业坊(ptt.cc), 来自: 36.228.143.93
※ 文章网址: https://webptt.com/cn.aspx?n=bbs/Web_Design/M.1483769362.A.702.html
※ 编辑: frank60116 (36.228.143.93), 01/07/2017 14:11:38
1F:推 newversion: 搬到 /var/www/html/test/.htaccess ? 01/08 00:02
2F:→ newversion: 另法 <Directory /var/www> AllowOverride All 01/08 00:03