Women in Technology

Hear us Roar



Article:
  Apache Web-Serving with Mac OS X, Part 4
Subject:   User directory as 'root' on server
Date:   2002-05-28 10:33:22
From:   pink_frankenstein
How can I make a User directory on the webserver act as a 'root'?


I want to be able to put a URL in an <a href...> or image tag with a beginning " / " so that it goes to the 'root' directory of the user rather than the root directory of the server.


So i want an image tag like this:
<img src="/images/logo.gif"> to go here
http://127.0.0.1/~username/images/logo.gif


rather than to where it goes to now which is
http://127.0.0.1/images/logo.gif


also, if someone could tell me the technical term for what it is i am trying to do i would appreciate it.


thanks