18
votes
Accepted
Is the Host: header required over SSL?
A HTTP/1.0 request does not need a Host according to the standard, but this header is still usually needed in practice to decide on multi-domain setups which content to serve. But if this header is ...
17
votes
Accepted
Configure HAProxy to include host headers for different backends
I'm not sure if the following will work, and can't test right now, but maybe this is still helpful. (I'll have a look again later with some more time):
Solution 1:
backend nodes
mode http
...
6
votes
Is the Host: header required over SSL?
To answer the part of the question added in an update,
Why does it need the Host: header when SNI is on?
"Need" is a strong word but it helps to understand that SNI and HTTP headers ...
5
votes
How to prevent "host header injection vulnerability" in Nginx proxy server
The "host header injection vulnerability" means that your server is accepting any Host header even if it is not a valid hostname for any of your web sites. In your case you have configured a ...
3
votes
Invalid HTTP_HOST header. NGINX config not preventing localhost invalid headers from IP port scanners hitting django
You are missing a default_server block for HTTPS. Therefore all requests for any host via HTTPS are passed into your app.example.com server block (I changed it to example domain).
Your configuration ...
3
votes
Accepted
Determine which server in VM environment to forward request to based on host header(s) on one network adapter
Create a new VM within your ESXi environment that runs nginx and use the proxy module to direct your traffic:
server {
listen 80;
server_name hostname1 hostname2 hostname3 ... ...
2
votes
Publish different sites using a single IP and pfSense - Squid
Solved:
I had to spend some intimate time with the squid manual, highly recommended to really understand how it works: http://www.visolve.com/squid/whitepapers/reverseproxy.php
After reading the ...
1
vote
Accepted
UseCanonicalName On applied however host of request header still wasn't change
The UseCanonicalName is not related to redirections but to self-referential URLs.
Off: "form self-referential URLs using the hostname and port supplied by the client"
On: "use the hostname and port ...
1
vote
Configure HAProxy to include host headers for different backends
I want to complement gf_ answer. So the idea of his answer is to add a custom Host header which value is the source hostname itself. In solution one, basically, he set the header manually with a ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
host-headers × 39iis × 15
iis-6 × 8
ssl × 7
iis-7 × 6
https × 5
nginx × 4
virtualhost × 3
apache-2.2 × 2
domain-name-system × 2
security × 2
windows-server-2003 × 2
apache-2.4 × 2
proxy × 2
ssl-certificate × 2
reverse-proxy × 2
http × 2
hosting × 2
amazon-web-services × 1
debian × 1
amazon-ec2 × 1
routing × 1
vmware-esxi × 1
.htaccess × 1
authentication × 1