Jump to content

setting up reverse proxy issue on Wordpress docker


Amar

Recommended Posts

Hi,

I'm having an issue setting up a reverse proxy on my Wordpress docker. I have a Nginx docker container (link removed) running separately. Using unRAID as the OS. I have other services running under domain.com so I'm trying to run WP in a subdir.

This is the block I'm using in my nginx conf file

#Wordpress Docker
                location ^~ /blog {
                      proxy_pass http://10.0.0.18:91/;
                      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;
                      proxy_redirect http://10.0.0.18:91/ https://$host/;
                      proxy_cookie_domain http://10.0.0.18:91/ $host;
                      include /config/nginx/php.conf;
}

When going to domain.com/blog looks like it tries to load but without CSS and only text, for example:

 

enter image description here

 

Any help would be appreciated!

 

Thank you

Link to comment

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...