AliasMatch from ~/account to /users/account

AliasMatch from ~/account to /users/account

Post by lxbr.. » Fri, 29 Oct 1999 04:00:00



I recently installed Apache 1.3.9 on a new webserver to replace our
current Netscape Server.  We have users on our systems that access
their pages as http://www.ourdomain.com/users/accountname.  Apache
expects the URL to be http://www.ourdomain.com/~accountname.

How do I set up Apache to allow the person browsing to
type /users/accountname into the browser so the server knows to find
the pages under /home/accountname?  I have tried:

AliasMatch /users/(.*)/(.*) /home/$1/http/$2

with no luck.  Maybe AliasMatch isn't what I'm needing here.  This
command, when searching deeper into directories will return:

/home/accountname/dir1/dir2/http/ ...etc.

Any help would be great.  Also, if you have any tips on converting
Netscape obj.conf files into Apache configs, let me know.

Sent via Deja.com http://www.deja.com/
Before you buy.

 
 
 

AliasMatch from ~/account to /users/account

Post by Joshua Sliv » Fri, 29 Oct 1999 04:00:00



> I recently installed Apache 1.3.9 on a new webserver to replace our
> current Netscape Server.  We have users on our systems that access
> their pages as http://www.ourdomain.com/users/accountname.  Apache
> expects the URL to be http://www.ourdomain.com/~accountname.

An example of how to do something similar (but slightly more complicated)
using mod_rewrite is at
http://www.engelschall.com/pw/apache/rewriteguide/#ToC10

--
Joshua Slive

http://finance.commerce.ubc.ca/~slive/