FCKeditor 在Apache+Tomcat整合的环境中使用调试的问题
2009-09-15 10:26
816 查看
发现在通过网址的8080(Tomcat)端口访问,是可以上传和浏览文件的
而80(Apache)端口访问网站,不能使用,默认会去找php连接,
发现,干脆改掉访问地址
经查 ,需要修改FCKConfig.BasePath的默认,再调试发现,位于
/fckeditor/editor/js/fckeditorcode_ie.js文件第34行
var FCKConfig=FCK.Config={};if (document.location.protocol=='file:'){FCKConfig.BasePath=decodeURIComponent(document.location.pathname.substr(1));FCKConfig.BasePath=FCKConfig.BasePath.replace(////gi,'/');var sFullProtocol=document.location.href.match(/^(file/://{2,3})/)[1];if (FCKBrowserInfo.IsOpera) sFullProtocol+='localhost/';FCKConfig.BasePath=sFullProtocol+FCKConfig.BasePath.substring(0,FCKConfig.BasePath.lastIndexOf('/')+1);}else FCKConfig.BasePath=document.location.protocol+'//'+document.location.host+document.location.pathname.substring(0,document.location.pathname.lastIndexOf('/')+1);
修改为:
FCKConfig.BasePath=document.location.protocol+'//'+document.location.hostname+':8080'+document.location.pathname.substring(0,document.location.pathname.lastIndexOf('/')+1);
这样,就可以通过80端口正常访问了。
而80(Apache)端口访问网站,不能使用,默认会去找php连接,
发现,干脆改掉访问地址
经查 ,需要修改FCKConfig.BasePath的默认,再调试发现,位于
/fckeditor/editor/js/fckeditorcode_ie.js文件第34行
var FCKConfig=FCK.Config={};if (document.location.protocol=='file:'){FCKConfig.BasePath=decodeURIComponent(document.location.pathname.substr(1));FCKConfig.BasePath=FCKConfig.BasePath.replace(////gi,'/');var sFullProtocol=document.location.href.match(/^(file/://{2,3})/)[1];if (FCKBrowserInfo.IsOpera) sFullProtocol+='localhost/';FCKConfig.BasePath=sFullProtocol+FCKConfig.BasePath.substring(0,FCKConfig.BasePath.lastIndexOf('/')+1);}else FCKConfig.BasePath=document.location.protocol+'//'+document.location.host+document.location.pathname.substring(0,document.location.pathname.lastIndexOf('/')+1);
修改为:
FCKConfig.BasePath=document.location.protocol+'//'+document.location.hostname+':8080'+document.location.pathname.substring(0,document.location.pathname.lastIndexOf('/')+1);
这样,就可以通过80端口正常访问了。
相关文章推荐
- Win7系统64位环境下使用Apache——Apache2.4整合Tomcat与mod_jk
- apache+tomcat整合无法使用serlvlet的404问题
- windows环境下使用JK1.2整合apache2.2和tomcat7
- Apache与Tomcat整合问题的新方法
- SSH整合时是使用fckeditor编辑器及出现问题
- 使用Apache的代理,整合多个Tomcat
- 关于mod_jk整合apache+tomcat中问题求大神详解
- zf2框架的PHP程序,测试环境使用apache,准生产环境使用nginx,出现的问题
- Apache的安装和使用、二级域名的配置和使用和Apache+tomcat整合
- 使用Apache的代理,整合多个Tomcat
- apache 整合tomcat环境搭建 +ssl协议 (终结版)
- centOS配置APACHE整合tomcat遇到问题tomcat下wevapps/root下正常
- JSP环境配置 Apache2.2和Tomcat5.5整合
- 在Windows环境下的Tomcat + Apache配置整合,集群
- Ubuntu安装JSP语言环境(apache与tomcat整合)
- apache和tomcat整合很奇怪的问题
- 005商城项目:ssm框架的整合成功之后的问题:使用maven的tomcat插件时的debug
- IDEA 使用Tomcat插件进行调试web程序时,1099端口被占用问题
- apache+tomcat整合后的编码问题
- jeecg使用内嵌tomcat进行调试开发时需要注意的问题