serving apache on a local (not 127.0.0.1 address).

Apache Hints HOWTOs UNIX Web Development

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 10.0.0.2 and have your other server on 10.0.0.3, open the terminal and type in: sudo ifconfig en0 10.0.0.2. 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 10.0.0.2:80 and then restart apache

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

Leave a Reply

Your email address will not be published.
*
*

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Standards

mac desktops and icons.

Sometimes I cannot work until I am happy with my desktop picture and my icons. I am very picky with my desktops because they often serve as inspirations for new web designs (colors, contrasts, etc) In fact, when I present my web designs at big meetings, I take special care to choose a desktop that […]

Hints Web Development

google alert.

Ever since I started monitoring what search engine robots indexed on my web sites, I have also been using Google Alert. Google sends me reports (html email or plain text, your choice) of any web site that has been indexed with keywords that you specify. Not only can you make sure Google is following the […]