6

I have a local apache running on my macbook pro and I need to run a SSL website on the local host. I have everything configured in Apache, but can't open port 443 on mac. I tried to add ipfw rule to allow 443 but it doesn't work.

1
  • 1
    Have you simply disabled the firewall entirely and made sure the server is really listening on that port? I've been shocked how many times that's been my problem.
    – bmike
    Aug 19, 2011 at 1:09

2 Answers 2

4

make sure 443 accessible from local and configured.

$ netstat -an|grep 443

allow 443 in ipfw

$ sudo ipfw add allow tcp from any to any 443
3
  • I did this, doesn't work. it shows me when I do ipfw list, but on nmap it doesn't show 443
    – Stewie
    Jul 19, 2011 at 14:59
  • 1
    @Stewie: Does it show up in the netstat output? If not, the firewall doesn't matter, because nothing is listening for connections on port 443. Jul 20, 2011 at 5:07
  • @Stewie nmap won't necessarily find all open ports, depending on how secure your system is.
    – rubixibuc
    Feb 16, 2012 at 6:31
1

Open file /etc/apache2/httpd.conf

Look for line with listen 80

Add line listen 443

Save and restart apache using apachectl graceful

Check for any error in http.conf using apachectl configtest

Thank Bob at https://bobcares.com/blog/apache-not-listening-on-port-443/

2
  • 1
    This doesn't answer the OP's question. It's not about getting Apache to listen on 443, but opening the port on the built in firewall.
    – Allan
    Apr 2, 2020 at 20:54
  • However given Gordon's comment it might be the correct one but t he op did not respond and his now totally left. We will never know
    – mmmmmm
    Apr 2, 2020 at 21:09

You must log in to answer this question.