Apache can be installed as apache2 port from MacPorts.
The configuration files can be found in /opt/local/apache2/conf if you have installed the apache2 package from MacPorts.
To load apache2 on every boot, run
sudo launchctl load -w /Library/LaunchDaemons/org.macports.apache2.plist
dns-sd -R . _http._tcp. . 80
should announce the web server in the local network via Bonjour.
The service then appears in the Safari Bonjour bookmarks folder. Using a '.' as the service name is equivalent to no service name, telling mDNS to use the computer name.
However, this appears not to work properly, since the announced domain name has the ".local." suffix which Apache apparently does not recognize?
To be continued.
For users >