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

简介: Created by Jerry Wang, last modified on Mar 09, 2015Requirement: you are using WebIDE to run your application. The metadata request is sent by WebUDE via the following url:

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:


And you would like to know exactly which target application server this request has been forwarded to.

image.png

Approach1

you can identify the target application server name GM6 via the neo-app.json:

image.png

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:

image.png


Approach2: ( only works for Eclipse project )

Switch on development mode by modifying web.xml:

image.png

Then in http response header you could easily find which application server the http request has been forwarded to:

image.png


Approach3

change the destination file name on purpose, for example from GM6 to GM61:

image.png


And then it is expected to see the error message that the missing destination configuration file for GM6:


image.png


And debug when, where and how the destination file is used:


image.png


When you have changed the application server host name,

image.png


the error changes:

image.png


相关文章
|
6月前
|
安全 前端开发
Refused to load the image 'http://localhost:9527/favicon.ico'
Refused to load the image 'http://localhost:9527/favicon.ico'
31 0
|
5月前
|
JavaScript
如何让Vue项目本地运行的时候,同时支持http://localhost和http://192.168.X.X访问?
如何让Vue项目本地运行的时候,同时支持http://localhost和http://192.168.X.X访问?
|
3月前
|
机器学习/深度学习 前端开发 JavaScript
源映射错误:Error: request failed with status 404 源 URL:http://localhost:8080/bootstrap/js/axios-0.18.0.js
源映射错误:Error: request failed with status 404 源 URL:http://localhost:8080/bootstrap/js/axios-0.18.0.js
51 0
源映射错误:Error: request failed with status 404 源 URL:http://localhost:8080/bootstrap/js/axios-0.18.0.js
|
5月前
|
应用服务中间件 Android开发
Eclipse中启动tomcat后,无法访问localhost:8080(HTTP Status 404)
Eclipse中启动tomcat后,无法访问localhost:8080(HTTP Status 404)
79 0
|
6月前
Please enter your authorization code to login. More information in http://service.mail.qq.com/
Please enter your authorization code to login. More information in http://service.mail.qq.com/
50 0
|
7月前
|
Kubernetes Linux Docker
Kubernetes v1.22.1部署报错2: Get “http://localhost:10248/healthz“
Kubernetes v1.22.1部署报错2: Get “http://localhost:10248/healthz“
|
11月前
Uncaught DOMException: Blocked a frame with origin "http://localhost:8000" from accessing a cross-origin frame.
Uncaught DOMException: Blocked a frame with origin "http://localhost:8000" from accessing a cross-origin frame.
242 0
|
SQL 关系型数据库 MySQL
Navicat使用HTTP通道连接MySQL(远程mysql3306端口关闭或者只允许localhost链接状态)...
Navicat使用HTTP通道连接MySQL(远程mysql3306端口关闭或者只允许localhost链接状态)...
2905 0
Navicat使用HTTP通道连接MySQL(远程mysql3306端口关闭或者只允许localhost链接状态)...
|
Java
如何从外网通过HTTP和HTTPS访问本机localhost WEB服务器
HTTP和HTTPS访问本机localhost WEB服务器 内网主机上安装了WEB服务器,只能在局域网内或者本机上访问,怎样从公网也能访问本地WEB服务器? 本文将介绍使用holer实现的具体步骤。
2678 0