Welcome to MobyThreads.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in
All support for the MobyThreads Threaded phpBB MOD can now be found on welsolutions at this forum

basic authentication and proxying

 
   Web Hosting and Web Master Forums (Home) -> Apache RSS
Next:  Tomcat Connection  
Author Message
user2473

External


Since: Sep 15, 2003
Posts: 1



(Msg. 1) Posted: Mon Sep 15, 2003 5:41 pm
Post subject: basic authentication and proxying
Archived from groups: alt>apache>configuration (more info?)

Hello everyone,

I have this weird problem with getting authentication working with
proxying.

I was able to get the authentication working without proxying. I made a
..htaccess file:

AuthType Basic
AuthName UserAdmin
AuthUserFile /home/whittend/sandbox/conf/htpasswd
Require valid-user

In the httpd.conf file:

<Directory /home/whittend/sandbox/UserAdmin/>
AllowOverride All
Options ExecCGI
Order allow,deny
Allow from all
</Directory>

It all works fine until I try to add proxying with a frontend.conf and
backend.conf instead of httpd.conf. Note - the proxy part works fine, it
proxies from port 80 to port 90 on the same IP, but I either get no
authentication happening (and the page gets displayed anyway), or a 403
error without even getting a login screen. Here's the setup with
proxying:

..htaccess:

AuthAuthoritative On
AuthType Basic
AuthName "test UserAdmin"
AuthUserFile "/var/www/conf/htpasswd"
Require valid-user

frontend.conf:

Alias /UserAdmin/ /var/www/UserAdmin/
# the frontend is on port 80 and proxies to port 90
ProxyPass /UserAdmin http://10.8.12.96:90/UserAdmin

backend.conf:

Alias /UserAdmin/ /var/www/UserAdmin/

<Directory "/var/www/UserAdmin">
Options FollowSymLinks
DirectoryIndex index
AllowOverride All
allow from all
# Satisfy any -- note I have tried many combinations here!
require valid-user
</Directory>

If I put the backend stuff in the frontend, and comment out the
ProxyPass - it works. But I need to be able to proxy. I really don't see
what I'm doing wrong.

Any ideas?

Thanks,
Deb

 >> Stay informed about: basic authentication and proxying 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Basic Newbie CommonName Questions. - Hi Experts: This is my first project that has required encryption, or any of this security stuff. I've configured Apache 2.0.47 to use mod-SSL, I hope. My environment is Solaris 8 on Intel, with all recommended patches. In my..

basic htaccess passwordprotection only from a range of IP .. - Hi all! I would like to configure the apache (2.0.47) that way, so that it does a username & password authentification when the referring IP is something else than 10.1.1.x Is that possible? How? Thank you Kolja
   Web Hosting and Web Master Forums (Home) -> Apache All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]