Hi Guys,
I'm having an issue with nginx rewrite for IP.Content here is my current conf file below can anyone spot anything wrong?
http://pastebin.com/zxWd1Jy3
Thanks,
Tythus
Printable View
Hi Guys,
I'm having an issue with nginx rewrite for IP.Content here is my current conf file below can anyone spot anything wrong?
http://pastebin.com/zxWd1Jy3
Thanks,
Tythus
Your config us:
rewrite ^ http://www.lordofthecraft.net$request_uri? permanent;
which says to rewrite the regex "^" to "http://www.lordofthecraft.net$request_uri?"
A tips is to use http://regexpal.com
Anyway, the problem is that "^" is an invalid regex. You probably want ".*"
You don't need two server { } blocks
It's ok I figured out my issue already it was getting confused with things ending in .html etc and trying to server static content rather than the php content the only other thing I need to do is talk to the centminmod guy