Creating authorized virtual directories
Creating authorized virtual directories
am 09.12.2009 14:11:39 von Tosh Cooey
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:
AuthType MyAUTH
....
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 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
On 64 bit AIX 6.1 Apache 2.2.14 Not Responding
am 09.12.2009 14:18:55 von Brian Gaber
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 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
Re: On 64 bit AIX 6.1 Apache 2.2.14 Not Responding
am 09.12.2009 14:26:22 von Norman Peelman
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 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
>
>
>
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 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
RE: On 64 bit AIX 6.1 Apache 2.2.14 Not Responding
am 09.12.2009 14:28:47 von Brian Gaber
> 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 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
Re: On 64 bit AIX 6.1 Apache 2.2.14 Not Responding
am 09.12.2009 14:36:01 von Eric Covener
On Wed, Dec 9, 2009 at 8:18 AM, Brian Gaber
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
--=20
Eric Covener
covener@gmail.com
------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See 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