What’s the best way to detect whether an incoming request is secure?
Is there a preferred method of detecting HTTP vs. HTTPS on an incoming request to an F5 load-balancer? We are attempting to detect secure vs. non-secure with an iRule and pass a corresponding header flag along to my web servers. Here’s what we have so far (untested): when HTTP_REQUEST_SEND { clientside { if {[TCP::local_port] == 443} { HTTP::header replace HTTP_X_FORWARDED_PROTO “https” } else { HTTP::header replace HTTP_X_FORWARDED_PROTO “http” } } } As you can see, [...]
Continue Reading »Host Header configuration for IIS
I am having some problems setting up a host header for a site. I want to create a second website like this using host headers in IIS Site: masteradmin Host Header: none XXX.XXX.45.28Site: betamasteradmin Host Header: betamasteradmin XXX.XXX.45.28 When I try and run my app i get a 504. Here is the result of the nslookup for betamasteradmin Server: it.example.com Address: XXX.XXX.44.40Name: masteradmin.it.example.com Address: XXX.XXX.45.28 Aliases: betamasteradmin.it.example.com Try adding another host header with the full [...]
Continue Reading »IIS7.5 host headers multiple sites on localhost
I have troubles with iis7 host headers. I’d like to create a domain for managing mysql with phpmyadmin. I tried to configure with these settings without success :S The browser displays the localhost instead of the phpmyadmin page… Can anybody tell me how should I configure the iis? Nah the problem was, that the documentRoot was overwritten by php.ini. I cleared the doc_root parameter from that file, and everything is working properly now. Check more [...]
Continue Reading »How do I create host headers for internal ip address in IIS 6.0?
In IIS 6.0 I need to create host headers to host multiple websites on our web servers. We are using network load balancing manager to have a clustered web farm of three servers. Given that we use the internal ip address of the “group” of servers, how do I set up a host header for the internal IP address? Is the header composed of the internal IP address of each node machine or the ip [...]
Continue Reading »IIS6 windows authentication failure in secondary domain
Technical Setup We have a website set with no anonymous access on a webserver (webtest.work.local), and making use of two hostheader values (with appropriate DNS entries created): 1. mySite.uat.work.local 2. mySite.uat.companyName.co.uk The domain we use is work.local IIS Directory security is set to: Enamble Anonymouse Access = False (unticked) Integrated Windows Authentication = True (ticked) Digest Authentication = True (ticked) Realm = work.local Problem When I access mySite.uat.work.local it correctly identifies the currently logged in [...]
Continue Reading »How can I remove the default host header for SSL requests in IIS6
I have multiple sites setup on IIS 6 with host headers. One of those sites has an SSL certificate installed. So now if any of the non-SSL-enabled sites is requested with https it loads the SSL-enabled site and gives a security warning. How can I prevent the non-SSL sites from loading anything if they are requested with https? I would prefer it to throw the standard “Server not found” message. Is that possible? The only [...]
Continue Reading »TFS2010 – Correctly setting up Host Header
We have a TFS2010 install on a Win2008R2 Server running IIS7. I’ve created a host header for TFS and want to use that instead of machineName:8080. I am getting weird behavior from it now. Every other time I log in I get: TF31002: Unable to connect to this Team Foundation Server: http://web2/tfs. Team Foundation Server Url: http://web2/tfs. Possible reasons for failure include: – The name, port number, or protocol for the Team Foundation Server is [...]
Continue Reading »how to? 1 domain name, 1 ISP Static IP, 1 router, 3 physical web Servers
I have 1 Static IP from my ISP, 58.59.60.61 I have 3 local physical web servers: Win2008 IIS 7, local IP 192.168.10.11, mydomain.com Ubuntu Apache2, local IP 192.168.10.12, subdomain1.mydomain.com Win2003 IIS 6, local IP 192.168.10.13, subdomain2.mydomain.com I have 1 domain name, mydomain.com. It is configured this way: Host(A), @, 58.59.60.61 Host(A), subdomain1, 58.59.60.61 Host(A), subdomain2, 58.59.60.61 My router is a pfSense box. It forwards all port 80 traffic to a group alias called “WebServers,” which [...]
Continue Reading »How to configure host-header resolution in Windows Server 2003 IIS
i had a Windows 2000 server running two web-sites: Web-site: Newland IP Address TCP Port Host Header Name ================ ======== ================ (all unassigned) 80 Web-site: Matchstick IP Address TCP Port Host Header Name ================ ======== ================ (all unassigned) 80 matchstick.com (all unassigned) 80 www.matchstick.com (all unassigned) 80 m.matchstick.com And all was well. People requesting matchstick.com (or the other two variants) would get the Matchstick web-site. Requests for web-sites by any other name would go to [...]
Continue Reading »IIS HTTPS Host Headers
In IIS I need to map www.domain.com and domain.com to use a specific SSL certificate. I have tried using appcmd and editing applicationHost.config but I don’t see how to tie each host-header to a specific certificate. If I add the bindings in the config file and then look in the UI, no certificate is applied to bindings. The certificate is for www.domain.com but has an alias for domain.com. I’ve solved the question using this post. [...]
Continue Reading »Recent Posts
- Windows File Permissions and Attributes
- What is the easiest way to upgrade my existing Perl 5.14 to Perl 5.16 on FreeBSD 9 using the ports system?
- Know if mysql has done its job
- Redirect https .com to https .co.uk without a valid SSL cert on .com without DNS change
- Why is it a bad idea to use customer email as from address



