httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Simon Taylor" <...@nortel.com>
Subject [users@httpd] Apache/Tomcat CSS Hostname Rewrite Issue
Date Wed, 24 Aug 2005 19:50:35 GMT
We are using Apache with Tomcat and we are experiencing a difficulty
with URL's within the served HTML page sometimes being correctly
rewritten and sometimes not throughout the file.
 
Our users access our webserver through another server that just fwd's
the requests on.
In most instances i am seeing the Servlet output being rewritten
accordingly but when it comes to the stylesheet link it doesn't it
retains the name of the local virtual host that no external user has
access to.
 
Example - where app103.nortelnetworks.com is the external URL and
enmc-remedy is the internal vh name:-
 
<script language="JavaScript">
var contextPath = "http://app103.nortelnetworks.com/arsys";
var sharedURI = "http://app103.nortelnetworks.com/arsys/apps/shared";
var APP_URL = "
http://app103.nortelnetworks.com/arsys/apps/en/lorien/arforms";
var docCharset = "windows-1252";
var cacheDisable = "0";
var msgDlgWidth = "400";
var msgDlgHeight = "200";
var confirmDlgWidth = "400";
var confirmDlgHeight = "180";
</script>
 
<FORM NAME='FormFields'>
 
  
<link rel=stylesheet type='text/css'
href='http://enmc-remedy/arsys/apps/shared/javascript/ar_sys_ie.css'>
 
<script language="JavaScript">var
arPaneWidth=1198,arPaneHeight=736;</script>
<script language="JavaScript" src="
http://app103.nortelnetworks.com/arsys/apps/shared/javascript/ar_p_ie55.
js"></script>
<script language="JavaScript" src="
http://app103.nortelnetworks.com/arsys/apps/shared/javascript/ar_share.j
s"></script>
<script language="JavaScript" src="
http://app103.nortelnetworks.com/arsys/apps/shared/javascript/writejs.js
"></script>
<script language="JavaScript" src="
http://app103.nortelnetworks.com/arsys/apps/shared/javascript/ar_error_l
abel.js"></script>
<script language="JavaScript" src="
http://app103.nortelnetworks.com/arsys/apps/shared/javascript/ar_localiz
ed_messages_en.js"></script>
<script language="JavaScript" src="
http://app103.nortelnetworks.com/arsys/apps/shared/javascript/ar_client_
data.js"></script>
<script language="JavaScript" src="
http://app103.nortelnetworks.com/arsys/apps/shared/javascript/ar_fields.
js"></script>
<script language="JavaScript" src="
http://app103.nortelnetworks.com/arsys/apps/shared/javascript/ar_workflo
w.js"></script>

 

My problem is that im not sure whether it is the Java Servlet
"re-writing" the URL's or Apache.

We're not using mod-proxy or mod-proxy-html to rewrite content.

Its not the box were routing through as it happens when i avoid the box
and go direct - the stylesheet link appears to avoid re-writing unless i
use the IP address then it is rewritten (OR not depending on how you
look at it ) as it just uses the IP.

Apache

The loglevel on the error log doesnt help since that shows just errors

The customlog level shows just requests and not responses from Apache

Tomcat

I can see the URL requests being mapped to the servlets ok - no mention
of hosts - which leads me to believe it is an Apache thing

Where do i look next for the Apache intelligence behind implicit
hostname rewriting - must be a log option ive missed.

My feeling is that <link rel=stylesheet type='text/css'
href='http://enmc-remedy/arsys/apps/shared/javascript/ar_sys_ie.css'>
isnt being rewritten by whatever intelligence it is because the link is
single and not double quoted.

Simon

Simon Taylor
Service Tools Solutions (STS) Engineer
Nortel 
Email set@nortel.com
Office  +44.1628.617291 (ESN 6 861 7291)
Mobile +44.7740.533743 (ESN 748 3743)


 

 

 

Mime
View raw message