Loading...

Apache無法執行.htaccess?

Temperature: 0 °C

ChungChung
author_tools


Apache無法執行.htaccess?
首先.htaccess是在Apache HTTP Server服務器架設下,對於系統目錄進行各種權限規則設置的一個文件。

這次原本是想使用.htaccess來定義404頁面的位置。

但卻無效@@

這時請先檢查 httpd.conf 中的 ... 中的AllowOverride 設定是否為 None

httpd.conf位置

/etc/httpd/conf/

使用vi 尋找AllowOverride位置
?AllowOverride

只要將其改成 AllowOverrider All 

再重新啟動apache
apachectl restart

但因為就是安全性等的考慮Apache預設才會將AllowOverrider設定為None

同樣的如果只是要某些地方需要支援 .htaccess 設定

那麼可以修改設定為指定目錄支援即可

<Directory "/var/www/html">
AllowOverride All
</Directory>

以上紀錄~

台北市內湖區江南街71巷75弄 Go

https://innstory.com/story-Apache無法執行htaccess-1362
寫程式筆記

Prev
 音樂就像是時光機器許茹芸獨角戲

Next
獨自一個人的2個星期第4晚還好有屏東帶回來的三層肉蔥爆蕃茄豬肉片 

Nearby Attractions

台北市內湖區江南街71巷75弄-Nearby Attractions

  • 芝山岩遺址 Go
  • 舊總督府第二師範學校大禮堂(... Go
  • 原臺北信用組合(今合作金庫城... Go
  • 濟南基督長老教會 Go
  • 專賣局(今臺灣菸酒股份有限公... Go
  • 內湖庄役場會議室 Go

About the Author

Chung

我是chung
網路工作者
主業是網站系統開發建置
副業是做夢,寫故事
作品請參考/teme.biz
做夢請參考/innstory.com
聯絡/chung.teme@gmail.com

#有人用筆寫日記,有人用歲月寫日記,有人用照片寫日記,而我,用innstory寫日記。

Visitor message

Leave some footprints to prove that you visited me

Recommended reading

Author's other related stories

動態留言功能調整

動態留言功能調整

guestmap55 最近改進了朋友動態的發文方式.... 一開始在功能方面加上了googlemap...

使用jquery animate達到動態效果

使用jquery anima...

首先..雖然在寫系統時常常會用到jquery 但我並沒有針對他的指令有做太深入的研究... 剛好這一...

PHP的日期時間相減方法之二

PHP的日期時間相減方法之二...

這幾天很忙...忙著寫客戶的系統.. 忙到沒時間亂開其他網站... 忙到沒時間去研究新東西... 忙...

Recommended reading

Other stories happened at this address

拼圖時間

拼圖時間

父子時間。 發現原來玩拼圖也可以教母語,我一邊拚著一邊用客家話要U去找同顏色的拼圖。 這傢伙就一直檢...

結婚4週年快樂

結婚4週年快樂

四年囉~明天月日是我們結婚整年...... 這一切感覺是那麼的奇妙,在網路上認識.... 第一次,妳...

Mysql查詢特定欄位相乘總合

Mysql查詢特定欄位相乘總...

最近常常會用到的查詢方式... 問題是這樣的,我有一個資料表內容結構如下: +++++ | id |...

有興趣寫故事的人可以自行加入開始安裝你自己的故事~

有興趣寫故事的人可以自行加入...

innstory 每個人,都有自己的故事。 故事,都值得被紀錄下來。 innstory紀錄你我的故事...

apache下設置不顯示目錄列表 Indexes FollowSymLinks

apache下設置不顯示目錄...

pexelsphoto 選擇編輯httpd.conf文件 vi conf/httpd.conf 找到...

輪到你洗澡了沒錯,所以你需要像這樣先勘查地形?

輪到你洗澡了沒錯,所以你需要...

輪到你洗澡了沒錯,所以你需要像這樣先勘查地形?

Please select an option

error

Hi, thank you for your participation, but you cannot vote repeatedly~

Join innstory now and start recording your story.

"Innstory" is a place to store stories. We are committed to becoming a warm platform. Deepening the bonds between people is our direction.
We are convinced that the blockchain between people is not just a cold calculation. Join us now.

Wrong format