httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Panos <grshado...@yahoo.com>
Subject RE: [users@httpd] Authentication and Redirect...
Date Wed, 20 Nov 2002 11:29:35 GMT
Thank you. I will try it now! :)

--- Boyle Owen <Owen.Boyle@swx.com> wrote:
> It's a bit complicated, but if I give you a few
> pointers, will you read the relevant docs?
> 
> First off, you want a single directory for all your
> customers to arrive in so call it
> /usr/apache/htdocs/all_customers/.
> 
> Now the mod_auth directives test all customers, e.g.
> 
> <Directory "/usr/apache/htdocs/all_customers/">
>   AllowOverride None
>   AuthType Basic
>   AuthName "ALL CUSTOMERS"
>   AuthUserFile /usr/apache/kodiki/customers.pw
>   require valid-user
>   Order allow,deny
>   Allow from all
> </Directory>
> 
> Note "require valid-user" so it checks all users for
> a password.
> 
> That's the easy bit... Now you need mod_rewrite so
> check the documentation for it (mod_rewrite.html in
> the docs that came with apache). You need a rule
> which says:
> 
> if the REMOTE_USER is called "customer1", the URL
> gets rewritten to http://your-site/customer1 and so
> on for customer2, 3 etc.
> 
> Something like:
> 
> RewriteEngine On
> RewriteLog logs/rewrite_log
> RewriteLogLevel 3
> 
> 
> RewriteCond  %{REMOTE_USER}  customer1
> RewriteRule  ^/*             /customer1/ [L]
> 
> RewriteCond  %{REMOTE_USER}  customer2
> RewriteRule  ^/*             /customer2/ [L]
> 
> etc...
> 
> NB use the logfile for debugging - switch it off
> when it's working.
> 
> Rgds,
> 
> Owen Boyle
> 
>  
> 
> >-----Original Message-----
> >From: Panos [mailto:grshadowgr@yahoo.com]
> >Sent: Mittwoch, 20. November 2002 12:03
> >To: users@httpd.apache.org
> >Subject: RE: [users@httpd] Authentication and
> Redirect...
> >
> >
> >It's only 10 customers... so, what I have to do in
> >httpd.conf and .htaccess file ?
> >
> >--- Boyle Owen <Owen.Boyle@swx.com> wrote:
> >> If you know all the customers' names and there
> >> aren't too many, you
> >> might use "RedirectMatch". If it is much more
> >> complicated than this,
> >> you'd have to use mod_rewrite - it supports
> powerful
> >> conditional
> >> matching and rewriting. Details are in the docs.
> >> 
> >> Rgds,
> >> 
> >> Owen Boyle
> >> 
> >> >-----Original Message-----
> >> >From: Panos [mailto:grshadowgr@yahoo.com]
> >> >Sent: Mittwoch, 20. November 2002 10:20
> >> >To: users@httpd.apache.org
> >> >Subject: [users@httpd] Authentication and
> >> Redirect...
> >> >
> >> >
> >> >Dear all
> >> >
> >> >I have installed the Apache 1.3.27 in Solaris
> 2.7
> >> in a
> >> >Sun Enterprise 450.
> >> >
> >> >I'm trying to configure the httpd.conf to give
> >> access
> >> >to my users, using password.
> >> >
> >> >I have configured the following and it works
> fine :
> >> >
> >> ><Directory "/usr/apache/htdocs/customer-no1/">
> >> >AllowOverride None
> >> >AuthType Basic
> >> >AuthName CUSTOMER1
> >> >AuthUserFile /usr/apache/kodiki/customers.pw
> >> >require user customer1
> >> >Order allow,deny
> >> >Allow from all
> >> ></Directory>
> >> >
> >> >I'd like to configure my apache, using the
> >> >auto-redirect. The home page of my site is
> located
> >> at
> >> >/usr/apache/htdocs/ .If the customer's name is
> >> >customer1, then to be redirected at
> >> >/usr/apache/htdocs/customer-no1 directory.
> >> >
> >> >Any ideas ?
> >> >
> >> >Thank you
> >> >Panos
> >> >
> >>
> >__________________________________________________
> >> >Do you Yahoo!?
> >> >Yahoo! Web Hosting - Let the expert host your
> site
> >> >http://webhosting.yahoo.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
> >> >   "   from the digest:
> >> users-digest-unsubscribe@httpd.apache.org
> >> >For additional commands, e-mail:
> >> users-help@httpd.apache.org
> >> >
> >> >
> >> 
> >> This message is for the named person's use only.
> It
> >> may contain
> >> confidential, proprietary or legally privileged
> >> information. No
> >> confidentiality or privilege is waived or lost by
> >> any mistransmission.
> >> If you receive this message in error, please
> notify
> >> the sender urgently
> >> and then immediately delete the message and any
> >> copies of it from your
> >> system. Please also immediately destroy any
> >> hardcopies of the message.
> >> You must not, directly or indirectly, use,
> disclose,
> >> distribute, print,
> >> or copy any part of this message if you are not
> the
> >> intended recipient.
> >> The sender's company reserves the right to
> monitor
> >> all e-mail
> >> communications through their networks. Any views
> >> expressed in this
> >> message are those of the individual sender,
> except
> >> where the message
> >> states otherwise and the sender is authorised to
> >> state them to be the
> >> views of the sender's company. 
> >> 
> >>
>
>---------------------------------------------------------------------
> >> 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
> >>    "   from the digest:
> >> users-digest-unsubscribe@httpd.apache.org
> >> For additional commands, e-mail:
> >> users-help@httpd.apache.org
> >> 
> >
> >
> >__________________________________________________
> >Do you Yahoo!?
> >Yahoo! Web Hosting - Let the expert host your site
> >http://webhosting.yahoo.com
> >
> 
=== message truncated ===


__________________________________________________
Do you Yahoo!?
Yahoo! Web Hosting - Let the expert host your site
http://webhosting.yahoo.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
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message