|
Home > Archive > Web Servers on Unix and Linux > May 2004 > ReverseProxy Apache 2 Problem
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
ReverseProxy Apache 2 Problem
|
|
| James 2004-05-30, 10:48 am |
| I have followed the Reverse Proxy instructions from the Nick Kew
article on Apache week.com. So far it works just fine except for one
small issue
When I view the Reverse Proxied content using Internet Explorer, there
seems to be a line of strange code at the top and bottom of each
Proxied page.
example:
3e
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
<!-- " --->
0
Where did the "3e" at the top and the "0" at the bottom come from? How
do I delete this or prevent this from happening?
It works fine in other popular browsers. The problem only seems to be
with Internet Explorer
Here is my Proxy section of my httpd.conf file
# Proxy Server directives. Uncomment the following lines to
# enable the proxy server:
#
<IfModule mod_proxy.c>
ProxyRequests Off
#
<Proxy *>
Order deny,allow
# Deny from all
Allow from all
</Proxy>
ProxyPass /pub/ https://xxxxxxxx.com/
ProxyHTMLURLMap https://xxxxxxxx.com/ /pub
#
<Location /pub/>
ProxyPassReverse /
SetOutputFilter proxy-html
ProxyHTMLURLMap / /pub/
ProxyHTMLURLMap /pub /pub
RequestHeader unset Accept-Encoding
</Location>
#
# Enable/disable the handling of HTTP/1.1 "Via:" headers.
# ("Full" adds the server version; "Block" removes all outgoing Via:
headers)
# Set to one of: Off | On | Full | Block
#
ProxyVia On
#
# To enable a cache of proxied content, uncomment the following lines.
# See http://httpd.apache.org/docs-2.0/mod/mod_cache.html for more
details.
#
#<IfModule mod_disk_cache.c>
CacheEnable disk /
CacheRoot "/var/cache/mod_proxy"
#</IfModule>
#
</IfModule>
# End of proxy directives.
#<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule /pub/ https://xxxxxxxx.com/
#</IfModule>
| |
| Nick Kew 2004-05-30, 10:48 am |
| In article <2022588.0405260820.67ee845c@posting.google.com>,
doublejoon@yahoo.com (James) writes:
> example:
> 3e
> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
> <!-- " --->
> 0
That's HTTP/1.1 Chunked encoding. Any browser that sends an HTTP/1.1
request MUST be prepared to accept and decode it. The difficulty arises
when an M$ thingey pretending to be a browser sends a request labelled
as HTTP/1.1 but doesn't really even support 1.0. I don't know what
causes M$IE to exhibit this behaviour: I haven't seen it myself, but
yours isn't the first report of it.
The reason for setting it is to enable persistent connections, which
speeds the web up by saving the browser the need to make a separate
HTTP connection for every stylesheet, script, image, etc in a page.
You can sacrifice that by turning chunked encoding off, or browser-
sniff and disable HTTP/1.1 for offending user-agents.
--
Nick Kew
Nick's manifesto: http://www.htmlhelp.com/~nick/
|
|
|
|
|