Koozali.org: home of the SME Server
Obsolete Releases => SME Server 8.x => Topic started by: blacktusk on September 29, 2012, 05:02:49 AM
-
I have an issue with HTML rendering on virtual servers inside our firewall. I have setup a simple Proxypass directive for httpd.conf as below (via expand-templates)
RewriteEngine on
RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK)
RewriteRule .* - [F]
ProxyPreserveHost On
# ProxyHTMLEnable On
# theses dirs are reverse proxyed to an internal server
ProxyPass /iis http://10.10.10.113/
ProxyPassReverse /iis http://10.10.10.113/
ProxyPass /projects/ http://10.10.10.115/projects/
ProxyPassReverse /projects/ http://10.10.10.115/projects/
ProxyPass /ubuntu http://10.10.10.114/
ProxyPassReverse /ubuntu http://10.10.10.114/
There are 3 virtual servers, identified by /iis, /projects and /ubuntu.
The redirection works fine, however, when I navigate to a page I do not get the correctly rendered HTML, just text content. If I use the back button in the browser then it renders correctly in Internet Explorer, however in Firefox, it never renders correctly.
I have found various information about rewrite directives and EnableHTML, however, any of these I have tried result in the web page bei ng Not found on the server!
Any ideas woul be most welcome. I am running SME Server8 as a VM under ESXI 5.0 running on a DELL R710 Server. Port 80 is redirected to the SME server via our Sonicwall firewall.
-
Does it work if you use SME's built-in proxypass configuration as described here?
http://wiki.contribs.org/SME_Server:Documentation:FAQ#ProxyPass_a_alias.2Fdirectory.2Flocation
That is:
db accounts set iis ProxyPass
db accounts setprop iis Target http://10.10.10.113
db accounts setprop iis Description IIS
db accounts setprop iis HTTP on
db accounts setprop iis HTTPS on
db accounts setprop iis ValidFrom 0.0.0.0/0
expand-template /etc/httpd/conf/httpd.conf
sv t httpd-e-smith
Or, all on one line for each URL:
db accounts set iis ProxyPass Target 'http://10.10.10.113/' Description IIS HTTP on HTTPS on ValidFrom '0.0.0.0/0'
db accounts set projects ProxyPass Target 'http://10.10.10.115/projects/' Description Projects HTTP on HTTPS on ValidFrom '0.0.0.0/0'
db accounts set ubuntu ProxyPass Target 'http://10.10.10.114/ Description Ubuntu HTTP on HTTPS on ValidFrom '0.0.0.0/0'
expand-template /etc/httpd/conf/httpd.conf
sv t httpd-e-smith
(Note: I suspect the ValidFrom directive could be left off - it's intention is to allow you to have the proxypass work only from a specific selection of remote IPs)
-
The redirection works fine, however, when I navigate to a page I do not get the correctly rendered HTML, just text content.
That would be due to an error on the part of the backend webserver - not setting content-type correctly. If you tell us the name of the website, or websites.