Forcing HTTP or HTTPS based on internal/external traffic

Posted on 2008-11-06
Last Modified: 2008-11-11
I have a server hosting a web application being used for both internal and external users.   I have applied an SSL certificate, but really only need to have external traffic secured.  Machine has 2 interfaces with external DNS routing traffic through and internal DNS routing traffic through  I have played with bindings but no real solution yet.  How can I have the server for HTTP/HTTPS based on the interface the traffic is entering.
Question by:macmahoooon
    LVL 18

    Expert Comment

    If you right-click on a website, and choose properties, you will see a drop down list of IP addresses.  I would create two sites, one using HTTP, and the other using HTTPS.  Bind the external one to the .12 IP, and the internal one to the .13 address.  (That is, rather than leaving it as "All Unassigned")

    Author Comment

    Yes this works to limit traffic as is what I have currently set up.  The problem is entering the domain still attempts to resolve http:// instead of htts://. Any redirects will obviously affect both internal and external, as well setting "Require SSL" blocks internal users from accessing the http only.
    LVL 18

    Accepted Solution

    Have a third site bound to the external IP, and have it redirect its pages to the same page, but with https instead.

    So, the first external site will not listen on port 80 (only 443).  The second external site will not listen on 443 (only 80).  There will not be a conflict this way.  You can set the home directory to "Redirect to URL", and if you mess around with the various settings for that, you can redirect all traffic to the same page, but with https instead.
    LVL 3

    Expert Comment

    You need to secure you server rather IIS what i understand .

    You can try windows firewall and rules for HTTPS (443) HTTP (80) . ( IPsec is good option)

    You need to explain what is to be secured as SSL is secured it self.

    If Server security is good then you need not think much on it.


    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Join & Write a Comment

    If you don't have the right permissions set for your WordPress location in IIS, you won't be able to perform automatic updates. Here's how to fix the problem.
    When it comes to showing a 404 error page to your visitors, you do not want that generic page to show, and you especially do not want your hosting provider’s ad error page to show either. In this article, I will show you how to enable the custom 40…
    This video is in connection to the article "The case of a missing mobile phone (". It will help one to understand clearly the steps to track a lost android phone.
    Sending a Secure fax is easy with eFax Corporate ( First, Just open a new email message.  In the To field, type your recipient's fax number You can even send a secure international fax — just include t…

    755 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    20 Experts available now in Live!

    Get 1:1 Help Now