500 error when trying to setup reverse-proxy with SSL (Apache) #373

Closed
opened 2026-02-28 01:44:22 -05:00 by deekerman · 9 comments
Owner

Originally created by @mangokinky on GitHub (Oct 10, 2021).

Is it a duplicate question?
Please search in Issues without filters: https://github.com/louislam/uptime-kuma/issues?q=
I couldn't find any issue with this problem

Describe your problem
Hello, I'm trying to setup Reverse-Proxy with SSL using Apache for Uptime-Kuma
But I get 500 Internal Server Error, I double-checked that I did everything correctly but the error is still there

Info
Uptime Kuma Version: 1.7.3
Using Docker?: No
Docker Version: //
Node.js Version (Without Docker only): v16.11.0
OS: Ubuntu 2004
Browser: Chrome

Originally created by @mangokinky on GitHub (Oct 10, 2021). **Is it a duplicate question?** Please search in Issues without filters: https://github.com/louislam/uptime-kuma/issues?q= I couldn't find any issue with this problem **Describe your problem** Hello, I'm trying to setup Reverse-Proxy with SSL using Apache for Uptime-Kuma But I get 500 Internal Server Error, I double-checked that I did everything correctly but the error is still there **Info** Uptime Kuma Version: 1.7.3 Using Docker?: No Docker Version: // Node.js Version (Without Docker only): v16.11.0 OS: Ubuntu 2004 Browser: Chrome
deekerman 2026-02-28 01:44:22 -05:00
  • closed this issue
  • added the
    help
    label
Author
Owner

@louislam commented on GitHub (Oct 10, 2021):

You have to provide apache log and the apache config

@louislam commented on GitHub (Oct 10, 2021): You have to provide apache log and the apache config
Author
Owner

@mangokinky commented on GitHub (Oct 10, 2021):

Error:

[Sun Oct 10 17:32:37.139922 2021] [mpm_event:notice] [pid 97005:tid 140088322133056] AH00489: Apache/2.4.41 (Ubuntu) OpenSSL/1.1.1f configured -- resuming normal operations
[Sun Oct 10 17:32:37.139983 2021] [core:notice] [pid 97005:tid 140088322133056] AH00094: Command line: '/usr/sbin/apache2'
[Sun Oct 10 17:32:38.121218 2021] [proxy:warn] [pid 97007:tid 140088306378496] [client xxx.xxx.xxx.xxx:xxxxx] AH01144: No protocol handler was valid for the URL / (scheme 'http'). If you are using a DSO version of mod_proxy, make sure the proxy submodules are included in the configuration using LoadModule.
[Sun Oct 10 17:32:40.669369 2021] [proxy:warn] [pid 97007:tid 140087966803712] [client xxx.xxx.xxx.xxx:xxxxx] AH01144: No protocol handler was valid for the URL / (scheme 'http'). If you are using a DSO version of mod_proxy, make sure the proxy submodules are included in the configuration using LoadModule.

Config:

<VirtualHost *:443>
  ServerName mistland.cf
  SSLEngine On
  SSLCertificateFile /etc/letsencrypt/live/mistland.cf/fullchain.pem
  SSLCertificateKeyFile /etc/letsencrypt/live/mistland.cf/privkey.pem
  # Protocol 'h2' is only supported on Apache 2.4.17 or newer.
  Protocols h2 http/1.1

  ProxyPass / http://localhost:3001/
  RewriteEngine on
  RewriteCond %{HTTP:Upgrade} websocket [NC]
  RewriteCond %{HTTP:Connection} upgrade [NC]
  RewriteRule ^/?(.*) "ws://localhost:3001/$1" [P,L]
</VirtualHost>
@mangokinky commented on GitHub (Oct 10, 2021): Error: ``` [Sun Oct 10 17:32:37.139922 2021] [mpm_event:notice] [pid 97005:tid 140088322133056] AH00489: Apache/2.4.41 (Ubuntu) OpenSSL/1.1.1f configured -- resuming normal operations [Sun Oct 10 17:32:37.139983 2021] [core:notice] [pid 97005:tid 140088322133056] AH00094: Command line: '/usr/sbin/apache2' [Sun Oct 10 17:32:38.121218 2021] [proxy:warn] [pid 97007:tid 140088306378496] [client xxx.xxx.xxx.xxx:xxxxx] AH01144: No protocol handler was valid for the URL / (scheme 'http'). If you are using a DSO version of mod_proxy, make sure the proxy submodules are included in the configuration using LoadModule. [Sun Oct 10 17:32:40.669369 2021] [proxy:warn] [pid 97007:tid 140087966803712] [client xxx.xxx.xxx.xxx:xxxxx] AH01144: No protocol handler was valid for the URL / (scheme 'http'). If you are using a DSO version of mod_proxy, make sure the proxy submodules are included in the configuration using LoadModule. ``` Config: ``` <VirtualHost *:443> ServerName mistland.cf SSLEngine On SSLCertificateFile /etc/letsencrypt/live/mistland.cf/fullchain.pem SSLCertificateKeyFile /etc/letsencrypt/live/mistland.cf/privkey.pem # Protocol 'h2' is only supported on Apache 2.4.17 or newer. Protocols h2 http/1.1 ProxyPass / http://localhost:3001/ RewriteEngine on RewriteCond %{HTTP:Upgrade} websocket [NC] RewriteCond %{HTTP:Connection} upgrade [NC] RewriteRule ^/?(.*) "ws://localhost:3001/$1" [P,L] </VirtualHost> ```
Author
Owner

@mangokinky commented on GitHub (Oct 10, 2021):

nwm, found the issue
For anyone wondering I found the solution here

@mangokinky commented on GitHub (Oct 10, 2021): nwm, found the issue For anyone wondering I found the solution [here](https://stackoverflow.com/questions/23931987/apache-proxy-no-protocol-handler-was-valid)
Author
Owner

@mangokinky commented on GitHub (Oct 10, 2021):

Hello, I have another problem, now I can't use dashboard because it says this:
Cannot connect to the socket server. [Error: websocket error] Reconnecting...

@mangokinky commented on GitHub (Oct 10, 2021): Hello, I have another problem, now I can't use dashboard because it says this: Cannot connect to the socket server. [Error: websocket error] Reconnecting...
Author
Owner

@louislam commented on GitHub (Oct 10, 2021):

If localhost is working, it is usually because of missing the upgrade headers.

@louislam commented on GitHub (Oct 10, 2021): If localhost is working, it is usually because of missing the upgrade headers.
Author
Owner

@mangokinky commented on GitHub (Oct 10, 2021):

Yes, localhost is working, could you please tell me how to add the upgrade headers?

@mangokinky commented on GitHub (Oct 10, 2021): Yes, localhost is working, could you please tell me how to add the upgrade headers?
Author
Owner

@chakflying commented on GitHub (Oct 10, 2021):

From this answer looks like you need proxy_wstunnel module as well. Have you checked you have installed it?

@chakflying commented on GitHub (Oct 10, 2021): From [this](https://stackoverflow.com/a/27534443) answer looks like you need `proxy_wstunnel` module as well. Have you checked you have installed it?
Author
Owner

@mangokinky commented on GitHub (Oct 10, 2021):

I didn't, I'll try it out right after I get back
Thanks for showing me!

@mangokinky commented on GitHub (Oct 10, 2021): I didn't, I'll try it out right after I get back Thanks for showing me!
Author
Owner

@mangokinky commented on GitHub (Oct 10, 2021):

Yes it's working, thank you so much!

@mangokinky commented on GitHub (Oct 10, 2021): Yes it's working, thank you so much!
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/uptime-kuma#373
No description provided.