Blocking incoming port 80?

Discussion in 'macOS' started by yg17, Nov 14, 2006.

  1. yg17 macrumors G5

    yg17

    Joined:
    Aug 1, 2004
    Location:
    St. Louis, MO
    #1
    I need to run Apache w/ PHP on my PowerBook to do some coding, no problem. But, I can't have port 80 open to the outside on the campus network, because they don't like people running servers. But the stupid firewall forces me to keep port 80 open as long as personal web sharing is enabled. I want to enable Apache, yet block port 80 so the only one who can get to my webserver is me using localhost. Is there any way around the firewall's automatic opening of port 80? Thanks
     
  2. CanadaRAM macrumors G5

    CanadaRAM

    Joined:
    Oct 11, 2004
    Location:
    On the Left Coast - Victoria BC Canada
    #2
    Not an Apache guy so I don't know the answer, but can you do it the other way -- configure your testbed server to use an unconventional port rather than port 80?
    Then you can connect to it for testing by including the new port number, and nobody else can, unless they knew the port number?
     
  3. Allotriophagy macrumors 6502a

    Joined:
    Sep 5, 2006
  4. plinden macrumors 68040

    plinden

    Joined:
    Apr 8, 2004
    #4
    Try changing the port in /etc/httpd.conf (at the line that says "Port 80").

    Another alternative is to set up a personal VPN using something like hamachi.
     
  5. yg17 thread starter macrumors G5

    yg17

    Joined:
    Aug 1, 2004
    Location:
    St. Louis, MO
    #5
    didn't even think of changing the port, I'll go ahead and do that. Thanks!
     

Share This Page