httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kapil Sharma" <ka...@kapils.net>
Subject RE: [users@httpd] apache 2 proxy authentication
Date Tue, 04 Mar 2003 17:28:55 GMT

It is working now. It was my configuration mistake.


Thanks a lot for your help guys.


-----Original Message-----
From: Kapil Sharma [mailto:kapil@kapils.net]
Sent: 04 March 2003 11:09
To: users@httpd.apache.org
Subject: RE: [users@httpd] apache 2 proxy authentication


Hi,
I tried it and still no luck. It is not asking for password. Following is my
configuration for proxy:

<IfModule mod_proxy.c>
ProxyRequests On

<Proxy *>
    Order deny,allow
    Deny from all
    Allow from all
AuthType Basic
AuthName "Proxy Authentication"
AuthUserFile conf/users
Require valid-user
</Proxy>

Thanks
kapil

-----Original Message-----
From: O┬┤Hehir,Oliver [mailto:Oliver.OHehir@tre.se]
Sent: 04 March 2003 08:44
To: users@httpd.apache.org
Subject: RE: [users@httpd] apache 2 proxy authentication


Try the following in your httpd.conf file. Note you must have mod_proxy.c in
your Apache installation (you can check this by looking to see if it is in
the list you get with command "httpd -l").

#
# Proxy Server directives. Uncomment the following lines to
# enable the proxy server:
#
<IfModule mod_proxy.c>
ProxyRequests On
ProxyPass /webApp/ http://backendServer:8080/webApp/
ProxyPassReverse /webApp/ http://backendServer:8080/webApp/

<Proxy *>
    Order deny,allow
    Allow from all
    AuthType Basic
    AuthName "Password Required"
    AuthUserFile password.file
    AuthGroupFile group.file
    Require group usergroup
</Proxy>

</IfModule>


The password.file and group.file lies under installation dir for apache,
e.g. /opt/apache. Use "htpasswd" command to create the file and add users.
The users can then be grouped into groups. This is a plain text file, which
you can create and edited directly without commands. So in the above
example, "usergroup" is a group defined and assigned users in this file.

Hope this helps,
Oliver.

-----Original Message-----
From: Kapil Sharma [mailto:kapil@kapils.net]
Sent: den 4 mars 2003 07:33
To: Users@Httpd. Apache. Org
Subject: [users@httpd] apache 2 proxy authentication



Hi,
I am unable to configure authentication with apache proxy. I want to
authenticate users who use apache web server as a proxy. I want to use text
file based authentication.
In apache 1.3.xx You can put the Directory directive inside proxy directive
to put AuthType Basic.
Can anyone please tell me how can I enable proxy authentication on my apache
2.0.44 server?

kapil


---------------------------------------------------------------------
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


---------------------------------------------------------------------
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


---------------------------------------------------------------------
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