Hello, I`m trying to find out, which files are mostly accessed on nginx, i have found nginx-catap that adds an extended status module but there is no patch for the latest dev version of nginx which we use currently. http://catap.ru/patches/nginx/ngx_status-0.0.5.patch http://catap.ru/heap_all Thanks.by st1905 - Nginx Mailing List - English
Hi, Its if ( $http_user_agent = "BLABLA" ){ break; } Thanks for the reply.by st1905 - Nginx Mailing List - English
Just an update, I used a custom user-agent to disable redirect for the client, there is a plugin for firefox that allows to use custom user-agents so he selects it and redirection stops, a simple if statement in nginx config is applied for this purpose.by st1905 - Nginx Mailing List - English
Hello, The site has geoip redirection to subdomains using country codes, before we only needed to exclude a directory from redirection but now my client is asking me to exclude himself from it, how can I do this ? Please note that his ip is dynamic, thanks for any help.by st1905 - Nginx Mailing List - English
>strings /usr/local/lib/libGeoIP.so | grep GeoIP_region_name_by_code GeoIP_region_name_by_code After checking this i found two instances of geoip libraries installed on the system, so removed the old library and now nginx compiles, Thank you Igor.by st1905 - Nginx Mailing List - English
After upgrading to the latest C api from maxmind, following is happening src/os/unix/ngx_process.c:490: warning: `sys_errlist' is deprecated; use `strerror' or `strerror_r' instead src/os/unix/ngx_process.c:490: warning: `sys_nerr' is deprecated; use `strerror' or `strerror_r' instead objs/src/http/modules/ngx_http_geoip_module.o: In function `ngx_http_geoip_region_name_variable': src/httpby st1905 - Nginx Mailing List - English
Hello, When i try to compile geoip module with the latest development version of the nginx following warning/error occurs src/http/modules/ngx_http_geoip_module.c:117: error: ‘GeoIPRecord’ has no member named ‘continent_code’ cc1: warnings being treated as errors src/http/modules/ngx_http_geoip_module.c: In function ‘ngx_http_geoip_region_name_variable’: src/http/modules/ngxby st1905 - Nginx Mailing List - English
I voted for nginx, Confirmación correcta Acabas de confirmar tu voto para Nginx en la categoria Software que necesita más donaciones. Thanks.by st1905 - Nginx Mailing List - English
The very same issue is described here and solution was given by Maxim. More at here http://forum.nginx.org/read.php?2,150853,150853#msg-150853by st1905 - Nginx Mailing List - English
I solved this by adding following rewrite rule just above the if statements for the geoip redirection if ($request_uri ~* ^/admin) { break; } That solved the issue, now when someone from germany goes to site root they will still be redirected but if they go to admin section of the site, it wontby st1905 - Nginx Mailing List - English
Rainer Duffner Wrote: ------------------------------------------------------- > Am 23.11.2010 um 18:27 schrieb st1905: > > > > > Still someone with ip from germany cant access > the admin section, what > > i`m doing wrong here ? > > > > > And the IP is in the GeoIP-datablock marked as > being from Germany? > > Download the csv-veby st1905 - Nginx Mailing List - English
Tried location ~ ^/admin/.+\.php$ { fastcgi_pass 127.0.0.1:9000; root /var/www/vhosts/domain.com/httpdocs; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_index index.php; include fastcgi_params; break; } if ($mygeo = "1") { break; } if ($geoip_country_code = "DE") { rewrite ^(.*)$ http://de.domain.com permanent;by st1905 - Nginx Mailing List - English
Hello, I`m using the method described in here to redirect people with specific ips to locations http { keepalive_timeout 65; geoip_country /usr/local/etc/geo/GeoIP.dat ; # these are the GeoIP exceptions for your site geo $mygeo { default 0; bla/19 1; blu/16 1; } then, in the server block: location / { include proxy-lcb-lt.conf; if ($geoip_country_code = "US")by st1905 - Nginx Mailing List - English
Thank you for that information. Using ip now.by st1905 - Nginx Mailing List - English
Hello, Just to confirm, your configuration works fine, i have applied it today, still wondering if it would be better to use refferrer or ip ? Any suggestions ? Thank you.by st1905 - Nginx Mailing List - English
Hello, Thank you for the reply, i`m going to try using this on my configuration, i was thinking to exclude it by referrer which googlebot uses but maybe using ip would work too, in fact the ips would change.by st1905 - Nginx Mailing List - English
Hello, I want to redirect people to specific pages on a website according to their country but i dont want to redirect googlebot or other spiders, how can i do this with nginx ? I have done redirection with php earlier but havent been able to exclude googlebot. As i read from maxmind website, on apache its done like this GeoIPEnable On GeoIPDBFile /path/to/GeoIP.dat # Redirect onby st1905 - Nginx Mailing List - English
Igor Sysoev Wrote: ------------------------------------------------------- > On Thu, Sep 16, 2010 at 01:15:45PM -0400, st1905 > wrote: > > > How to match every php file under the admin > directory? Thanks. I dont > > want to match admin folder globally on the > domain. > > location ~ ^/admin/.+\.php$ > > > -- > Igor Sysoev > http:by st1905 - Nginx Mailing List - English
Ok, solved this, just in case anyone needs the solution, here it is. location /admin { auth_basic "Restricted"; auth_basic_user_file /path/to/.htpasswd; location ~ \.php$ { include fastcgi.conf; fastcgi_pass my-backend; } }by st1905 - Nginx Mailing List - English
How to match every php file under the admin directory? Thanks. I dont want to match admin folder globally on the domain.by st1905 - Nginx Mailing List - English
Hello, location ~ /admin/ Above matches every admin folder on the domain but i just want to match "/admin" on the url like http://domain.com/admin Tried this location = /admin/ But that did not work. I`m suing this location to password protect.by st1905 - Nginx Mailing List - English
bvidinli Wrote: ------------------------------------------------------- > ehcp (Easy Hosting Control Panel) is going to > support nginx as a > webserver, directly inside it. > it is being tested. > you may also test it using > http://ehcp.net/ehcp_yeni.tgz > file > download and start install.sh > it will install panel, nginx and all hosting > related files.by st1905 - Nginx Mailing List - English
Thanks a lot Igor. It works just like the way it should be but there are thousands of videos and i dont know how many of them have this issue.by st1905 - Nginx Mailing List - English
if ($http_host ~ "^www.domain.com"){ set $rule_0 1$rule_0; } if ($rule_0 = "1"){ rewrite /(.*) http://domain.com/$1 permanent; break; } if ($http_host ~ "^beta.domain.com"){ set $rule_1 1$rule_1; } if ($rule_1 = "1"){ rewrite /(.*) http://domain.com/$1 permanent; break; } if (!-f $request_filename){ set $rule_2 1$rule_2; } if (!-d $by st1905 - Nginx Mailing List - English
I solved this myself, forgot to put the solution here, the following removes /' and replaces it with nothing so urls work in all browsers. if ($uri ~ "^(.*)/'(.*)$"){ set $rule_0 1$rule_0; set $bref_1 $1; set $bref_2 $2; } if ($rule_0 = "1"){ rewrite /. /$bref_1$bref_2 permanent; break; } Maybe this will help someone too.by st1905 - Nginx Mailing List - English
on opera and firefox the urls are automatically corrected and workin with the rewrite rules like follows videos/1432/so-it%5C%27s-ok-karyn-garcia but on internet explorer its not being corrected.by st1905 - Nginx Mailing List - English
Hello, videos/1432/so-it/'s-ok-karyn-garcia above causes 404 if i manually edit the url to videos/1432/so-it's-ok-karyn-garcia it works Here is the rewrite rule rewrite ^/videos/([^/]*)/([^/]*)$ /play.php?vid=$1 last; Can you tell me how can i fix this ? Thanks.by st1905 - Nginx Mailing List - English
Tabi bu herkes icin ayni olmayabiliyor, ayrica nginx o kadar pratik bir yapiya sahip ki, genelde pek te yardima ihtiyac duyulmuyor.by st1905 - Türkçe Topluluğu
Nginx kullanabileceginiz en kolay web sunucusudur, cinli arkadaslarin panel yapma calismalari var ama bu plesk veya cpanel gibi olmaz henuz, saniyorum yakinda cpanel kendisi ekleyecektir bu opsiyonu. http://code.google.com/p/web-nginx/ Indirmek icin subversion`a ihtiyaciniz var. Kolay gelsin.by st1905 - Türkçe Topluluğu