top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

How to run Windows Server through mod_proxy

+1 vote
265 views

We have a Windows XP machine functioning as a file etc "server" and a Debian Linux machine running
Apache httpd as a web server. We intend to replace the XP machine with some version of Windows Server (looking at WHS 2011 at the moment on a trial basis). I would like to be able to continue running the Apache server, but to allow web access to the WHS machine using apache mod_proxy. I already have this working for several servers (etc. usermin).

I've tried setting this up in my mod_proxy ssl config:

ProxyRequests off
SSLProxyEngine on
ProxyPass /whs/ https://x.x.x.x:443/
ProxyPassReverse /whs/ https://x.x.x.x:443/

When I enter https://mydomain.com/whs/ on an external computer I get "Internet Explorer cannot display the webpage". If I try to access this site within my network my browser redirects to
https://x.x.x.x/Remote/logon?ReturnUrl=%2fremote

Has anyone got this config working, or is there a recipe somewhere for this? I really don't want to use IIS as my primary web server.

posted Jan 4, 2014 by Satish Mishra

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

+1 vote

You might be better off removing the port number from the ProxyPass and, more importantly, the ProxyPassReverse.Apache only rewrites matching URLs, and the links that your proxied server are creating probably do not include the port number.

answer Jan 5, 2014 by Dewang Chaudhary
Similar Questions
+1 vote

I am trying to use filters to replace html body of a page through a reverse proxy. This are my Apache settings :

ServerName myProxy.com
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined  ProxyRequests Off

Order deny,allow
Allow from all

ExtFilterDefine fixtext mode=output intype=text/html 
cmd="/bin/sed s/aword/replacement/g"
ProxyPass http://mySite.com/ 
ProxyPassReverse http://mySite.com/ 
SetOutputFilter fixtext

If "mysite.come" is on the same server as "myProxy.com" it works but it doesn't work if they are on different servers. What am I doing wrong ?

0 votes

We have:

Apache 2.2.3
CentOS 5.5 x86_64
Splunk 5.0.2

I only know the basics but Apache has been serving us very well with the below config and only after about a week did pages refresh very slowly, up to a minute to reload sometimes.

I tailed both httpd and splunkd logs and saw a consistent delay of 30s between proxy and origin server (both on same host) along with plenty of 304s, followed by what appeared to be some timeout and then slowly the 200s started coming back in.

A restart of httpd cleared up the issue. Im lost, please help. Could this be a caching problem?

+5 votes

WE are trying to setup HTTPS tunnelling to a backend server through Apache proxy but we are finding the client connect but Apache does not send through the traffic the backend server.

Config we have on our Apache proxy virtual host is

DocumentRoot "/usr/local/apache/htdocs/ibcm/" 
ServerName test.testdom.local 
ErrorLog logs/ibcm 
ServerAdmin webmaster@testdom.local 
ProxyRequests On 
AllowConnect 443 
SSLEngine on 
SSLHonorCipherOrder On 
SSLProtocol -ALL SSLv3 TLSv1 
SSLCipherSuite ALL:!aNULL:!ADH:!eNULL:!LOW:!EXP:RC4RSA:HIGH:MEDIUM 
SSLCertificateFile "/etc/ssl/crt/ibcm.crt" 
SSLCertificateKeyFile "/etc/ssl/crt/testdom.key" 
SSLCertificateChainFile "/etc/ssl/crt/CA-DOM.crt" 
 Order deny,allow 
 Deny from all 
 Order deny,allow 
 Allow from all 

Anybody know what we are not doing correctly. Also we found Apache would not start without us putting in the root certificate. Thought it would not need any certificate for tunnelling so wonder if we have missed something.

0 votes

I am newbie in Apache concepts and only know Apache Tomcat. Following is my requirement, would anybody please help me how to setup.

I have a clustered JBOSS EAP 6.3 instances running on two different Windows 8 machines. Now I am planning to put a load balancer to dispatch the requests to these JBOSS clustered servers.

I am thinking of Apache httpds as a load balancer. What I got to know is these Apache web server will be available in source code and source code needs to be compiled as per the environment.

I am not finding any Windows 8 (64bit) Apache http installed in the Apache site. Would someone help me from where to download the Windows 8 (64bit) version of Apache httpd service.

And also any guide to setup the load balancer on Windows machine.

+1 vote

I am trying to figure out how to forward mainly the Error Logs from an Apache for Windows installation over to a remote syslog server. All documents I can locate show how to do this if Apache is running in Linux. Does anyone know how to make this happen in Windows?

...