【求助】apache的編碼問題嗎?



贊助商連結


b90220208
2005-04-08, 10:09 PM
:) 我裝的是appserv2.5.1 for win32

突然發現若將網頁檔案(html,php,pl)由ANSI改為UTF8編碼則不是出現"500 Internal Server Error"的錯誤訊息,就是無法執行或列出亂碼.而若再改回ANSI則又能正常執行,有人了解這是什麼原因嗎?(與apache有關係嗎?)

贊助商連結


b90220208
2005-04-10, 05:13 PM
:corkysm: :) 我參考了
http://httpd.apache.org/docs-2.0/mod/core.html

其說到若httpd.conf不加ScriptInterpreterSource Registry的話,就使用 script 的 shebang line,
加了就可使用 registry 的設定。

既如此,
那麼我的hello.pl首行就已明確寫上了:
#!e:/perl/bin/perl
為何還會有問題呢?


順便請教一下:
以下的意思是說若使用 ScriptInterpreterSource Registry 當server收到script file的請求時可能會連帶開啟server預設執行該script的程式嗎?....抱歉我英文不大行...
---------------------------------------------------------------------------
Security
Be careful when using ScriptInterpreterSource Registry with ScriptAlias'ed directories, because Apache will try to execute every file within this directory. The Registry setting may cause undesired program calls on files which are typically not executed. For example, the default open command on .htm files on most Windows systems will execute Microsoft Internet Explorer, so any HTTP request for an .htm file existing within the script directory would start the browser in the background on the server. This is a good way to crash your system within a minute or so.
---------------------------------------------------------------------------

會如此問是因為這幾天在試hello.pl時,只要於browser的網址列打上該檔的位址,一按enter鍵後,隨即就會開啟一個dreamweaver.exe,且按幾次enter件就連帶開啟幾個dreamweaver.exe...稿的我一點頭緒也沒有. :|||: