I have main site running on node on instance and I used sub-directory to run WordPress on another instance nginx config

location /eg-en/blog {
        proxy_pass http://{{Instance-Ip}};

The issue is the when I open inspect I see that the resources (Network Tab) is coming from WordPress instance IP!!

My question here how to clean Network tab and make it show it's loading from main website?!

Thanks, if there is any further explanation, please just ask :)

  • What are your SITE and HOME URLs set to? – Richard Smith Jan 26 '19 at 10:07
  • Here is the full block ``` server{ listen 80; expires $expires; server_name {{SitName}}; location / { auth_basic off; proxy_pass; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection 'upgrade'; proxy_set_header Host $host; proxy_cache_bypass $http_upgrade; } location /eg-en/blog { proxy_pass {{Instance-Ip}}; } } ``` – Markus Azer Jan 26 '19 at 10:22
  • You should edit the question to add formatted text - and my last comment related to the WordPress control panel. – Richard Smith Jan 26 '19 at 10:41
  • Sorry for late response, i accidentally changed WordPress Address (URL) and took me sometime to figure out that i can change it throw wp-cli well WordPress Address (URL) points to instance IP Site Address (URL) Points to {{website Url}}/blog – Markus Azer Jan 26 '19 at 11:57

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.