0
我有一個託管在Hostgator Cloud上的網站(運行Linux Cent OS如果有的話)以及它使用Codeigniter構建的網站。 我正在使用TinyMCE文本編輯器與Openmanager plugin上傳圖像。ModSecurity在Codeigniter環境中的TinyMCE上封鎖Openmanager插件
我的安裝目錄結構看起來是這樣的 -
.
├── application
| ├── controllers
| ├── models
| └── views
| └── desktop
| └── add_question.php
├── editor
| └── plugins
| └── openmanager
| ├── editor_plugin.js
| ├── editor_plugin_src.js
| ├── encodeexplorer.php
| ├── index.php
| ├── assets
| ├── langs
| └── php
└── upload
├── index.php
├── equations
| ├── imageCapture.php
| └── img
└── images
└── thumbs
在application/views/desktop/add_question.php
我初始化我的TinyMCE的實例與tinyMCE.init和配置openmanager這樣的 -
open_manager_upload_path: '../../../upload/',
現在,當我嘗試使用插件,我顯示此屏幕 -
在諮詢HostGator的,他們給我從他們身邊這個錯誤日誌條目 -
[error] [client 64.233.173.158]
ModSecurity: Access denied with code 406 (phase 2).
Match of "rx (/products/index\\\\.php\\\\?gallery=|connector=\\\\.\\\\./\\\\.\\\\./connectors|/admin/(?:structure/views/|[a-z]+/(?:edit|add))|/phpthumb\\\\.php\\\\?((?:w|h)=[0-9]+&)?((?:w|h)=[0-9]+&)?src=\\\\.\\\\./.*(?:pics|uploads|images)|/site-(?:builder|content)/|/node/(?:[0-9]+/(..."
against "REQUEST_URI" required.
[file "/opt/mod_security/10_asl_rules.conf"] [line "199"] [id "340007"] [rev "42"] [msg "Generic Path Recursion denied"] [data "/../"] [severity "CRITICAL"] [hostname "example.com"] [uri "/editor/plugins/openmanager/index.php"] [unique_id "WCSMh2yz9j4AAakC028AAAPw"]
我不能夠正確地解讀這個錯誤。究竟是什麼導致了這個錯誤?插件和整個應用程序在我的本地主機和另一個共享主機帳戶上正常工作,但它只是在這個HostGator上失敗!
我已經給了這個嘗試,不幸的是它沒有工作:( –