16

I have added ProxyPass in the virtual-host and end up with below error in the error.log file.

proxy: No protocol handler was valid for the URL /. If you are using a DSO version of mod_proxy, make sure the proxy submodules are included in the configuration using LoadModule.

In the front end I get 500 when I request particular page.

How can I fix this error?

Techie
  • 44,706
  • 42
  • 157
  • 243

1 Answers1

36

You need to enable proxy module :

a2enmod proxy_http
a2enmod proxy

And restart you Apache server.

service apache2 restart
Techie
  • 44,706
  • 42
  • 157
  • 243
  • I was trying to get Gitlab to work and had to enable proxy_html as well – soulfreshner Mar 15 '16 at 22:58
  • 1
    In my case, I needed `proxy_ajp` module. `a2enmod proxy_ajp` – kujiy Nov 29 '16 at 01:14
  • 8
    For me, it was `a2enmod proxy_wstunnel` (to enable WebSockets). I also needed `ProxyPassMatch ^/rtm/ws/(.*)/websocket$ ws://localhost:8080/rtm/ws/$1/websocket` in the configuration file to make sure ws:// won't be remapped to http:// for all requests to /rtm/ws – stefan.m Mar 01 '17 at 11:27
  • 2
    `a2enmod proxy_wstunnel` it was! For fixing my SignalR problem with a Apache reversed proxy. – MartinH Feb 23 '21 at 20:47