You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Otis Dewitt - NOAA Affiliate <ot...@noaa.gov> on 2015/02/23 18:58:58 UTC

[users@httpd] ProxyReverse Issue on - httpd-2.2.29

Can someone please tell what I am doing wrong here, I am using Apache
reverse proxy. I have been having this issue for sometime.

#WORKS
1. If I use the Internal url directly to the server.
  a. https://example.com:20201/class/page/createpdf.jsp?requestId=7
  b. I get a pdf to download.

# FAILS
2. If I use the External url I get "might be temporarily down or it may
have moved permanently to a new web address."
  a. https://www.docuzzzz.com/class/page/createpdf.jsp?requestId=7
  b. "Web Page Not Available" - "The webpage at
https://www.docuzzzz.com/class/page/createpdf.jsp?requestId=7 might be
temporarily down or it may have moved permanently to a new web address.
Error code: ERR_INVALID_RESPONSE"


# Class Directive (443) #EXAMPLE
RewriteRule ^/class$(.*) https://www.docuzzzz.com/class$1 [L,NC]

<Location /class/>
        SetOutputFilter   proxy-html
        ProxyPassReverse  https://example.com:20201/class
        ProxyHTMLEnable   On
        ProxyHTMLExtended On
        ProxyHTMLURLMap   http://example.com:20201/class  /class
        RequestHeader     unset  Accept-Encoding
</Location>


Thanks,
Otis

Re: [users@httpd] ProxyReverse Issue on - httpd-2.2.29

Posted by Eric Covener <co...@gmail.com>.
On Mon, Feb 23, 2015 at 1:15 PM, Otis Dewitt - NOAA Affiliate
<ot...@noaa.gov> wrote:
> oops yeah missed adding that to the email.


What does the error log say?  I'd also suggest testing with a
command-line browser like wget/curl for a more meaningful error
message.

-- 
Eric Covener
covener@gmail.com

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] ProxyReverse Issue on - httpd-2.2.29

Posted by Rainer Jung <ra...@kippdata.de>.
Am 23.02.2015 um 19:18 schrieb Otis Dewitt - NOAA Affiliate:
> Everything works on this site except this url:
> https://www.docuzzzz.com/class/page/createpdf.jsp?requestId=7
>
> weird problem.
>
> Thanks,
> Otis
>
> On Mon, Feb 23, 2015 at 1:15 PM, Otis Dewitt - NOAA Affiliate
> <otis.dewitt@noaa.gov <ma...@noaa.gov>> wrote:
>
>     oops yeah missed adding that to the email.
>
>     Its in the config:
>
>     # Class Directive (443) #EXAMPLE
>     RewriteRule ^/class$(.*) https://www.docuzzzz.com/class$1 [L,NC]

What is the "$" in the left side of the rule supposed to do?

If you remove the dollar sign, or we just ignore it for a moment, I 
would suspect a redirect loop here. Is this the config from the http or 
https VHost? If http, then redirecting to https would be fine, but I 
woudn't understand why it should also proxy. If https, then the 
RweriteRule looks suspect.

>     ProxyPass /class https://example.com:20201/class
>
>     <Location /class/>
>              SetOutputFilter   proxy-html
>              ProxyPassReverse https://example.com:20201/class
>              ProxyHTMLEnable   On
>              ProxyHTMLExtended On
>              ProxyHTMLURLMap http://example.com:20201/class  /class
>              RequestHeader     unset  Accept-Encoding
>     </Location>

Regards,

Rainer

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] ProxyReverse Issue on - httpd-2.2.29

Posted by Otis Dewitt - NOAA Affiliate <ot...@noaa.gov>.
Everything works on this site except this url:
https://www.docuzzzz.com/class/page/createpdf.jsp?requestId=7

weird problem.

Thanks,
Otis

On Mon, Feb 23, 2015 at 1:15 PM, Otis Dewitt - NOAA Affiliate <
otis.dewitt@noaa.gov> wrote:

> oops yeah missed adding that to the email.
>
> Its in the config:
>
> # Class Directive (443) #EXAMPLE
> RewriteRule ^/class$(.*) https://www.docuzzzz.com/class$1 [L,NC]
>
> ProxyPass /class https://example.com:20201/class
>
> <Location /class/>
>         SetOutputFilter   proxy-html
>         ProxyPassReverse  https://example.com:20201/class
>         ProxyHTMLEnable   On
>         ProxyHTMLExtended On
>         ProxyHTMLURLMap   http://example.com:20201/class  /class
>         RequestHeader     unset  Accept-Encoding
> </Location>
>
> Thanks,
> Otis
>
>
> On Mon, Feb 23, 2015 at 1:11 PM, Eric Covener <co...@gmail.com> wrote:
>
>> > # Class Directive (443) #EXAMPLE
>> > RewriteRule ^/class$(.*) https://www.docuzzzz.com/class$1 [L,NC]
>> >
>> > <Location /class/>
>> >         SetOutputFilter   proxy-html
>> >         ProxyPassReverse  https://example.com:20201/class
>> >         ProxyHTMLEnable   On
>> >         ProxyHTMLExtended On
>> >         ProxyHTMLURLMap   http://example.com:20201/class  /class
>> >         RequestHeader     unset  Accept-Encoding
>> > </Location>
>>
>> Missing ProxyPass?  I don't see why this would be proxied.
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>> For additional commands, e-mail: users-help@httpd.apache.org
>>
>>
>

Re: [users@httpd] ProxyReverse Issue on - httpd-2.2.29

Posted by Otis Dewitt - NOAA Affiliate <ot...@noaa.gov>.
oops yeah missed adding that to the email.

Its in the config:

# Class Directive (443) #EXAMPLE
RewriteRule ^/class$(.*) https://www.docuzzzz.com/class$1 [L,NC]

ProxyPass /class https://example.com:20201/class

<Location /class/>
        SetOutputFilter   proxy-html
        ProxyPassReverse  https://example.com:20201/class
        ProxyHTMLEnable   On
        ProxyHTMLExtended On
        ProxyHTMLURLMap   http://example.com:20201/class  /class
        RequestHeader     unset  Accept-Encoding
</Location>

Thanks,
Otis


On Mon, Feb 23, 2015 at 1:11 PM, Eric Covener <co...@gmail.com> wrote:

> > # Class Directive (443) #EXAMPLE
> > RewriteRule ^/class$(.*) https://www.docuzzzz.com/class$1 [L,NC]
> >
> > <Location /class/>
> >         SetOutputFilter   proxy-html
> >         ProxyPassReverse  https://example.com:20201/class
> >         ProxyHTMLEnable   On
> >         ProxyHTMLExtended On
> >         ProxyHTMLURLMap   http://example.com:20201/class  /class
> >         RequestHeader     unset  Accept-Encoding
> > </Location>
>
> Missing ProxyPass?  I don't see why this would be proxied.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>

Re: [users@httpd] ProxyReverse Issue on - httpd-2.2.29

Posted by Eric Covener <co...@gmail.com>.
> # Class Directive (443) #EXAMPLE
> RewriteRule ^/class$(.*) https://www.docuzzzz.com/class$1 [L,NC]
>
> <Location /class/>
>         SetOutputFilter   proxy-html
>         ProxyPassReverse  https://example.com:20201/class
>         ProxyHTMLEnable   On
>         ProxyHTMLExtended On
>         ProxyHTMLURLMap   http://example.com:20201/class  /class
>         RequestHeader     unset  Accept-Encoding
> </Location>

Missing ProxyPass?  I don't see why this would be proxied.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org