Combining userdir and redirect

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

 



Hi all,

I'm a bit stuck right now not knowing how to proceed. On Apache 2.2
(Debian Etch) I'm running to userdirs nested into each other. The first
one enables user directories for the directory WWW and the second one
enables this for SSL and Kerberos:
<IfModule mod_userdir.c>
        UserDir WWW
        UserDir disabled root
        <Directory /home/*/WWW>
                AllowOverride FileInfo AuthConfig Limit
                Options MultiViews Indexes SymLinksIfOwnerMatch
IncludesNoExec
        </Directory>
        <Directory /home/*/WWW/SECRET>
                SSLRequireSSL
                AuthType Kerberos
                KrbAuthRealms ABC.NET
                require valid-user
                KrbServiceName http
                Krb5Keytab /etc/keytab
        </Directory>
</IfModule>

That's working nicely, with http://... users can see everything except
~user/SECRET which is correct, since this should only be exposed via
https and it does.

However, many users fall into the trap and use
http://FQDN/~user/SECRET
and I would like to redirect this request to https.

I've tried putting this redirect into the first directory directive but
 I assume this is not used for ~user/SECRET at all, thus ineffective.
Question is, where to put that or how to accomplish that?

Thanks a lot

Carsten

---------------------------------------------------------------------
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@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-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