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

黑客松Hackathon(二)

黑客松Hackathon(二...

這是一次不同的體驗... 我一直都渴望有所謂的工作團隊並且享受共同討論共同創作的樂趣... 這次在黑...

使FCKeditor所上傳的圖檔檔名亂數化

使FCKeditor所上傳的...

編輯"../fckor/or/filemanager/connectors/php/com...

利用 css 讓 ul 置中呈現

利用 css 讓 ul 置中...

以前寫網站...總是喜歡用Table 包住內容.. 而隨著時空的轉換...現在大都用div..或者....

Recommended reading

Other stories happened at this address

笑起來,跟Mandy小時候一模一樣。

笑起來,跟Mandy小時候一...

笑起來,跟Mandy小時候一模一樣。

毛豆紅蘿蔔馬鈴薯炒肉片佐鄉愁

毛豆紅蘿蔔馬鈴薯炒肉片佐鄉愁...

毛豆加上紅蘿蔔切丁、馬鈴薯切丁炒上豬肉片。 嗯,這是我小時候熟悉的味道。我們家常煮~ 雖說Mandy...

Taare Zameen Par 心中的小星星

Taare Zameen P...

晚餐時間,看了一部印度電影【Taare Zameen Par】 taarezameenpar 一部很...

噓~

噓~

年紀越來越大,古靈精怪的表情越來越多~ 現在還會噓我咧~ 只是,你是否手指比錯方向啊?

夕陽餘暉

夕陽餘暉

等著U起床的空檔,隨手畫了畫~ 有了手機當畫紙,觸控筆當畫筆,真的省了不少紙。 畫畫的當下似乎可以讓...

第133天,目前已晉升為翻身達人。

第133天,目前已晉升為翻身...

第天,目前已晉升為翻身達人。

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