Questions tagged [hostheader]

16 questions
11
votes
1 answer

Nginx: Override host header when using fastcgi_pass

I'm trying to override the http host header that is passed to my php-based application (specifically Phabricator) when using fastcgi_pass. I've found a lot of examples for doing this when using proxy_pass, but I can't seem to find an example of how…
Joe J
  • 9,985
  • 16
  • 68
  • 100
6
votes
1 answer

Add a IIS host header to website programmatically

I would like to setup a admin page (ASP.NET/C#) that can add IIS host headers to the website that the admin page is hosted on. Is this possible? I dont want to add a http header - I want to mimick the action of going into IIS manually, bringing up…
billfredtom
  • 1,634
  • 2
  • 13
  • 11
6
votes
1 answer

Can Tomcat accept HTTP 1.1 requests without a Host header?

HTTP 1.1 states: "A client MUST include a Host header field in all HTTP/1.1 request messages" However, the machines I am working on send out this exact POST (containing coordinates), which I do not have access to change: POST /touch…
user1684196
  • 61
  • 1
  • 3
1
vote
2 answers

Forwarding based on Host Headers

I am trying to get around ISP limitations of 1 IP address. Here is what I am trying to do. I have two web servers running internally on my network. One is my main IIS box that runs 4 or 5 sites and I just added a windows home server. I have…
dotnetgeek
  • 275
  • 1
  • 4
  • 14
1
vote
0 answers

IIS7: Have host header route to specific down folder and page

I have two host headers for a single webpage: www.a.com www.b.com both currently point to the index.html page. I want www.b.com to go to a specific directory and page: www.b.com/otherfolder/index.html Is this possible through the IIS UI or do I…
thedeepfield
  • 6,138
  • 25
  • 72
  • 107
1
vote
2 answers

Get original HOST address when the ASP.NET server is behind an ISA server as a reverse proxy

I'd like to know how could I get the original HOST IP when the web server is behind an ISA server acting as a reverse proxy. Other reverse proxies -like squid- add the "X_FORWARDED_FOR" value to the request header, but ISA server doesn't. Thanks
DanC
  • 8,595
  • 9
  • 42
  • 64
0
votes
1 answer

IIS Host Headers and non WWW to WWW

I know there's a bunch of examples on how to redirect your non www to your www site, but I'm not using any rewrite utils/ISAPI. On my Windows 2008R2 box, I have several sites setup in IIS. I setup host headers for both www and non www versions. …
ElHaix
  • 12,846
  • 27
  • 115
  • 203
0
votes
3 answers

Host name validation in php

How to validate the host name in PHP? That is if suppose am running my application server on IP:192.168.1.77 and if the request contains the Host name other than 192.168.1.77 it should not allow the further processing. Any help or suggestion would…
AmGates
  • 2,127
  • 16
  • 29
0
votes
1 answer

MVC Routing / HostHeader does not work when I use RequireHttps

I'm currently experiencing an issue whereby my MVC site is not responding correctly using IIS 6. I've setup a url as http://mysite.co.uk which automatically redirects to the correct MVC home page. As the site contains sensitive information I have…
Brian Scott
  • 9,221
  • 6
  • 47
  • 68
0
votes
1 answer

What is best method to reproduce parked page like behavior in IIS7 + ASP.NET

I have created parked page like behavior in the past by adding many host headers for different domains to one IIS7 website entry and changing the content of the pages dynamically. I'm wondering if their isn't a different or better way to handle so…
Corgalore
  • 2,486
  • 2
  • 23
  • 32
0
votes
1 answer

How to get site context/information during the PreapplicationStartMethod

When you run the same web based application as a multi-tenant application for different clients is there a way during the PreapplicationStartMethod to gain some kind of context to the site that is being started? More specifically I'd like to get…
Mike
  • 1,405
  • 1
  • 17
  • 27
0
votes
0 answers

IIS multiple-IP-address server with host header conflicts with Owin Self-Host Service

I'm trying to get my windows service working and running into a bit of a conundrum. IIS has a UCC cert installed with a host name, but I want to have my OWIN self-host windows service host share the host name. However, if the IIS site is on and the…
Toadicus Rex
  • 35
  • 1
  • 6
0
votes
1 answer

How to use host headers in IIS for a web application?

I have configured a website in IIS with a host header, so that I can call the url customhostheader/ and the website will be shown. When I try to publish my web project, I get the error that some sections in web.config are registered as…
froggy
  • 51
  • 2
  • 11
0
votes
0 answers

ipad/iphone can't open my website

I have a website setup with IIS and Hostheader, the site won't open on iPhone/iPad with "server cannot be found" for example: the domain I want to show: www.example.com the primary domain I have: www.myorigin.com I configure the DNS on…
triston
  • 493
  • 1
  • 10
  • 24
0
votes
1 answer

403 Forbidden from IIS 6 using host header, logs as 200

I have a Windows Server 2003 server with IIS6. I have one main site that works fine. I'm trying to create an alternate URL for a folder under that main site. I'm trying to setup a host header at the moment (something I've done many times) and am…
eol
  • 431
  • 3
  • 11
1
2