Nginx rewrite rule for favicon.ico files
Igor Sysoev
igor at sysoev.ru
Fri Aug 31 12:29:22 UTC 2012
On Aug 31, 2012, at 15:44 , nexon wrote:
>> Anything except favicons in this servers is the same ?
>
> Please explain your question.
> If I understand you correctly, you are asking is every subdomain have their
> own page, than yes.
> The trick is that if subdomain have it's own favicon than it needs to be
> served with it, if not, than to be served with main favicon.ico...
The question is why do you try to push everything inside one server
instead of separating processing in several servers:
server {
server_name sub1.domain.com;
...
}
server {
server_name sub2.domain.com;
...
}
server {
server_name sub3.domain.com;
...
}
--
Igor Sysoev
More information about the nginx
mailing list