Women in Technology

Hear us Roar

  Apache Web-Serving with Mac OS X: Part 1
Subject:   a thing i don't understand..
Date:   2007-05-26 23:20:43
From:   D.C.
.. I'm running a Mac Mini behind a router, and when I switch on Apache, I see the address in my System Preferences. At the risk of stating the obvious, this is only going to work within my LAN.

I'd like to have everything in ~/Sites as I create my webpages using iWeb, and I just want to be able to 'publish' to that directory, and not have to faff around with anything else.

Afterwards, I'm going to change DNS on my domain name, and hope that when people 'on the web' type my domain name, they'll automatically be served what's in ~/Sites.

I've tried changing /etc/httpd/httpd.conf to point to that directory, but I get an error 503. When I ask the question on Usenet, I get insulted and accused of having 'broken' apache.

Can anyone help ? Thanks...


Full Threads Newest First

Showing messages 1 through 1 of 1.

  • a thing i don't understand..
    2007-06-06 01:56:38  AminNegmAwad [View]

    You stated the obvious. ;-)

    The IP# in your SysPrefs is the local IP# of your computer in the LAN. (Thounds of computers have excatly this IP# on their local network.) When you log into internet, your provider transmits a single WAN-IP# for your net, i.g. t"the router". Let's say

    When somebody tries to access your web-sites, this request is sent to the router with the WAN IP# But there is no Apache running on your router, so he will get no response. You have to configure your router that way, that an access on the http-port (80) will be routed to the local computer with the local IP# For this purpose the router has soe settings, usually labeled "routing", "virtual servers", "NAT" or something like this depends on the router.