I have a website and want to host a wordpress blog(hosted on a different instance) under '/blog'. I am using nginx proxy with below configuration
location ^~ /blog
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
proxy_set_header X-NginX-Proxy true;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_http_version 1.1;
proxy_pass 11.111.11.111
proxy_redirect off;
}
I have also modified wordpress settings->general
WordPress Address (URL) - http://mywebsite.com/blog
Site Address (URL) - http://mywebsite.com/blog
The '/blog' in not fully functional as it is unable to load css and js .
Anyone has any idea how to do this. I have read many posts on this issue , but none solved my issue. Thanks.