this post was submitted on 02 Jul 2023
22 points (95.8% liked)

wefwef

4215 readers
1 users here now

wefwef is now Voyager! Subscribe to [email protected].

founded 1 year ago
MODERATORS
22
submitted 1 year ago* (last edited 1 year ago) by [email protected] to c/wefwef
 

Hey there, I set up a Wefwef-Instance behind a ngninx reverse proxy. The server responds fine, yet when I call it through a forwarded domain, Wefwef will only return the page-header ("wefwef for lemmy") and a black page. Does anyone know why that would be?

URL: https://norgur.com/wef

you are viewing a single comment's thread
view the rest of the comments
[–] rylin 2 points 1 year ago* (last edited 1 year ago) (1 children)

Right, what I meant is you are hosting it on nginx as norgur.com/wefwef instead of wefwef.norgur.com. I have mine hosted as a subdomain.

What does your nginx code block look like?

[–] [email protected] 1 points 1 year ago (1 children)
    #extension docker begin
    location ~ ^/wef.* {
            proxy_pass http://0.0.0.0:7914;
            proxy_set_header Host              $host;
            proxy_set_header X-Real-IP         $remote_addr;
            proxy_set_header X-Forwarded-For   $proxy_add_x_forwarded_for;
            proxy_set_header X-Forwarded-Proto $scheme;
    }

    #extension docker end

(7914 is the external port of the container, so that's correct)

[–] [email protected] 3 points 1 year ago (1 children)

When you go to the local IP internally does it load properly?

[–] [email protected] 1 points 1 year ago

it does load properly when I call the website directly by the server's hostname (which doesn't have HTTPS enabled).