Article:
  Apache Web-Serving with Mac OS X: Part 1
Subject:   configuration httpd.conf
Date:   2001-12-10 13:36:09
From:   djwudi
Response to: configuration httpd.conf

Since BBEdit is 'just' a text processor, the easiest way to put a link in is to just type the HTML code for the link in. Since you added the link to go to blah link to your post, I'm assuming you know that much HTML code, so it should work fine.


Don't know about WYWIWYG editors, though - personally, I've never liked them. I've been coding my site with BBEdit, Pepper (another OS X text editor), or vi ('cause I'm a glutton for punishment) long enough that I've never liked any WYSIWYG editor I've played with.


For pages under URLs such as http://yourip/animals/ or http://yourip/cars/ and such, those would just be subdirectories within...well...


(My apologies if I'm jumping ahead in the lessons here...)


As morbus said, the url http://yourip/~yourname/ points to your /Users/yourname/sites/ directory. However, the base url http://yourip/ points to the /Library/WebServer/Documents/ directory. Creating a subdirectory called 'cars' in there would give a system path of /Library/WebServer/Documents/cars/ that would be accessible from the outside as http://yourip/cars/ and would display whatever was inside the 'cars' directory. That's the easiest way that I can think of. The user (Joe, in your example) would still have to navigate to that folder rather than having it residing in his home directory...but if you really wanted to then, I suppose some creative aliasing could take care of that.

Full Threads Oldest First

Showing messages 1 through 2 of 2.

  • configuration httpd.conf
    2001-12-11 15:25:50  loren3 [View]

    thanks for the reply...

    with regard to subdirectories issue:

    1. i would want to avoid users--including myself once i got apache set up--from mucking about in the /Library directory! not a good idea IMHO.

    2. i've had terrible experience with aliases when it comes to system files in OS X, such that my principle is don't do it. i created some hard symbolic links and mucked things up badly before.

    3. i did find a suitable solution, which is to create an account with www.dyndns.org and set up free domain names linked to your ip (or dynamic ip). then you can set up the httpd.conf file to use virtual hosts, which is pretty easy to do. so each user can have his/her own domain name and have that go to anywhere it his/her user directory.

    with regards to bbedit, yeah sure i can code a simple link. but so what? bbedit has a whole markup toolbar to do nifty things wiht GUI like inserting inline images. The one thing I can't figure out immediately is how to create a link with that toolbar.

    unlike many hardcore html coders, i'd rather use dialog boxes than manually do all the tags.

    • configuration httpd.conf
      2002-02-02 12:32:22  mac_yoda [View]

      Where are all the BBEdit users?

      Hit the "Anchor" or the "Image" buttons in the "HTML tools" bar to get the dialogs you are looking for.