Jennifer Zelazny

Random and Opinionated Thoughts

serving apache on a local (not address).

Apache Hints HOWTOs UNIX Web Development
Posted by: Jennifer Zelazny | 0 Comments

If you ever need to serve a web site for, let’s say a presentation, on a local address and need to connect to another computer…perhaps your database/ Web Objects server locally as well, and you are running Mac OS X…then I have some information for you.

  1. If you want to serve the web site on and have your other server on, open the terminal and type in: sudo ifconfig en0 This will change the IP address. (changing the IP address in the network control panel was not enough)
  2. Next, edit the apache conf file: sudo pico /etc/httpd/httpd.conf and add Listen and then restart apache

Now you can serve on your local machine and connect to a computer on your local network. (connected by an ethernet cable)