Comments (4)
Try this:
check_http_send "GET /health HTTP/1.0\r\n Host: example.com\r\n\r\n";
On 2012-6-20 19:54, EugeneWHZ wrote:
Hi,
First of all thank you for great Nginx module!
During the healthcheck configuration I got an issue with the check_http_send directive. I need to specify the HOST header in my GET request, and as I know the HOSt header should start from new line, but I am having troubles with it.
I tried the following configurations and all of them are not working. Please advice how to correctly add the HOST header to the GET request?
check_http_send "GET /health HTTP/1.0\r\n\r\n Host: example.com\r\n\r\n";
check_http_send "GET /health HTTP/1.0"
'Host: example.com';Thanks in advance!
Eugene
Reply to this email directly or view it on GitHub:
#43
Thanks,
-Weibin Yao
from nginx_tcp_proxy_module.
Hi,
Thank you for your prompt reply! I have tried to put the check_http_send
"GET /health HTTP/1.0\r\n Host: example.com\r\n\r\n"; but I still get
404 error.
Have you tried to use the Host header before? Do you have any other
ideas how to input the HOST header?
Thank you,
Eugene
On 20.06.2012 17:16, Weibin Yao(姚伟斌) wrote:
Try this:
check_http_send "GET /health HTTP/1.0\r\n Host: example.com\r\n\r\n";
On 2012-6-20 19:54, EugeneWHZ wrote:
Hi,
First of all thank you for great Nginx module!
During the healthcheck configuration I got an issue with the check_http_send directive. I need to specify the HOST header in my GET request, and as I know the HOSt header should start from new line, but I am having troubles with it.
I tried the following configurations and all of them are not working. Please advice how to correctly add the HOST header to the GET request?
check_http_send "GET /health HTTP/1.0\r\n\r\n Host: example.com\r\n\r\n";
check_http_send "GET /health HTTP/1.0"
'Host: example.com';Thanks in advance!
Eugene
Reply to this email directly or view it on GitHub:
#43
from nginx_tcp_proxy_module.
Remove the space before the Host field? Have you add this page "/health"
in the backend?
GET /health HTTP/1.0\r\nHost: example.com\r\n\r\n
I have not used Host header before. But I think It should work.
On 2012-6-20 22:54, EugeneWHZ wrote:
Hi,
Thank you for your prompt reply! I have tried to put the check_http_send
"GET /health HTTP/1.0\r\n Host: example.com\r\n\r\n"; but I still get
404 error.Have you tried to use the Host header before? Do you have any other
ideas how to input the HOST header?Thank you,
EugeneOn 20.06.2012 17:16, Weibin Yao(姚伟斌) wrote:
Try this:
check_http_send "GET /health HTTP/1.0\r\n Host: example.com\r\n\r\n";
On 2012-6-20 19:54, EugeneWHZ wrote:
Hi,
First of all thank you for great Nginx module!
During the healthcheck configuration I got an issue with the check_http_send directive. I need to specify the HOST header in my GET request, and as I know the HOSt header should start from new line, but I am having troubles with it.
I tried the following configurations and all of them are not working. Please advice how to correctly add the HOST header to the GET request?
check_http_send "GET /health HTTP/1.0\r\n\r\n Host: example.com\r\n\r\n";
check_http_send "GET /health HTTP/1.0"
'Host: example.com';Thanks in advance!
Eugene
Reply to this email directly or view it on GitHub:
#43
Reply to this email directly or view it on GitHub:
#43 (comment)
Thanks,
-Weibin Yao
from nginx_tcp_proxy_module.
Hi,
Thank you so much! Removing space before the Host field resolved the issue!
Thank you for your kind assistance!
Best Regards
Eugene
from nginx_tcp_proxy_module.
Related Issues (20)
- What is the tcp proxy's strategy?
- 期待仿照http mirror功能有tcp mirror功能
- gcc 7 failure with -Werror=implicit-fallthrough=
- Tengine 2.2.2 编译报错
- Make fails for nginx-1.15.0 HOT 6
- Doesnt work with recent NGINX builds
- make build error with nginx 1.14.2 HOT 3
- config ?
- The problem when building with nginx-1.14.2 ./configure with --with-threads make error: ‘ngx_event_t’ has no member named ‘lock’
- 在nginx最新版的1.15.9版本上编译报错!找了很多资料都无法解决! HOT 7
- src/http/ngx_http_upstream_round_robin.h:62:37: error: duplicate member ‘check_index’
- nginx: [emerg] "check_shm_size" directive is duplicate
- make error
- Centos7-2009(内核:3.10.0-1160.el7)nginx-1.20.1 + nginx_tcp_proxy_module-0.4.5编译时报错
- nginx 1.20.2 版本编译错误 HOT 3
- server支持配置域名吗 HOT 6
- compile failed.how to resolve it? HOT 3
- Compilation fails with Nginx 1.23 HOT 4
- how to ws to proxy tcp socket?
- FTP proxy configuration in virtual host
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nginx_tcp_proxy_module.