Mailing List Archive

Apache Access question
Hi,

I am not sure this can be done, so I decided to ask the mailist. Is there a
way to use htaccess features, in a way that when the user logs in depending
on the user it will display a certain page. For instance if you have two
users Admin and Oper, and a user clicks a cgi that is in a access protected
directory. Is there a way, depending on who logs in Admin or Oper for the
cgi to get this information and then display a particular page based on
this.

We want to use the Apache authentication if possible, and not write our own
login scripts.

Any advice is welcome.

Thanks in advance

=============================================
Corey M. Ellis
Network Administrator
11 Broadway, Suite 365, New York, NY 10004
coreye@odigo.com Phone: 212.809.2002 x:16
Fax: 212.809.2092 Mobile: 856.278.0550
Odigo: 279170
============================================
Odigo. Communication Redefined. www.odigo.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@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
RE: Apache Access question [ In reply to ]
> From: Corey M. Ellis [mailto:coreye@odigo.com]

>
> I am not sure this can be done, so I decided to ask the mailist.
> Is there a
> way to use htaccess features, in a way that when the user logs in
> depending
> on the user it will display a certain page. For instance if you have two
> users Admin and Oper, and a user clicks a cgi that is in a
> access protected
> directory. Is there a way, depending on who logs in Admin or Oper for the
> cgi to get this information and then display a particular page based on
> this.

Your CGI script can check the REMOTE_USER environment variable and react
accordingly.

If you want to do it without a CGI script, then the directives provided by
mod_rewrite can be used to redirect based on the REMOTE_USER.

Joshua.


---------------------------------------------------------------------
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@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: Apache Access question [ In reply to ]
httpd://apache.org/docs/mod/mod_auth.html

Corey M. Ellis wrote:

>Hi,
>
>I am not sure this can be done, so I decided to ask the mailist. Is there a
>way to use htaccess features, in a way that when the user logs in depending
>on the user it will display a certain page. For instance if you have two
>users Admin and Oper, and a user clicks a cgi that is in a access protected
>directory. Is there a way, depending on who logs in Admin or Oper for the
>cgi to get this information and then display a particular page based on
>this.
>
>We want to use the Apache authentication if possible, and not write our own
>login scripts.
>
>Any advice is welcome.
>
>Thanks in advance
>
>=============================================
>Corey M. Ellis
>Network Administrator
>11 Broadway, Suite 365, New York, NY 10004
>coreye@odigo.com Phone: 212.809.2002 x:16
>Fax: 212.809.2092 Mobile: 856.278.0550
>Odigo: 279170
>============================================
>Odigo. Communication Redefined. www.odigo.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@httpd.apache.org
>For additional commands, e-mail: users-help@httpd.apache.org
>
>



---------------------------------------------------------------------
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@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: Apache Access question [ In reply to ]
sorry:
http://httpd.apache.org/docs/mod/mod_auth.html

Martin Haase-Thomas wrote:

> httpd://apache.org/docs/mod/mod_auth.html
>
> Corey M. Ellis wrote:
>
>> Hi,
>>
>> I am not sure this can be done, so I decided to ask the mailist. Is
>> there a
>> way to use htaccess features, in a way that when the user logs in
>> depending
>> on the user it will display a certain page. For instance if you have
>> two
>> users Admin and Oper, and a user clicks a cgi that is in a access
>> protected
>> directory. Is there a way, depending on who logs in Admin or Oper
>> for the
>> cgi to get this information and then display a particular page based on
>> this.
>>
>> We want to use the Apache authentication if possible, and not write
>> our own
>> login scripts.
>>
>> Any advice is welcome.
>>
>> Thanks in advance
>>
>> =============================================
>> Corey M. Ellis
>> Network Administrator
>> 11 Broadway, Suite 365, New York, NY 10004
>> coreye@odigo.com Phone: 212.809.2002 x:16
>> Fax: 212.809.2092 Mobile: 856.278.0550
>> Odigo: 279170
>> ============================================
>> Odigo. Communication Redefined. www.odigo.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@httpd.apache.org
>> For additional commands, e-mail: users-help@httpd.apache.org
>>
>>
>
>
>
> ---------------------------------------------------------------------
> 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@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>



---------------------------------------------------------------------
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@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org