> if ($http_user_agent ~* "Linux;Android 4.2.2") { > return 403; > } Looks correct, but maybe nginx does not like the ";" in the provided string? To be true, I never used such an rule. But anyhow this isn't the perfect solution: You're just blocking Android with version 4.2.2 with that. When an user has a phone with just Android 4 the if won't work. Just try thby Patschi - Nginx Mailing List - English
Hey community, is it possible to process a php file directly in a socket without nginx? Thanks for any ideas and help! Greets, Patschiby Patschi - How to...
As I know the upload limit is setted by PHP itself. Take a look in your php.ini.by Patschi - How to...
Hi community, I'm trying to make my life with a nginx rule easier, but I don't know how to solve it. My goal is to get the php5-fpm status page for different sockets. For example with "status_example.com?text" Current rule: location ~ ^/fpm-status$ { fastcgi_pass unix:/etc/php5/fpm/sockets/example.com.socket; fastcgi_param SCRIPT_FILENAME $fastcgi_script_name; include faby Patschi - How to...
I'm also interested, how it is possible. But I think, that it's possible with PHP.by Patschi - How to...
I tested it now and it works perfectly. Thank you very much!by Patschi - How to...
Thank you very much. I'll try it when I am at home. What do you exactly mean with 2)? Greets, Patschiby Patschi - How to...
Hi nginx-Fans, I have a little problem with my rewrite-lines with nginx. I tried about 1 hour to fix it, but it still won't work. I currently have this lines: rewrite ^/encode?(.*)(&[1-9]+)$ /encode.php?q=$1&s=$2 last; rewrite ^/decode?(.*)$ /decode.php?q=$1 last; Encode example: http://LINK/encode?HERE_GOES_THE_DATA_MAYBE_A_LINK&5 Decode example: http://LINK/decby Patschi - How to...