[問題] Apache2 + Gitlist 問題

看板Linux作者 (kuangs)時間10年前 (2015/09/01 18:27), 編輯推噓0(004)
留言4則, 2人參與, 最新討論串1/1
大家好 小弟想在ubuntu 14.04 上架一個gitlist 目前apache2 跟 gitlist 皆已安裝完畢 小弟參考 此文章( http://my.oschina.net/aulphar/blog/201813 ) 但遇到一個問題 開啟網頁 可以看到我上傳的專案 可是只要點進專案 網頁卻顯示 ----------------------------------------------------------- Not Found The requested URL /123.git/ was not found on this server. ---------------------------------------------------------- 小弟專案 擺在 /home/ubuntu/git/123.git gitlist 擺在 /home/ubuntu/git/gitlist 在/var/www/ 用 ln -s /home/ubuntu/git/gitlist html 作連結 apache2.conf 無修改用預設config gitlist/config.ini 只修改 repositories[] = '/home/ubuntu/git/' 把它指向我的專案 看網頁的訊息 似乎是在/var/www/html/ 下找不到123.git 但如果我把專案移過去 似乎也不太對 想請問架過 gitlist 的大大們 是我的設定檔有問題?? 還是我環境目錄擺放位置有問題?? 謝謝!! -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 114.34.53.98 ※ 文章網址: https://www.ptt.cc/bbs/Linux/M.1441103265.A.987.html

09/01 21:20, , 1F
感覺像是 url rewrite 沒開
09/01 21:20, 1F

09/01 21:21, , 2F
執行 a2enmod rewrite 然後 apache 的設定檔要允許
09/01 21:21, 2F

09/01 21:22, , 3F
overwrite apache 設定檔加個 override all 後重啟
09/01 21:22, 3F

09/02 10:37, , 4F
已解決 感謝上大大的幫助
09/02 10:37, 4F
文章代碼(AID): #1LvNsXc7 (Linux)