[問題] apache directory設定

看板Web_Design作者 (髮藍客)時間8年前 (2017/01/07 14:09), 8年前編輯推噓1(101)
留言2則, 1人參與, 最新討論串1/1
目前作業系統為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://www.ptt.cc/bbs/Web_Design/M.1483769362.A.702.html ※ 編輯: frank60116 (36.228.143.93), 01/07/2017 14:11:38

01/08 00:02, , 1F
搬到 /var/www/html/test/.htaccess ?
01/08 00:02, 1F

01/08 00:03, , 2F
另法 <Directory /var/www> AllowOverride All
01/08 00:03, 2F
文章代碼(AID): #1OS8OIS2 (Web_Design)
文章代碼(AID): #1OS8OIS2 (Web_Design)