okay. it seems that virtual hosts are the way to go. however i am using IIS. so are virtual directories in IIS the same as virtual hosts (in apache i assume)? i tried setting up a virtual directory and moving my web code out of the \inetpub\wwwroot directory, however a the link /images/foo.png is still resolving to http://localhost/images/foo.png and not being displayed. thanks to all who have responded so far. david.