Woops, that's www.umich.edu/~malth/gaptuning/apache.

 -----Original Message-----
From:   Covington, Chris [mailto:[EMAIL PROTECTED]
Sent:   Mon Jan 23 08:54:36 2006
To:     users@httpd.apache.org
Subject:        RE: [EMAIL PROTECTED] mod_proxy_html doesn't rewrite as 
commanded

As for the original problem you're trying to solve, if you turn 
ProxyPreserveHost Off and you add hostname.example.com (the DNS name of the 
reverse proxy host itself) with IP 10.11.12.13 (the IP of the Exchange server) 
to your /etc/hosts on the reverse proxy, you won't need to bother with 
mod_proxy_html for Outlook Web Access.  You can then do ProxyPass and 
ProxyPassReverse statements with the reverse proxy's hostname instead.  See my 
page at http://www.umich.edu/~malth/gaptuning/postfix

Chris

 -----Original Message-----
From:   Dirk Taggesell [mailto:[EMAIL PROTECTED]
Sent:   Sun Jan 22 11:57:39 2006
To:     users@httpd.apache.org
Subject:        [EMAIL PROTECTED] mod_proxy_html doesn't rewrite as commanded

Hello Apache users,

Recently I sat up a reverseproxy (Apache 2.0.53, FreeBSD) for providing
Outlook Web-Access to a certain group of users.

What makes it somewhat sophisticated is that the reverseproxy itself is
located behind a firewall and has only a local IP address. So it has to
rewrite every (internal) hostname or IP address in html documents to the
external hostname that is seen from the outside.

With mod_proxy_html this works for all the occurances in normal html
source but the modul refuses to rewrite internal addresses into CSS
descriptions. (I managed to have the hostname rewritten whenever it
occurs in Javascript parts of the documents)
If I look into the source of the delivered document it still shows the
internal URL in between CSS statements.

My Configuration is as follows:
ProxyPass / http://10.11.12.13/
ProxyPassReverse / http://10.11.12.13/

SetOutputFilter  proxy-html
ProxyHTMLExtended On
ProxyHTMLURLMap 'http://10.11.12.13' 'https://hostname.example.com'

The host 10.11.12.13 is the Windows Server delivering the OWA documents,
'https://hostname.example.com' is the hostname for access from the outside.

Most likely my filter definition is not entirely correct, but the
several documentations on the mod_proxy_html website don't help me much.

Are my config directives ok? Am I missing something?

For instance, one of the culprits looks this way:
----------------------------
<div id="idMsgViewer" class="msgViewer" accesslevel="63" acceptlang="de"
rowsperpage="25" url="http://10.11.12.13/exchange/dirk/Inbox/";
onready="onViewReady()" onrefresh="onViewRefresh()"
onbeforerefresh="onBeforeViewRefresh()" onkeydown="onViewKeyDown()"
onkeypress="onViewKeyPress()" oncontextmenu="return(false);"
refreshthreshold="20%" viewdescriptor="xmlDefaultView"
onchangesort="persistSortOrder()" onerror="onViewError()"
onnavigate="onViewNavigation()" onselectionchange="updatePreviewPane()"
allowquickflag="1" followuptext="Nachverfolgung" loadingtext="Wird geladen"
nextseldir="1">

----------------------------

I asked this question in alt.apache.configuration some weeks ago,
received some help, but the problem still exists.
Link:
<http://groups.google.com/group/alt.apache.configuration/browse_frm/thread/8f2979bea18721e9/e7e2af323f400f8c?lnk=st&q=group%3Aalt.apache.configuration+insubject%3Aproblem+insubject%3Amit+insubject%3Amod_proxy_html&rnum=1&hl=en#e7e2af323f400f8c>

-- 
Thanks in advance
Dirk Taggesell


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


!DSPAM:1,43d4e01d275107564813184!



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to