This is part of The Pile, a partial archive of some open source mailing lists and newsgroups.
Subject: Re: ok it kind of works, but not really... symbolic links From: kkeller@slip.net Date: Fri, 4 Jun 1999 23:22:37 -0700 (PDT) On 4 Jun, David Liu wrote: > > Well, so I used the second line example but what I really end up getting is > > www.domainname.com/user1/web, NOT www.domainname.com/user1 like what I want. > ok, I'm just about to walk out and jump off a bridge. any other ideas? Okay, try this. You've got a directive in your httpd.conf something like so: DocumentRoot /usr/local/apache/htdocs So when people access http://www.domain.com, and if you have a file /usr/local/apache/htdocs/index.html, then that's the file that is sent to the browser. Now, you want www.domain.com/dyliu to be your user page. Try this, as a user with appropriate permissions (probably root): mkdir /usr/local/apache/htdocs/dyliu chown dyliu /usr/local/apache/htdocs/dyliu chmod 755 /usr/local/apache/htdocs/dyliu Then, as you, not root, do this in your home directory: ln -s /usr/local/apache/htdocs/dyliu web Now anything you put in your web directory should be served at http://www.domain.com/dyliu/filename.html. (Actually, this step isn't really needed, since you could put your files directly into the directory /usr/local/apache/htdocs/dyliu. But most users like to be able to see their web pages off their home directory, thus the symlink.) You should have Options FollowSymLinksIfOwnerMatch in the appropriate location in your httpd.conf (or access.conf) file. Read the Apache docs to see how to do this. > > the only other thing I can think of, aside from Mark's suggestion, is to go > back into httpd.conf and under the UserDir? The UserDir (I'm pretty sure, anyway) only sets the directory in a user's home directory that is served by a www.domain.com/~user request. I don't think it applies to www.domain.com/user requests. The basic idea here is that you need to consider www.domain.com/user as just a directory, totally unrelated to a user. Just make the directory and put stuff there. You can always work out the symlinks from the user's home directory later. If all that still doesn't work, there are seven major bridges in the San Francisco Bay area; just be sure to wear a parachute. ;-) ===