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

顯示結果從第 1 筆 到 2 筆,共計 2 筆
  1. #1
    會員 b90220208 的大頭照
    註冊日期
    2003-06-25
    討論區文章
    577

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

    我裝的是appserv2.5.1 for win32

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



  2. #2
    會員 b90220208 的大頭照
    註冊日期
    2003-06-25
    討論區文章
    577
    我參考了
    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...稿的我一點頭緒也沒有.

類似的主題

  1. 【求助】NFS掛載的語言編碼問題
    作者:REN 所在討論版:-- FreeBSD & Linux 討 論 版
    回覆: 0
    最後發表: 2005-03-05, 10:12 AM
  2. 【求助】Outlook 2003 寄郵件的編碼問題..
    作者:maxdc 所在討論版:-- HELP ME 電 腦 軟 硬 體 急 救 版
    回覆: 0
    最後發表: 2004-04-26, 10:07 PM
  3. 【求助】JNDI的編碼要從哪設定呢?
    作者:e0159000 所在討論版:-- 網 路 技 術 版
    回覆: 0
    最後發表: 2003-04-08, 08:57 AM
  4. 編碼問題
    作者:dick 所在討論版:-- Windows 討 論 版
    回覆: 1
    最後發表: 2002-03-27, 09:46 AM
  5. IE的編碼問題
    作者:3597 所在討論版:-- Windows 討 論 版
    回覆: 2
    最後發表: 2001-11-07, 09:55 AM

 

此網頁沒有從搜尋引擎而來的訪客

發表文章規則

  • 不可以發表新主題
  • 不可以回覆文章
  • 不可以上傳附加檔案
  • 不可以編輯自己的文章
  •