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.


DOMAIN           = localhost
HTTP_PORT        = 3000
EXTERNAL_URL     = http s://
DISABLE_SSH      = false
SSH_PORT         = 22
OFFLINE_MODE     = false

Apache 2 server.conf

<VirtualHost *:80>
ProxyPreserveHost on
ProxyRequests off

ProxyPass /
ProxyPassReverse /
RewriteEngine on
RewriteCond %{SERVER_NAME}
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]

When I’m connecting via the local network ( everything works fine. If I try to connect via the external URL (http s:// 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:

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