---
title: How to Set Up Apache on Windows 7 to Support Facebook Secure Browsing
description: In late January Facebook finally added support for HTTPS, allowing users to browse the site securely. HTTPS provides a combination of the HTTP and SSL protocols, enabling encrypted communication between a user's computer and a web server. Using HTTPS to access the site - though undoubtedly slower - protects users from sniffing attacks on public networks. Sniffing attacks have become a real problem in the last year with the introduction of free, open-source tools like Firesheep. PC World has even published a how-to guide to using the tool to hijack Facebook. So the feature is long overdue.
---

[Fresh Thoughts Blog](https://blog.thoughtlabs.com/blog)

# [How to Set Up Apache on Windows 7 to Support Facebook Secure Browsing](https://blog.thoughtlabs.com/blog/how-to-set-up-apache-on-windows-7-to-support-facebook-secure-browsing)

 Written by [Cappy Popp](https://blog.thoughtlabs.com/blog/author/cappy-popp) | Mar 25, 2011

In late January [Facebook finally added support for HTTPS](http://www.insidefacebook.com/2011/01/26/security-https-social-authentication/), allowing users to browse the site securely. [HTTPS](http://en.wikipedia.org/wiki/Https) provides a combination of the HTTP and SSL protocols, enabling encrypted communication between a user's computer and a web server. Using HTTPS to access the site - though undoubtedly slower - protects users from sniffing attacks on public networks. Sniffing attacks have become a real problem in the last year with the introduction of free, open-source tools like [Firesheep](http://money.cnn.com/2010/12/14/technology/firesheep_starbucks/index.htm). [PC World has even published a how-to guide to using the tool to hijack Facebook](http://www.pcworld.com/article/209333/how_to_hijack_facebook_using_firesheep.html). So the feature is long overdue.

 For Facebook applications the burden of supporting HTTPS falls on these applications' developers, not Facebook, since applications are hosted on external web servers that must also support the protocol for HTTPS to work. Part of the problem is the extra cost: SSL requires the use of a signed certificate which usually must be purchased from a recognized certificate authority - a cost many don't want to pay. Secondly, setting up HTTPS on a server is not as simple as one might think.

Thus the topic of this post.

 We've had issues recently with the problem ourselves. We develop and test our Facebook applications on Windows 7 x64 locally using the Apache web server, pushing to a number of cloud-based Linux servers for production. Setting up SSL on Apache is different on Windows and there's several steps involved in the process (and one gotcha.)

 

 Here's how to do it:

 

 So from command line, run:

mklink /j "c:\\program files\\Apache Software Foundation/Apache2.2/logs" "C:\\Program Files (x86)\\Apache Software Foundation\\Apache2.2\\logs"

1. Restart apache
2. That should do it. To test if HTTPS is working, try hitting your local server using https://localhost. Check your access.log and error.log for problems.

 And here's the gotcha. Make SURE that you disable Skype's ability to use port 443 (the port used by HTTPS by default) or it will block incoming HTTPS requests to your local server. This is maddening! Open up the Skype UI and open the advanced options dialog (Tools | Options | Advanced Options). Make sure to **uncheck** the checkbox labeled, "Use port 80 and 443 as alternatives for incoming connections". 

[View full post](https://blog.thoughtlabs.com/blog/how-to-set-up-apache-on-windows-7-to-support-facebook-secure-browsing)

```json
{
  "@context" : "http://schema.org",
  "@type" : "BlogPosting",
  "author" : {
    "@type" : "Person",
    "name" : "Cappy Popp"
  },
  "dateModified" : "2024-03-20T18:53:27.957Z",
  "datePublished" : "2011-03-25T04:00:00Z",
  "headline" : "How to Set Up Apache on Windows 7 to Support Facebook Secure Browsing",
  "image" : {
    "@type" : "ImageObject",
    "height" : 220,
    "url" : "https://44656869.fs1.hubspotusercontent-na1.net/hubfs/44656869/Imported_Blog_Media/apache-httpd.png",
    "width" : 320
  },
  "mainEntityOfPage" : "https://blog.thoughtlabs.com/blog/how-to-set-up-apache-on-windows-7-to-support-facebook-secure-browsing",
  "publisher" : {
    "@type" : "Organization",
    "logo" : {
      "@type" : "ImageObject",
      "height" : 60,
      "url" : "/hs/hsstatic/content_shared_assets/static-1.4092/img/default-amp-logo.png",
      "width" : 60
    },
    "name" : "Fresh Thoughts Blog"
  }
}
```