Rewrite Issues

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi!

Trying to rewrite an URL: '' (nothing)
To: /~<user>/output

I've defined:

RewriteCond %{LA-U:REMOTE_USER} !^$
RewriteCond %{HTTP_URI} ^/*$
RewriteRule ^/*$ /~%{LA-U:REMOTE_USER} [NS]

RewriteCond %{LA-U:REMOTE_USER} !^$
RewriteRule ^/~([^/]+)/?(.*)$ /~%{LA-U:REMOTE_USER}/output/$2 [NS]

If I access the server http://<server>
It does what is expected:
http://<server>
http://<server>/~ -> Login
http://<server>
http://<server>/~<user>/output

But giving
http://<server>/~xyz
http://<server>/~xyz -> Login
http://<server>/~<user>
http://<server>/~<user>/output/output

I'd like to have the users:
- to be forced to login
- to be redirected to their user directory
- to be unable to access any other directory on the server

Is this possibe with apache, user_dir and rewrites at all?

-- 
Thomas

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx




[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux