Proxy and Authentification

This is a discussion on Proxy and Authentification within the Apache Web Server forums, part of the Web Server and Related Forums category; Hi, I tried to configure an apache 2.0.49 to proxy some other ports to port 80 and i ...


Go Back   Usenet Forums > Web Server and Related Forums > Apache Web Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 09-27-2004
Nefertem
 
Posts: n/a
Default Proxy and Authentification

Hi,
I tried to configure an apache 2.0.49 to proxy some other ports to port 80
and i tried to put an authentification on it, but it didn't work.
(So i could implement authentification on software that wasn't designed for
this)

Config:
<VirtualHost 192.168.0.20:80>
....bla...
ProxyPass /tools/app1/ http://localhost:4080/
ProxyPassReverse /tools/app1/ http://localhost:4080/
</VirtualHost>

<Directory proxy:*>
order deny,allow
deny from all
allow from all

AllowOverride AuthConfig
Options None
Order deny,allow
AuthType Basic
AuthName "Restricted Files"
AuthUserFile /etc/apache2/passwords.txt
Require user jean-luc
</Directory>


But the browser never gives me a login....

Did someone this before?

Thanks,
Jean-Luc




  #2 (permalink)  
Old 09-27-2004
Davide Bianchi
 
Posts: n/a
Default Re: Proxy and Authentification

On 2004-09-27, Nefertem <nefertem@gmx.net> wrote:
><Directory proxy:*>


If it's a directory doesn't have any port number. A directory
is a directory.

> order deny,allow
> deny from all
> allow from all


Funny. So you deny from everywhere and the allow from everywhere...

Davide

--
I can't wait for EDLIN to be ported for Windows.
  #3 (permalink)  
Old 09-27-2004
Nefertem
 
Posts: n/a
Default Re: Proxy and Authentification

Please excuse me, was a copy paste error :-)
So here is the right configuration:
<Directory proxy:*>
order deny,allow
deny from all

AllowOverride AuthConfig
Options None
AuthType Basic
AuthName "Restricted Files"
AuthUserFile /etc/apache2/passwords.txt
Require user jean-luc
</Directory>

And the software who's listening on port 4080 isn't a directory, it's a
configuration page for a daemon.

Thanks.


"Davide Bianchi" <davideyeahsure@onlyforfun.net> wrote in message
news:slrnclglb1.1es.davideyeahsure@fogg.onlyforfun .net...
> On 2004-09-27, Nefertem <nefertem@gmx.net> wrote:
>><Directory proxy:*>

>
> If it's a directory doesn't have any port number. A directory
> is a directory.
>
>> order deny,allow
>> deny from all
>> allow from all

>
> Funny. So you deny from everywhere and the allow from everywhere...
>
> Davide
>
> --
> I can't wait for EDLIN to be ported for Windows.



  #4 (permalink)  
Old 09-27-2004
Davide Bianchi
 
Posts: n/a
Default Re: Proxy and Authentification

On 2004-09-27, Nefertem <nefertem@gmx.net> wrote:
> So here is the right configuration:
><Directory proxy:*>


Still doesn't make sense. If it is a directory doesn't
have a PORT number! Must be a directory (a Path).

> order deny,allow
> deny from all


So, now you've closed everybody out...

Davide

--
Unix: Where /sbin/init is still Job 1.
-- From a Slashdot.org post
  #5 (permalink)  
Old 09-27-2004
Nefertem
 
Posts: n/a
Default Re: Proxy and Authentification


"Davide Bianchi" <davideyeahsure@onlyforfun.net> wrote in message
news:slrnclgnh4.1jd.davideyeahsure@fogg.onlyforfun .net...
> On 2004-09-27, Nefertem <nefertem@gmx.net> wrote:
>> So here is the right configuration:
>><Directory proxy:*>

>
> Still doesn't make sense. If it is a directory doesn't
> have a PORT number! Must be a directory (a Path).


Sure, <Directory Proxy:*> is a general directive for global proxy
configuration, it should deny access to everybody except authenticated
users.
With the proxypass command, i replace a directory with an other web server
(in this case localhost:4080)

>> order deny,allow
>> deny from all

>
> So, now you've closed everybody out...
>
> Davide
>
> --
> Unix: Where /sbin/init is still Job 1.
> -- From a Slashdot.org post



 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 11:42 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0