Thread: Per-file auth
View Single Post

  #7 (permalink)  
Old 03-10-2008
Luuk
 
Posts: n/a
Default Re: Per-file auth

Nicolas BOUTHORS schreef:
> Luuk a écrit :
>> and your index.php looks like this:
>> <?php
>> include(getenv("REMOTE_USER").".html");
>> ?>

>
> Yeah yeah. I wanted to NOT need PHP. Hence posting in an Apache related
> forum. Your solution is trivial, but requires PHP.
>
> Cheers,
> N
>



The nice thing is, once you read the docs, you will see that
mod_rewrite is also capable of using REMOTE_USER variable....

so, redirection, based on 'REMOTE_USER' is also possible without PHP

(http://httpd.apache.org/docs/2.0/mod/mod_rewrite.html)


--
Luuk