Creating authorized virtual directories

I don't know if "virtual directory" is the proper word but here's what I
am trying to accomplish.

My web site has three directories: /images /css /js

The site will have multiple clients: client1, client2..clientN, with
each client having their own users.

I want to give each client their own "directory":

http://www.site.com/client1
http://www.site.com/client2
http://www.site.com/clientN

Since N can be very high it makes no sense to have actual physical
directories with DBI Authentication in each.

I had hoped to be able to use DirectoryMatch like this:

<DirectoryMatch "/www/htdocs/!(images|css|js)/(.+)$">
AuthType MyAUTH
....
</DirectoryMatch>

But that's not possible since /www/htdocs/client1..N doesn't actually
exist and so 404 is thrown.

The options I have come up with are:

1) Create an Authentication handler right in the ROOT directory which
gives requests to images|css|js a 200 and all other requests are passed
to Authentication handlers.

2) A custom 404 handler but I'm unsure how it would handle the
Authentication unless it was itself an Authentication handler. Is this
even possible?

3) A mod_rewrite monstrosity, but I'm also unsure how Authentication
would be handled since Auth has to be performed on an existing resource.

Has anyone ever done something similar before? What was the direction
you chose? Even the right terminology to google would be helpful...

Thank-you all!

Tosh

--
McIntosh Cooey - Twelve Hundred Group LLC - http://www.1200group.com/

------------------------------------------------------------ ---------
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 [at] httpd.apache.org
" from the digest: users-digest-unsubscribe [at] httpd.apache.org
For additional commands, e-mail: users-help [at] httpd.apache.org
Tosh Cooey [ Mi, 09 Dezember 2009 14:11 ] [ ID #2025250 ]

On 64 bit AIX 6.1 Apache 2.2.14 Not Responding

Compiled using this environment:

export CC=3D"xlc -q64"
export CFLAGS=3D"-qmaxmem=3D16384 -DSYSV -D_AIX61 -D_ALL_SOURCE
-DFUNCPROTO=3D15 -O -I/opt/freeware/include"
export CXX=3D"xlC"
export CXXFLAGS=3D$CFLAGS
export LD=3Dld
export LDFLAGS=3D"-L/opt/freeware/lib"
export OBJECT_MODE=3D64

Compiled and installed fine without errors. Using default
httpd.conf only changed ServerName. Start using "apachectl start" and
it starts fine. ps -ef | grep httpd shows httpd process. error_log
shows start up, however, when I try to connect from a browser the
error_log records nothing and the browser reports, "The Page Cannot Be
Displayed".

------------------------------------------------------------ ---------
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 [at] httpd.apache.org
" from the digest: users-digest-unsubscribe [at] httpd.apache.org
For additional commands, e-mail: users-help [at] httpd.apache.org
Brian Gaber [ Mi, 09 Dezember 2009 14:18 ] [ ID #2025251 ]

Re: On 64 bit AIX 6.1 Apache 2.2.14 Not Responding

Brian Gaber wrote:
> Compiled using this environment:
>
> export CC="xlc -q64"
> export CFLAGS="-qmaxmem=16384 -DSYSV -D_AIX61 -D_ALL_SOURCE
> -DFUNCPROTO=15 -O -I/opt/freeware/include"
> export CXX="xlC"
> export CXXFLAGS=$CFLAGS
> export LD=ld
> export LDFLAGS="-L/opt/freeware/lib"
> export OBJECT_MODE=64
>
> Compiled and installed fine without errors. Using default
> httpd.conf only changed ServerName. Start using "apachectl start" and
> it starts fine. ps -ef | grep httpd shows httpd process. error_log
> shows start up, however, when I try to connect from a browser the
> error_log records nothing and the browser reports, "The Page Cannot Be
> Displayed".
>
> ------------------------------------------------------------ ---------
> 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 [at] httpd.apache.org
> " from the digest: users-digest-unsubscribe [at] httpd.apache.org
> For additional commands, e-mail: users-help [at] httpd.apache.org
>
>
>
Did you ensure that the Listen directive is set?


--
Norman Registered Linux user #461062 -Have you been to www.apache.org yet?-

------------------------------------------------------------ ---------
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 [at] httpd.apache.org
" from the digest: users-digest-unsubscribe [at] httpd.apache.org
For additional commands, e-mail: users-help [at] httpd.apache.org
Norman Peelman [ Mi, 09 Dezember 2009 14:26 ] [ ID #2025252 ]

RE: On 64 bit AIX 6.1 Apache 2.2.14 Not Responding

> Did you ensure that the Listen directive is set?

I left the default which is:

Listen 80

------------------------------------------------------------ ---------
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 [at] httpd.apache.org
" from the digest: users-digest-unsubscribe [at] httpd.apache.org
For additional commands, e-mail: users-help [at] httpd.apache.org
Brian Gaber [ Mi, 09 Dezember 2009 14:28 ] [ ID #2025253 ]

Re: On 64 bit AIX 6.1 Apache 2.2.14 Not Responding

On Wed, Dec 9, 2009 at 8:18 AM, Brian Gaber
<Brian.Gaber [at] tpsgc-pwgsc.gc.ca> wrote:
>
> =A0 =A0 =A0 =A0Compiled using this environment:
>
> export CC=3D"xlc -q64"
> export CFLAGS=3D"-qmaxmem=3D16384 -DSYSV -D_AIX61 -D_ALL_SOURCE
> -DFUNCPROTO=3D15 -O -I/opt/freeware/include"
> export CXX=3D"xlC"
> export CXXFLAGS=3D$CFLAGS
> export LD=3Dld
> export LDFLAGS=3D"-L/opt/freeware/lib"
> export OBJECT_MODE=3D64
>

Search for "aix_xlc_optimization.patch" for the workaround

--
Eric Covener
covener [at] gmail.com

------------------------------------------------------------ ---------
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 [at] httpd.apache.org
" from the digest: users-digest-unsubscribe [at] httpd.apache.org
For additional commands, e-mail: users-help [at] httpd.apache.org
Eric Covener [ Mi, 09 Dezember 2009 14:36 ] [ ID #2025254 ]
Webserver » gmane.comp.apache.user » Creating authorized virtual directories

Vorheriges Thema: 206 Partial Content, mod_perl, strange errors
Nächstes Thema: Doubt about mod_status