httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jaka Erjavec <jaka.erja...@telemach.net>
Subject Re: [users@httpd] Userdir tilde sign, different dirs, etc. - fixed
Date Tue, 14 Oct 2003 07:27:14 GMT
Hello,

I fixed the problem using the prg as you suggested.
Short perl script should do the work as described at the end of
http://httpd.apache.org/docs-2.1/misc/rewriteguide.html

But I am wondering how CPU intensive it might get under many requests.
This way I can also solve the ~ problem.



Thanks,

Jaka


Joshua Slive wrote:

> On Mon, 13 Oct 2003, Jaka Erjavec wrote:
> 
>>I keep user www pages in directories like this:
>>
>>/storage/{hexa value of first username character}/{hexa value of second
>>username character}/username/www
>>
>>All the users are virtual ftp users authenticated from pgsql database.
>>
>>I would like to serve users content in a way it can be seen on the web like:
>>
>>http://users.domain.com/username -- without ~ sign
>>
>>What I would probably need is some rewrite rule that would redirect the
>>request to the proper userdir. Any suggestions?
> 
> 
> This is a slightly tough one.  The only way I can think of doing this is
> using an external "prg" type RewriteMap in mod_rewrite.  Then this program
> would be responsible for doing the conversion from username to directory.
> 
> A more efficient, and possible easier alternative, would be to simply hack
> mod_userdir to handle requests without the ~.
> 
> Joshua.
> 
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
> 
> 
> .
> 





---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message