Nginx doesn't redirect www no m in Safari, iPhone, iPad

ramsoft75 nginx-forum at
Sun Jul 5 19:31:22 UTC 2015

Hi there

I changed to 

#to detect if the device with www entered in domain is mobile
if ($http_user_agent ~* '(iPhone|iPod|iPad|Android|BlackBerry|webOS|Windows
Phone)') {
rewrite ^$request_uri;

I executed the command :

$ curl -A iPad -i!/pt/--item-view/pt/32081/Mix-J

And the result was :

-bash: !/pt/--item-view/pt/32081/Mix-J: event not found

This only append's with Safari, there's no problem with Chrome (Desktop,
Mobile) or Internet Explorer in Pc, could this be a browser problem and not
an Nginx configuration problem ?


Posted at Nginx Forum:,260033,260064#msg-260064

More information about the nginx mailing list