Reverse Proxy incorrectly transform content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

I'm using Apache to redirect request via reverse proxy to Tomcat on port 8080. On most of the pages, it will work flawlessly. However, on some pages, it seems that Apache will incorrectly modify the HTML content (IMO, as part of URL transformation). For example the following code:

<span class="blog-category-level"><a href="" title="RSS">

becomes:

<span class="blog-category-level"><a href="" class="wikiexternallink"><a class="wikimodel-freestanding" href="" href="http://wiki.knowledgesharing.in.th/Blog/CategoryRss?xpage=plain&amp;amp;category=Blog.News">http://wiki.knowledgesharing.in.th/Blog/CategoryRss?xpage=plain&amp;amp;category=Blog.News"><span class="wikigeneratedlinkcontent">http://wiki.knowledgesharing.in.th/Blog/CategoryRss?xpage=plain&amp;amp;category=Blog.News</span></a></span>" title="RSS">

with a mysterious span code inside href attribute.

FYI, the original HTML validated as XHTML 1.0 Strict.

I have no idea what cause this. Please help.

My setting is as follow.

Apache version: 
I have this issue with Apache on both Ubuntu 8.04 and 9.10, i.e. the following versions:

Server version: Apache/2.2.8 (Ubuntu)
Server built:   Nov 13 2009 21:58:02

Server version: Apache/2.2.12 (Ubuntu)
Server built:   Nov 12 2009 22:51:51

The reverse proxy is configured as follow:

<VirtualHost *:80>
ServerName wiki.knowledgesharing.in.th
ServerAdmin "admin AT knowledgesharing DOT in DOT th"
ServerSignature Email

ProxyPass / http://wiki.knowledgesharing.in.th:8080/
ProxyPassReverse / http://wiki.knowledgesharing.in.th:8080/

<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
</VirtualHost>

The site is live, so you could try it at:

http://wiki.knowledgesharing.in.th/Blog/ (via Apache reverse proxy)
http://wiki.knowledgesharing.in.th:8080/Blog/ (direct to Tomcat, without reverse proxy)

Thank you very much,
Pongtawat

[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux