How can I get OS X's built-in web server to listen to port 8001?

Discussion in 'Web Design and Development' started by maclover001, Oct 23, 2008.

  1. Cromulent macrumors 603

    Cromulent

    Joined:
    Oct 2, 2006
    Location:
    The Land of Hope and Glory
    #2
    Same way as you would with any other Apache installation. Edit the httpd.conf file to listen on the relevant port.
     
  2. angelwatt Moderator emeritus

    angelwatt

    Joined:
    Aug 16, 2005
    Location:
    USA
    #3
    httpd.conf located at: /private/etc/apache2/httpd.conf

    Find line that starts with "Listen"
     
  3. maclover001 thread starter macrumors 6502a

    maclover001

    Joined:
    Mar 25, 2008
    Location:
    Vancouver, Canada
    #4
    Thanks, but it still doesn't work outside the local network :(

    If I use the local IP address, it works fine (see "Picture 1")
    If I use my main IP address (which works with my other server), it doesn't work (Picture 2)
     

    Attached Files:

  4. belvdr macrumors 601

    Joined:
    Aug 15, 2005
    #5
    Picture 1 is using port 80, not 8001. Picture 2 is using 8001. Now, did you restart the HTTP server after editing that file? Apache only reads the config file on startup.
     
  5. maclover001 thread starter macrumors 6502a

    maclover001

    Joined:
    Mar 25, 2008
    Location:
    Vancouver, Canada

Share This Page