<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Trouble with Subdomains in nginx</title>
<description>Hello,

i use nginx for a vbulletin forum with a domain, let's say mydomain.com. 
I want to add some other content on 2 subdomains, content1.mydomain.com and content2.mydomain.com.
So i have 3 serverblocks:

server {
server_name content1.mydomain.com;
[...]
}

server {
server_name content2.mydomain.com;
[...]
}

server {
server_name mydomain.com;
[...]
}

When i access a image on content2.mydomain.com nginx try to load the file from the root dir of content1.mydomain.com. 
But mydomain.com works, only content2.mydomain.com didn't work.

What's wrong here?</description><link>http://forum.nginx.org/read.php?11,220934,220934#msg-220934</link><lastBuildDate>Wed, 19 Jun 2013 14:11:05 -0400</lastBuildDate>
<generator>Phorum 5.2.16</generator>
<item>
<guid>http://forum.nginx.org/read.php?11,220934,220934#msg-220934</guid>
<title>Trouble with Subdomains in nginx</title><link>http://forum.nginx.org/read.php?11,220934,220934#msg-220934</link><description><![CDATA[Hello,<br /><br />i use nginx for a vbulletin forum with a domain, let's say mydomain.com.<br />I want to add some other content on 2 subdomains, content1.mydomain.com and content2.mydomain.com.<br />So i have 3 serverblocks:<br /><br />server {<br />server_name content1.mydomain.com;<br />[...]<br />}<br /><br />server {<br />server_name content2.mydomain.com;<br />[...]<br />}<br /><br />server {<br />server_name mydomain.com;<br />[...]<br />}<br /><br />When i access a image on content2.mydomain.com nginx try to load the file from the root dir of content1.mydomain.com.<br />But mydomain.com works, only content2.mydomain.com didn't work.<br /><br />What's wrong here?]]></description>
<dc:creator>Th3Dan</dc:creator>
<category>How to...</category><pubDate>Sun, 08 Jan 2012 12:05:54 -0500</pubDate></item>
</channel>
</rss>