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

2015-07-07 Thread ramsoft75
"Hello, Francis Daly asked you several times to check the access.log file (you should not find the fragment part in there). oscaretu and I told you browsers don't send the fragment part of an URL. The problem isn't from nginx nor the browser: it's a normal behavior. Best Regards" In deed there

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

2015-07-07 Thread ramsoft75
Hi there all and thank's for the help Dear oscaretu, the curl was tested with " doesn't help, because ! is a special character it needs a escaope after "\", so the correct curl command for the terminal is : $ curl -A iPad -i http://www.domain.com/#\!/pt/--item-view/en/3190/Wok Dear Francis Daly

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

2015-07-06 Thread ramsoft75
Hi I think the part where de parameters are clean is : 2015/07/06 15:32:21 [debug] 6500#0: *9 http script copy: "http://m.domain.com/"; 2015/07/06 15:32:21 [debug] 6500#0: *9 http script capture: "" 2015/07/06 15:32:21 [debug] 6500#0: *9 http script regex end 2015/07/06 15:32:21 [notice] 6500#0:

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

2015-07-06 Thread ramsoft75
The "^/$" came from : #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 ^/$ http://m.domain.com$request_uri; } Posted at Nginx Forum: http://forum.nginx.org/read.php?2,260033,260097#msg-2

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

2015-07-06 Thread ramsoft75
I 'am running Nginx with logging in debug mode and the report for "^/$" is : 2015/07/06 15:32:21 [debug] 6500#0: *9 accept: 193.137.170.139 fd:20 2015/07/06 15:32:21 [debug] 6500#0: *9 event timer add: 20: 6:1436196801837 2015/07/06 15:32:21 [debug] 6500#0: *9 reusable connection: 1 2015/07/06

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

2015-07-06 Thread ramsoft75
I entered in a url an url similar to the tested before : http://www.domain.com/#\!/pt/--item-view/en/3190/Wok-Vintage And the Nginx didn't recorded the access in the nginx access.log file Posted at Nginx Forum: http://forum.nginx.org/read.php?2,260033,260092#msg-260092

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

2015-07-06 Thread ramsoft75
Hi I tested in a iPad and Safari the request and the nginx log reported a 401 error : xxx.xxx.xxx.xxx - - [06/Jul/2015:13:42:24 +] "GET /pt/api_cp/user_counts/ HTTP/1.1" 401 27 "http://m.domain.com/"; "Mozilla/5.0 (iPad; CPU OS 8_3 like Mac OS X) AppleWebKit/600.1.4 (KHTML, like Gecko) Versio

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

2015-07-06 Thread ramsoft75
Good day There was a problem in testing in the terminal with the character "!", it should be with "\" after, like this : $ curl -A iPad -i http://www.domain.com/#\!/pt/--item-view/en/3190/Wok-Vintage And the result was : HTTP/1.1 301 Moved Permanently Server: nginx Date: Mon, 06 Jul 2015 08:50:

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

2015-07-05 Thread ramsoft75
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 ^ http://m.domain.com$request_uri; } I executed the command : $ curl -A iPad -i https://www.domain.com/#!/pt/--item

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

2015-07-04 Thread ramsoft75
Hi there thanks for the help there was an erro not "-bash: !/pt/--item/pt/32516/Farinha : event not found" but " -bash: "#!/pt/--item/pt/32516/Farinha : event not found Posted at Nginx Forum: http://forum.nginx.org/read.php?2,260033,260056#msg-260056 __

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

2015-07-04 Thread ramsoft75
Hi there thanks for the help i run the following : curl -A iPad -i http://www.domain.com/#!/pt/--item/pt/32516/Farinha and the result was : -bash: !/pt/--item/pt/32516/Farinha : event not found But this page exist's and is running in desktop in a pc Posted at Nginx Forum: http://forum.nginx.

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

2015-07-03 Thread ramsoft75
The problem is, the site is entered with www in url in a mobile device with parameters in the url, it is redirected from www.domain.com to m.domain.com but the parameters entered with www.domain.com/parameters when redirected to m.domain.com doesn't receive the parameters from thr url origin in www

Re: Problem with wildcard of domain in nginx and in https

2015-01-14 Thread ramsoft75
I made a ping into www.domain.com and into domain.com, the Ip's are not the same. Posted at Nginx Forum: http://forum.nginx.org/read.php?2,256099,256104#msg-256104 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: Problem with wildcard of domain in nginx and in https

2015-01-14 Thread ramsoft75
Isn't this ? > server { > listen 443 ssl spdy; > > server_name domain.com; > > ... > } With that configuration if a go https://domains.com it gives me a error "webpage not avaiable" Posted at Nginx Forum: http://forum.nginx.org/read.php?2,256099,256102#msg-256102 __

Re: Problem with wildcard of domain in nginx and in https

2015-01-14 Thread ramsoft75
The problem is https://domain.com is not accessible Posted at Nginx Forum: http://forum.nginx.org/read.php?2,256099,256100#msg-256100 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Problem with wildcard of domain in nginx and in https

2015-01-14 Thread ramsoft75
I have a domain.com and i can redirecto to other subdomains but not domain.com in https, my configuration is the following : server { listen 80; server_name www.domain.com; rewrite ^/(.*) https://www.domain.com/$1 permanent; } server { listen 80; server_name m.domain.com;