nginx subdomain rewrite
Posted
by ivan73
on Stack Overflow
See other posts from Stack Overflow
or by ivan73
Published on 2010-03-23T09:27:52Z
Indexed on
2010/03/23
10:23 UTC
Read the original article
Hit count: 228
nginx
I need a nginx rewrite rule to rewrite from:
http://some-keyword.example.com to www. example.com/keyword.php?keyword=$some-keyword
while domain without www in front still rewrites to www.example.com and 'www' isn't taken as a keyword.
Please could you help me to solve this problem, how to write these two rules?
© Stack Overflow or respective owner