Reverse proxy with ssl on Windows

Started by mapomme1108, March 16, 2023, 10:16:23 PM

Previous topic - Next topic



I want to install a reverse proxy with ssl on Windows 11

For the moment, I use the ssl provided by apache but I plan to use Let's Encrypt

I use httpd-2.4.55-o111s-x64-vs17

I have created an apache service with this command :
httpd.exe -k install -n "Apache24"
I have commented out these modules in hppd.conf :
proxy proxy_ajp proxy_http rewrite deflate headers proxy_balancer proxy_connect proxy_html ssl
I have added this line in httpd.conf
Include conf/reverse_proxy/*.confListen 9033
I have created mysite.conf in conf/reverse_proxy
<VirtualHost *:9033>
SSLEngine On
SSLCertificateFile "D:/Apps/httpd-2.4.55-o111s-x64-vs17/Apache24/conf/ssl/server.crt"
SSLCertificateKeyFile "D:/Apps/httpd-2.4.55-o111s-x64-vs17/Apache24/conf/ssl/server.key"
SSLProxyEngine on
ProxyPreserveHost On
ProxyPass /
ProxyPassReverse /
RequestHeader set X-Forwarded-Proto "https"

I tried to restart the Apache24 service but it failed.
If I disable proxy_balancer, the Apache24 service start but when I go to "https://localhost:9033"
there is a page saying that there is a web server error

Can you help me ?

Thanks :)


First, you can run httpd.exe -S to do a syntax check.
Also what is in the D:/Apps/httpd-2.4.55-o111s-x64-vs17/Apache24/logs/error.log ?


You don't need to load

proxy_ajp      --> for ajp:// protocol
proxy_balancer --> loadbalancer
proxy_connect  --> for https://
proxy_html     --> if you need to change the HTML from the reversed server.