AliasMatch problems

AliasMatch problems

Post by James Deato » Sun, 12 Dec 1999 04:00:00



I think I'm cluelessly missing something but I've seen references to
similar problems in archives.  I'm having what appears to be a looping
issue with:

AliasMatch ^/~([a-z])([a-z]+) "/users/$1/$1$2/public_html/"

I don't have any local users and don't want to go through a more
elaborate checking process to find a home directory via UserDir that
will, in all cases match a pattern similar to:
/users/{first initial}/{username}/public_html/

This always loops through an endless list of requests looking for the
first index file:

[11/Dec/1999:12:58:30 -0600] "GET /~username/index.html/index.
html/index.html/index.html/index.html/index.html/index.html/index.html/index.html/index.html/
HTTP/1.0" 301 430

and the list of '/index.html/' just gets longer and longer.

Thanks...

 
 
 

AliasMatch problems

Post by Joshua Sliv » Sun, 12 Dec 1999 04:00:00



> I think I'm cluelessly missing something but I've seen references to
> similar problems in archives.  I'm having what appears to be a looping
> issue with:
> AliasMatch ^/~([a-z])([a-z]+) "/users/$1/$1$2/public_html/"

I'm not sure why it would loop, but I would guess what you want is
something closer to

AliasMatch ^/~([a-z])([a-z]+)/?(.*) /users/$1/$1$2/public_html/$3

--
Joshua Slive

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

 
 
 

1. AliasMatch from ~/account to /users/account

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.

2. midi player (& squencer)

3. Apache UserDir/AliasMatch

4. how change serial number

5. Trouble with PL12 compile...

6. Apache aliasmatch to match user directories

7. Printer Driver for HP Deskjet 680C

8. AliasMatch is looping apache

9. AliasMatch

10. apache AliasMatch question

11. Q: Apache (1.3.9) + Proxy + AliasMatch

12. AliasMatch to remove ~ in URL