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 ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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 |
|
|||
|
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. |
|
|||
|
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. |
|
|||
|
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 |
|
|||
|
"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 | |
|
|