Azure File Share mounted to wordpress multisite wp-content uploads and blogs.dir folders mapped domains not loading images

Nerd Intel 1 Reputation point
2021-01-12T18:17:03.653+00:00

I am getting an error 520 on my images from sub-sites that domain mapped in wordpress multisite with multi-networks. I am running azure file share with an azure vm that I plan to expand to more vm's. The File share is mounted to the wp-content blogs.dir and uploads directories. If I move the images off the file share to the server everything works fine, but if I remount the file share then the images and content stored on the file share is inaccessible to the sub-sites when being accessed by a mapped domain, they are blocked from loading. This leads me to believe its a cross domain issue with Azure File Share, or an issue with the file share handling the mod rewrite, but that is all I have so far. I can't figure out how to resolve.

My goal is to setup a scalable server hosting wordpress that I can connect other servers to for load balancing. So the file share would grant site content no matter the server the user connects to.

The main domain works fine (originaldomain.com) as well the original wordpress domains unmapped (i.e. networkname.originaldomain.com/subsite/), if I access the subsites through their original domains the images load and there are no errors. This only happens with a mapped domain (newdomain.com) and when the blogs.dir (running a multi-network) is mounted to the fileshare.

Azure Files
Azure Files
An Azure service that offers file shares in the cloud.
1,420 questions
Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
9,013 questions
Azure Storage
Azure Storage
Globally unique resources that provide access to data management services and serve as the parent namespace for the services.
3,529 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Oscar Maqueda 611 Reputation points Microsoft Employee
    2021-01-12T18:53:51.34+00:00

    Hi there, are you using the Azure plugin for storage in Wordpress ?? Best regards

    1 person found this answer helpful.
    0 comments No comments

  2. Aaron Morales Cordoba 6 Reputation points Microsoft Employee
    2021-01-29T05:01:11.027+00:00
    1 person found this answer helpful.
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.