NGINX config multi site Image are not displaying on Sub domains

Maxim Dounin mdounin at
Mon Nov 29 15:10:55 MSK 2010


On Mon, Nov 29, 2010 at 09:56:52AM +0100, Alex Kolobok wrote:

> I don't know is the is anybody who can help me I need an expert advice
> or somebody who encountered this problem. Here is a problem can't figer
> out what is the problem with my set up.
> Problem@@@_______________________________________________________________
> Images on sub domains are not displaying properly the main domain images
> are working.
> I don't know if the is an options in wp I am not awere of or it is my
> setup
> ___________________________________________________________________________
> Below are my nginx config


> ## Images and static content is treated different
> location ~* ^.+.(jpg|jpeg|gif|css|png|js|ico|xml)$ {
> access_log off;
> expires 30d;
> root /var/www/mysite;
> }

You explicitly instructed nginx to look for images (and other
static files) under /var/www/mysite.  There is no surprise it does 
what you said to.

Maxim Dounin

More information about the nginx mailing list