Article:
  Location, Location, Location: Tips for Storing Web Site Files
Subject:   add rendezvous names
Date:   2003-05-20 12:16:16
From:   anonymous2
if you develop on a local network, it can be really handy to add rendezvous names for virtual hosts or even directories.
For example if you add:


RegisterResource "icalshare" /Users/patrick/Documents/Projects/iCalShare/wwwroot


at the end of your httpd.conf file (providing you are running 10.2.5+) the site will show up in Safari or Camino's Rendezvous menu as "icalshare"

Full Threads Newest First

Showing messages 1 through 2 of 2.

  • add rendezvous names
    2003-05-20 17:18:56  maarky [View]

    This isn't working for me. I get the link in my Safari rendezvous menu, but I then get a not found error that says:

    The requested URL /path/to/virtualdomain's/DocumentRoot was not found on this server.

    I made sure that the path in RegisterResource matches the virtualhost's DocumentRoot. It basically ads that path to the rendezvous url so I get:

    http://my-computer.local./path/to/DocumentRoot

    I tried adding a "/" at the end but that did nothing.

    What it looks like it's doing is looking for /Library/WebServer/Documents/path/to/document/root which does not work since the path to document root is located at /path/to/document/root, not inside your /Library/WebServer/Documents directory. But if you actually got this to work I would love some additional info.
    • add rendezvous names
      2003-05-22 19:12:11  maarky [View]

      I got a workaround. Look at this article:

      http://www.macdevcenter.com/pub/a/mac/2003/04/08/mod_rendezvous.html

      and read my comment:

      http://www.oreillynet.com/cs/user/view/cs_msg/19109

      I do something slightly different on my computer than what is in my comment above. Since I am never connected to a rendezvous network I can skip a lot of the steps in that article. I just want my sites to show up in the rendezvous list in my browser because I think it's neat. So if you're like me you can follow the steps in this "Location, Location, Location..." article (without having to do everything in the above article). If you follow the link above to read my comment simply make these changes to what I say there:

      I use this in my httpd.conf rendezvous directive:

      RegisterResource "PHP Docs" "/virtualRedirect.php?domain=php.mac"
      (adapt this for your own virtual domains)

      And I create a file in the specified location with this php code:

      <?php
      header('Location: http://'.$_GET['domain']);
      ?>

      Give it a try. It works for me.