主題: 求救,不能發新帖的怪問題. 作者: alan_y 於 六月 25, 2008, 12:32:33 下午 我的blog狀況很奇怪,當我想發帖的時侯要先按草稿去發表然後再轉後定稿來公佈,否則會出現Error 500.
而現在情況更壞了,上面的方法也不行,只能打一兩個英文字去開一張新帖, 然後定稿發表,在Apache的Error log中找到這些, 每當出現了500 error便全都個網站我也不能進要刪掉所有cookies才可再進去, 希望各位大大能幫我解決這個困擾半年的問題 :'( [Wed Jun 25 13:09:44 2008] [error] [client 203.80.68.72] mod_security: Access denied with code 500. Error parsing cookies: Error normalising cookie value: Invalid URL encoding detected: invalid characters used [severity "EMERGENCY"] [hostname "www.mindyourhead.hk"] [uri "/index/admin.php"] [Wed Jun 25 13:09:44 2008] [error] [client 203.80.68.72] File does not exist: /home/mindyourhe/domains/mindyourhead.hk/public_html/500.shtml [Wed Jun 25 13:12:32 2008] [error] [client 203.80.68.72] mod_security: Access denied with code 500. Error parsing cookies: Error normalising cookie value: Invalid URL encoding detected: invalid characters used [severity "EMERGENCY"] [hostname "www.mindyourhead.hk"] [uri "/index/admin.php"] [Wed Jun 25 13:12:32 2008] [error] [client 203.80.68.72] File does not exist: /home/mindyourhe/domains/mindyourhead.hk/public_html/500.shtml [Wed Jun 25 13:12:33 2008] [error] [client 203.80.68.72] mod_security: Access denied with code 500. Error parsing cookies: Error normalising cookie value: Invalid URL encoding detected: invalid characters used [severity "EMERGENCY"] [hostname "www.mindyourhead.hk"] [uri "/index/admin.php?op=newPost"] [Wed Jun 25 13:12:33 2008] [error] [client 203.80.68.72] File does not exist: /home/mindyourhe/domains/mindyourhead.hk/public_html/500.shtml [Wed Jun 25 13:13:25 2008] [error] [client 203.80.68.72] File does not exist: /home/mindyourhe/domains/mindyourhead.hk/public_html/favicon.ico [Wed Jun 25 13:13:25 2008] [error] [client 203.80.68.72] File does not exist: /home/mindyourhe/domains/mindyourhead.hk/public_html/404.shtml [Wed Jun 25 13:13:25 2008] [error] [client 203.80.68.72] File does not exist: /home/mindyourhe/domains/mindyourhead.hk/public_html/favicon.ico [Wed Jun 25 13:13:25 2008] [error] [client 203.80.68.72] File does not exist: /home/mindyourhe/domains/mindyourhead.hk/public_html/404.shtml [Wed Jun 25 13:15:56 2008] [error] [client 203.80.68.72] mod_security: Access denied with code 500. Error parsing cookies: Error normalising cookie value: Invalid URL encoding detected: invalid characters used [severity "EMERGENCY"] [hostname "www.mindyourhead.hk"] [uri "/index/admin.php"] [Wed Jun 25 13:15:56 2008] [error] [client 203.80.68.72] File does not exist: /home/mindyourhe/domains/mindyourhead.hk/public_html/500.shtml [Wed Jun 25 13:15:59 2008] [error] [client 203.80.68.72] mod_security: Access denied with code 500. Error parsing cookies: Error normalising cookie value: Invalid URL encoding detected: invalid characters used [severity "EMERGENCY"] [hostname "www.mindyourhead.hk"] [uri "/index/imgs/admin/icon_warning-16.png"] [Wed Jun 25 13:15:59 2008] [error] [client 203.80.68.72] File does not exist: /home/mindyourhe/domains/mindyourhead.hk/public_html/500.shtml [Wed Jun 25 13:16:23 2008] [error] [client 203.80.68.72] mod_security: Access denied with code 500. Error parsing cookies: Error normalising cookie value: Invalid URL encoding detected: invalid characters used [severity "EMERGENCY"] [hostname "www.mindyourhead.hk"] [uri "/index/admin.php?op=blogSelect&blogId=1"] [Wed Jun 25 13:16:23 2008] [error] [client 203.80.68.72] File does not exist: /home/mindyourhe/domains/mindyourhead.hk/public_html/500.shtml [Wed Jun 25 13:17:05 2008] [error] [client 203.80.68.72] mod_security: Access denied with code 500. Error parsing cookies: Error normalising cookie value: Invalid URL encoding detected: invalid characters used [severity "EMERGENCY"] [hostname "www.mindyourhead.hk"] [uri "/index/admin.php"] [Wed Jun 25 13:17:05 2008] [error] [client 203.80.68.72] File does not exist: /home/mindyourhe/domains/mindyourhead.hk/public_html/500.shtml [Wed Jun 25 13:17:47 2008] [error] [client 203.80.68.72] mod_security: Access denied with code 500. Error parsing cookies: Error normalising cookie value: Invalid URL encoding detected: invalid characters used [severity "EMERGENCY"] [hostname "www.mindyourhead.hk"] [uri "/index/admin.php"] [Wed Jun 25 13:17:47 2008] [error] [client 203.80.68.72] File does not exist: /home/mindyourhe/domains/mindyourhead.hk/public_html/500.shtml [Wed Jun 25 13:18:02 2008] [error] [client 203.80.68.72] mod_security: Access denied with code 500. Error parsing cookies: Error normalising cookie value: Invalid URL encoding detected: invalid characters used [severity "EMERGENCY"] [hostname "www.mindyourhead.hk"] [uri "/index/admin.php"] [Wed Jun 25 13:18:02 2008] [error] [client 203.80.68.72] File does not exist: /home/mindyourhe/domains/mindyourhead.hk/public_html/500.shtml [Wed Jun 25 13:18:42 2008] [error] [client 66.249.73.121] File does not exist: /home/mindyourhe/domains/mindyourhead.hk/public_html/robots.txt [Wed Jun 25 13:18:42 2008] [error] [client 66.249.73.121] File does not exist: /home/mindyourhe/domains/mindyourhead.hk/public_html/404.shtml 主題: Re: 求救,不能發新帖的怪問題. 作者: alan_y 於 六月 26, 2008, 04:45:35 上午 沒人能救救我嗎 :'(
我不能進去發表新文章了..... 很緊急 :-S 主題: Re: 求救,不能發新帖的怪問題. 作者: markwu 於 七月 01, 2008, 08:19:43 下午 這可能要看你的 mod_security 是如何設定的,你能查出 mod_security 是因為哪一條 rules 才把 lifetype 擋掉的嗎?
Mark 主題: Re: 求救,不能發新帖的怪問題. 作者: markwu 於 七月 01, 2008, 08:32:40 下午 另外,能不能告訴我
SecFilterCheckURLEncoding 與 SecFilterForceByteRange 的設定,還有你在作了什麼動作之後這個情況一定會發生。 至少有這樣的資訊,我才能幫你。 Mark 主題: Re: 求救,不能發新帖的怪問題. 作者: alan_y 於 七月 04, 2008, 12:22:07 上午 不好意思Mark大大,謝謝你的幫忙,我遲了上來回應,我的伺服器是租用空間來
不知道有沒有方法可以查到mod_security的問題 :-$因為我只是新手不知如何入手. 我只能用direct admin或ftp管理/// 所以可能要用email問他們 error log中只有這個 程式碼: Access denied with code 500. Error parsing cookies: Error normalising cookie value: Invalid URL encoding detected: invalid characters used [severity "EMERGENCY"] [hostname "www.mindyourhead.hk"] [uri "/index/admin.php"] 主題: Re: 求救,不能發新帖的怪問題. 作者: markwu 於 七月 07, 2008, 10:31:10 上午 Hi Alan:
你有辦法請你的需你主機商將 mod_security 關掉嗎?如果他不能關掉,你就不能用 autosave 的功能了。 找一下 .\templates\admin\newpost.template 中的這一行: <script type="text/javascript" src="js/ui/autosave.js"></script> 把他移除。然後清空 Cookie,再試試看。 Mark 主題: Re: 求救,不能發新帖的怪問題. 作者: markwu 於 七月 07, 2008, 11:05:16 上午 少說了一個,同一個檔案中的倒數第六行之後:
<script type="text/javascript"> initialAutoSave(); startAutoSave(); </script> 把這一段也移除,然後試試看。 Mark |