How to determine whether your http request starting from localhost is correctly forwarded

Stella981
• 阅读 504

Created by Jerry Wang, last modified on Mar 09, 2015

Requirement: you are using WebIDE to run your application. The metadata request is sent by WebUDE via the following url:
How to determine whether your http request starting from localhost is correctly forwarded
And you would like to know exactly which target application server this request has been forwarded to.

Approach1

you can identify the target application server name GM6 via the neo-app.json:
How to determine whether your http request starting from localhost is correctly forwarded
Set the breakpoint on the method below in GM6 and then re-launch your application.
If the breakpoint is triggered, it could be confirmed that your http request is correctly forwarded to GM6:
How to determine whether your http request starting from localhost is correctly forwarded

Approach2: ( only works for Eclipse project )

Switch on development mode by modifying web.xml:
How to determine whether your http request starting from localhost is correctly forwarded
Then in http response header you could easily find which application server the http request has been forwarded to:
How to determine whether your http request starting from localhost is correctly forwarded

Approach3

change the destination file name on purpose, for example from GM6 to GM61:
How to determine whether your http request starting from localhost is correctly forwarded

And then it is expected to see the error message that the missing destination configuration file for GM6:
How to determine whether your http request starting from localhost is correctly forwarded
And debug when, where and how the destination file is used:

How to determine whether your http request starting from localhost is correctly forwarded How to determine whether your http request starting from localhost is correctly forwarded When you have changed the application server host name, How to determine whether your http request starting from localhost is correctly forwarded

the error changes:
How to determine whether your http request starting from localhost is correctly forwarded

要获取更多Jerry的原创文章,请关注公众号"汪子熙":
How to determine whether your http request starting from localhost is correctly forwarded

本文同步分享在 博客“汪子熙”(CSDN)。
如有侵权,请联系 support@oschina.cn 删除。
本文参与“OSC源创计划”,欢迎正在阅读的你也加入,一起分享。

点赞
收藏
评论区
推荐文章
blmius blmius
3年前
MySQL:[Err] 1292 - Incorrect datetime value: ‘0000-00-00 00:00:00‘ for column ‘CREATE_TIME‘ at row 1
文章目录问题用navicat导入数据时,报错:原因这是因为当前的MySQL不支持datetime为0的情况。解决修改sql\mode:sql\mode:SQLMode定义了MySQL应支持的SQL语法、数据校验等,这样可以更容易地在不同的环境中使用MySQL。全局s
Wesley13 Wesley13
3年前
java将前端的json数组字符串转换为列表
记录下在前端通过ajax提交了一个json数组的字符串,在后端如何转换为列表。前端数据转化与请求varcontracts{id:'1',name:'yanggb合同1'},{id:'2',name:'yanggb合同2'},{id:'3',name:'yang
待兔 待兔
4个月前
手写Java HashMap源码
HashMap的使用教程HashMap的使用教程HashMap的使用教程HashMap的使用教程HashMap的使用教程22
Souleigh ✨ Souleigh ✨
3年前
前端性能优化 - 雅虎军规
无论是在工作中,还是在面试中,web前端性能的优化都是很重要的,那么我们进行优化需要从哪些方面入手呢?可以遵循雅虎的前端优化35条军规,这样对于优化有一个比较清晰的方向.35条军规1.尽量减少HTTP请求个数——须权衡2.使用CDN(内容分发网络)3.为文件头指定Expires或CacheControl,使内容具有缓存性。4.避免空的
Wesley13 Wesley13
3年前
mysql设置时区
mysql设置时区mysql\_query("SETtime\_zone'8:00'")ordie('时区设置失败,请联系管理员!');中国在东8区所以加8方法二:selectcount(user\_id)asdevice,CONVERT\_TZ(FROM\_UNIXTIME(reg\_time),'08:00','0
Stella981 Stella981
3年前
HIVE 时间操作函数
日期函数UNIX时间戳转日期函数: from\_unixtime语法:   from\_unixtime(bigint unixtime\, string format\)返回值: string说明: 转化UNIX时间戳(从19700101 00:00:00 UTC到指定时间的秒数)到当前时区的时间格式举例:hive   selec
Wesley13 Wesley13
3年前
oracle游标的例子
declare    cursor ca is select id_no, name from user where ym201401;begin    for cb in ca loop        update path set enamecb.name where id_nocb.id
Stella981 Stella981
3年前
Logstash收集nginx访问日志和错误日志
1、收集访问日志1)、首先是要在nginx里面配置日志格式化输出log_formatmain"$http_x_forwarded_for|$time_local|$request|$status|$body_bytes_sent|$request_body|$content_length|$http_ref
Wesley13 Wesley13
3年前
MySQL部分从库上面因为大量的临时表tmp_table造成慢查询
背景描述Time:20190124T00:08:14.70572408:00User@Host:@Id:Schema:sentrymetaLast_errno:0Killed:0Query_time:0.315758Lock_
Python进阶者 Python进阶者
10个月前
Excel中这日期老是出来00:00:00,怎么用Pandas把这个去除
大家好,我是皮皮。一、前言前几天在Python白银交流群【上海新年人】问了一个Pandas数据筛选的问题。问题如下:这日期老是出来00:00:00,怎么把这个去除。二、实现过程后来【论草莓如何成为冻干莓】给了一个思路和代码如下:pd.toexcel之前把这