Apache 1.3.11, ProxyPass and relative links

Apache 1.3.11, ProxyPass and relative links

Post by Schuyler Bish » Tue, 29 Feb 2000 04:00:00



I've been told that Apache 1.3.11's ProxyPass directive does not
handle relative links properly (or at all).  Can anyone validate that
for me?  It's from a trusted source, but I just wanted to make sure..

thanks.

Schuyler

 
 
 

Apache 1.3.11, ProxyPass and relative links

Post by Joshua Sliv » Wed, 01 Mar 2000 04:00:00



> I've been told that Apache 1.3.11's ProxyPass directive does not
> handle relative links properly (or at all).  Can anyone validate that
> for me?  It's from a trusted source, but I just wanted to make sure..

I'm not sure what that means.  It doesn't handle ABSOLUTE links,
in the sense that they will cause the browser to request documents
directly from the back-end server in a Reverse Proxy situation.

--
Joshua Slive

http://finance.commerce.ubc.ca/~slive/

 
 
 

Apache 1.3.11, ProxyPass and relative links

Post by Schuyler Bish » Thu, 02 Mar 2000 04:00:00


Sorry... what I meant was if a site's html refernces links relatively,
i.e. <a href=/documents> instead of <a
href=http://www.foo.com/documents>

Schuyler

On 29 Feb 2000 21:50:09 GMT, "Joshua Slive"



>> I've been told that Apache 1.3.11's ProxyPass directive does not
>> handle relative links properly (or at all).  Can anyone validate that
>> for me?  It's from a trusted source, but I just wanted to make sure..

>I'm not sure what that means.  It doesn't handle ABSOLUTE links,
>in the sense that they will cause the browser to request documents
>directly from the back-end server in a Reverse Proxy situation.

>--
>Joshua Slive

>http://finance.commerce.ubc.ca/~slive/

 
 
 

Apache 1.3.11, ProxyPass and relative links

Post by Joshua Sliv » Thu, 02 Mar 2000 04:00:00



> Sorry... what I meant was if a site's html refernces links relatively,
> i.e. <a href=/documents> instead of <a
> href=http://www.foo.com/documents>

I haven't used this extensively myself, but from everything I know
this should work fine.  Of course, you haven't given very many details
about the setup you are talking about and what you expect to happen.
In any case, it isn't difficult to setup, so why not just try it?

--
Joshua Slive

http://finance.commerce.ubc.ca/~slive/

 
 
 

Apache 1.3.11, ProxyPass and relative links

Post by Leslie Mikese » Thu, 02 Mar 2000 04:00:00





>> Sorry... what I meant was if a site's html refernces links relatively,
>> i.e. <a href=/documents> instead of <a
>> href=http://www.foo.com/documents>

>I haven't used this extensively myself, but from everything I know
>this should work fine.  Of course, you haven't given very many details
>about the setup you are talking about and what you expect to happen.
>In any case, it isn't difficult to setup, so why not just try it?

The browser reconstructs the missing parts of a relative reference
according to where it thinks you are currently, and it doesn't
know anything about your proxypass directive. If the relative
reference does not include the leading / it will always work
since it will always appear under the proxypassed directory.
If it does have the leading / it will only work if the reference
still maps under the proxypass directory.  That is, given
ProxyPass /p_dir http://p_host.com/p_dir
a reference to sub_dir would work, /p_dir/subdir would work, but
/other_dir would not.

  Les Mikesell

 
 
 

1. Apache 1.3.11 (Solaris) and ProxyPass with authentication...

Greetings.

I've gotten Apache 1.3.11 set-up to pass-through proxy for a site that
we wish to authenticate access to, minus the authentication.  Here's how
I have it set-up:

httpd.conf:
ProxyPass /virtual1/ http://www.foo.com/virtual1/
ProxyPassReverse /virtual1/ http://www.foo.com/virtual1/

access.conf:
<Directory proxy:*>
    Allow from all
    Order deny,allow
    AuthName "Restricted proxy area"
    AuthType Basic
    AuthUserFile /usr/local/apache/passwd/passwd
    Require valid-user
</Directory>

It prompts me for the authentication, and I have created
/usr/local/apache/passwd/passwd with htpasswd, but whatever user I
create, then use for the pop-up auth box fails.

Any suggestions welcomed.

Thanks -

Schuyler

Sent via Deja.com http://www.deja.com/
Before you buy.

2. Odd problem with MS IE against Apache/Jserv using SSL (longish)

3. link in apache 1.3.11

4. Setting up SCSI harddisk...

5. Apache 1.3.11 and SIGHUP/SIGUSR1 problems

6. Upgrading AS 200/166 -> AS 200/233

7. Apache 1.3.11 And Server Hostnames

8. 2.5.66-mm3 with contest

9. Apache 1.3.11 and SGI IRIX

10. Instaling mod_perl 1.21 on Apache 1.3.11

11. Apache 1.3.11 and undo Action ?

12. mod_auth_nds & apache 1.3.11 problem

13. HELP: Apache 1.3.11 install problem