ihs + websphere7 如何自定义 500 页面 (在ihs启动并且websphere未启动的情况下,并且存在虚拟主机)

liu124983205 2012-11-07 03:11:35
如题. 本人修改了 httpd.conf 中的
DocumentRoot "C:/IBM/HTTPServer1/htdocs"
ErrorDocument 500 "/error.html"
ErrorDocument 404 "/error.html"
可以在访问如下地址http://localhost 时实现404状态 跳转到 error.html

当前应用的虚拟主机为test.com
在ihs启动并且websphere未启动的情况下
访问http://test.com 依然是默认的500错页面 , 没有跳转到自定义error.html页面

之后又添加
<VirtualHost *:80>
ServerAdmin abc@com
ServerName localhost
ServerAlias test.com
DocumentRoot "C:/IBM/HTTPServer1/htdocs"
ErrorDocument 500 /error.html
ErrorDocument 404 /error.html
ErrorLog /error.log
CustomLog /access.log common
</VirtualHost>

仍然无效... 请问如何设置才对
...全文
299 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
liu124983205 2012-11-08
  • 打赏
  • 举报
回复
有人吗.. 求教
liu124983205 2012-11-07
  • 打赏
  • 举报
回复
liu124983205 2012-11-07
  • 打赏
  • 举报
回复

2,633

社区成员

发帖
与我相关
我的任务
社区描述
WebSphere 是 IBM 的软件平台。它包含了编写、运行和监视全天候的工业强度的随需应变 Web 应用程序和跨平台、跨产品解决方案所需要的整个中间件基础设施,如服务器、服务和工具。
社区管理员
  • WebSphere社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧