Proxy Error: DNS lookup failure on Apache 2

Hey everyone,

I’m struggling with my gogs and apache 2 reverse proxy setup. I’m using gogs version 0.12.3 in a LXC on a Proxmox machine.

app.ini

[server]
DOMAIN           = localhost
HTTP_PORT        = 3000
EXTERNAL_URL     = http s://git.mydomain.com/
DISABLE_SSH      = false
SSH_PORT         = 22
START_SSH_SERVER = false
OFFLINE_MODE     = false

Apache 2 server.conf

<VirtualHost *:80>
ServerName git.mydomain.com
ProxyPreserveHost on
ProxyRequests off

ProxyPass / http://192.168.2.89:3000/
ProxyPassReverse / http://192.168.2.89:3000/
RewriteEngine on
RewriteCond %{SERVER_NAME} =git.mydomain.com
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
</VirtualHost>

When I’m connecting via the local network (192.168.2.89:3000) everything works fine. If I try to connect via the external URL (http s://git.mydomain.com) the css and js files are not loading. A quick looking in the developer console of chrome shows that I got proxy errors for the files:

Proxy Error

The proxy server received an invalid response from an upstream server.
The proxy server could not handle the request

Reason: DNS lookup failure for: 192.168.2.89:3000js

I think the problem might be the missing slash in the DNS lookup, but I don’t know how to fix this…

Any help is much appreciated!

Best regards
Berti