The judge in this case determined that the place of publication (where the cause of action for defamation is created) is the location where the computer servers storing the defamatory articles are located. In this case, it is the location for the Washington Post servers (Virginia). This allowed Johnny Depp to bring a defamation suit in Virginia.
Interested readers can starting reading at page 8 of the opinion.