A
A
Alexander Nikulshin2021-05-11 23:25:38
Apache HTTP Server
Alexander Nikulshin, 2021-05-11 23:25:38

How to set up a reverse proxy on Apache windows?

When starting the apache service, it stops with an error: configuration error. I am using xampp build.
Apache Configured as follows:
httpd.conf included modules

LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_ajp_module modules/mod_proxy_ajp.so
LoadModule proxy_balancer_module modules/mod_proxy_balancer.so
LoadModule proxy_connect_module modules/mod_proxy_connect.so
LoadModule proxy_http_module modules/mod_proxy_http.so
LoadModule proxy_http2_module modules/mod_proxy_http2.so


httpd-vhosts.conf added alias
<VirtualHost *:80>
     ServerName shop1
     ErrorLog "logs/example.com-error.log"
     CustomLog "logs/example.com-access.log" common
     ProxyPreserveHost On
     ProxyPass        http://127.0.0.1:5000
     ProxyPassReverse http://127.0.0.1:5000
 </VirtualHost>

I can not understand what is wrong, I did everything according to the manuals.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question