Hi All, We'd like to redirect all requests to a single PHP file. The configuration below is what we have but I'm concerned that it would cause an "infinite" loop and possibly other problems. We'd like to redirect ANY request to api.php regardless if the file exists or not. Even a request to an existing static file should rewrite to the "api.php" file. Is this the correby iberkner - Nginx Mailing List - English
Thanks for putting this out, really helpful. Using this configuration, when someone requests a non-existent PHP file they are redirected to the 404 page correctly, but the 404 error is not being logged in the error log file. I suspect it has something to do with: try_files $fastcgi_script_name =404 I would think that we'd want PHP files that are not found to show up in the error log, isby iberkner - How to...
How would you go about determining whether or not the benefits are there? What metrics or quantitative analysis can you do to determine whether or not to use it? ------Original Message------ From: Maxim Dounin Sender: nginx-bounces@nginx.org To: nginx@nginx.org ReplyTo: nginx@nginx.org Subject: Re: Confirmation of AIO Sent: Oct 30, 2011 8:40 PM Hello! On Sun, Oct 30, 2011 at 02:28:30PM +0000,by iberkner - Nginx Mailing List - English
I read that you don't get the file cache, so under what specific circumstances in linux would it be beneficial to use aio (if any)? ------Original Message------ From: Andy Sender: nginx-bounces@nginx.org To: nginx@nginx.org ReplyTo: nginx@nginx.org Subject: Re: Confirmation of AIO Sent: Oct 29, 2011 11:42 PM I don't think AIO works in Linux unless you're using O_DIRECT. But with O_DIRECT you dby iberkner - Nginx Mailing List - English
Thanks Igor. Is epoll considered the best polling method if available? ------Original Message------ From: Igor Sysoev Sender: nginx-bounces@nginx.org To: nginx@nginx.org ReplyTo: nginx@nginx.org Subject: Re: Confirm event model Sent: Oct 25, 2011 5:58 AM On Mon, Oct 24, 2011 at 03:27:32PM -0400, Ilan Berkner wrote: > Is there a way to confirm / see which event model Nginx is using? > >by iberkner - Nginx Mailing List - English
CentOS ------Original Message------ From: Sergey Budnevitch Sender: nginx-bounces@nginx.org To: nginx@nginx.org ReplyTo: nginx@nginx.org Subject: Re: Confirmation of AIO Sent: Oct 24, 2011 8:30 AM On 24.10.2011, at 1:48, Ilan Berkner wrote: > Hi All, > > I'm trying to understand the advantages of AIO and how using it with Nginx can improve performance. > > I've compiled Nginxby iberkner - Nginx Mailing List - English
We've been running Nginx for sometime powering a fairly high traffic website. The single box, dual CPU (dual core) has been serving us well but its time to upgrade. I've got a new system configured, quad CPU (quad core) = 16 cores (plenty of RAM) and CentOS. My understanding is that even though there are 16 cores, more than 5 Nginx instances will not greatly improve performance. I decided toby iberkner - Nginx Mailing List - English
What settings / parameters can be tweaked to increase the amount of buffers available as to not go to a temporary file? We are seeing many of these: 2011/10/21 14:01:24 24547#0: *2408454 an upstream response is buffered to a temporary file /var/lib/nginx/fastcgi/5/69/0000017695 while reading upstream, client: 1.1.1.1, server: www.someserver.com, request: "GET /edit.html?id=6816841 HTTPby iberkner - Nginx Mailing List - English
Currently we have a single Nginx web sever connecting to a pool of PHP app servers. The response from the application layer (PHP / DB) is excellent, but our site load times are not great. We've run some analytical tools and the network / web server response time is where a significant bottleneck exists. In working with our managed hosting company on this issue, we ran the following shell commby iberkner - Nginx Mailing List - English
Look into the slow query log of mysql. On Tue, Mar 29, 2011 at 1:04 PM, Arvind Jayaprakash <work@anomalizer.net>wrote: > On Mar 29, Alexander Economou wrote: > >I am not really sure if this is the right place to ask something like > >that but seeing all those available mods doing almost everything, here > >it goes. > > > >Is there any way (php-cgi mod?) thaby iberkner - Nginx Mailing List - English
The location snippet below works except the expiration header is not being set. The request is made using this kind of URL: /assets/abcdef/js/my.js If the JS file is not found in memcached, it gets redirected to static.php which loads the static file into memory. Do we need to include the headers in the file itself as its being loaded from memcached? location ~ /assets/(+)(/.+) {by iberkner - Nginx Mailing List - English
location /assets/ { if ($uri ~ "^/assets/(+)(/.+)") { #$1 is hash, $2 is uri set $memcached_key "$1_$2"; memcached_pass localhost:11211; #fallback if not in memcached error_page 404 =200 /libraries/domain/asset_filter/client/static.php?hash=$1&uri=$2; } } This works but is there a better way? Sent on the Sprint® Now Network from my BlackBerry® ___________by iberkner - Nginx Mailing List - English
Hi, Trying to do something like this: server { listen... server_name... root... location / { satisfy any; allow 1.2.3.4; deny all; auth_basic "closed site"; auth_basic_user_file conf/userFile; index index.php; error_page 404 = @processphp; error_page 403 = @redirect_to_other_www; } } If I do not include the "auth_basic" elements and I'm accessinby iberkner - Nginx Mailing List - English
Hi All, I have 2 sites configured in my Nginx configuration (i.e. two server blocks). The sites each point to a different root directory but run through the same php-fpm process via a fastcgi_pass. PHP script errrors are reporting via the nginx error log, they are also reporting via the php error log file (configured in php.ini) on site1. PHP errors on site2 are not reporting via the php errorby iberkner - Nginx Mailing List - English
Thanks, why wouldn't you do a location rewrite? What's the advantage of using the sub / subs module? On Sat, Jan 8, 2011 at 2:36 PM, Ryan Malayter <malayter@gmail.com> wrote: > On Sat, Jan 8, 2011 at 8:52 AM, Ilan Berkner <iberkner@gmail.com> wrote: > > > > Thanks for the details, once I realized the difference, going directly to > the CDN is the whole point. > &by iberkner - Nginx Mailing List - English
Thanks for the details, once I realized the difference, going directly to the CDN is the whole point. Rackspace has an interesting product which combines storage + CDN so for us that kind solution may work well, but we're still exploring. Thanks On Sat, Jan 8, 2011 at 9:11 AM, Nicholas Tang <nicholas.tang@livestream.com>wrote: > Sorry, someone asked me for more details off list; I wasby iberkner - Nginx Mailing List - English
That's a valid point, thanks! On Fri, Jan 7, 2011 at 9:11 PM, Nicholas Tang <nicholas.tang@livestream.com>wrote: > The 2nd option defeats most of the purpose of a CDN. > > Nicholas > > *Nicholas Tang**:* > VP, Dev Ops > > nicholas.tang@livestream.com > | > t: +1 (646) 495 9707 > | > m: +1 (347) 410 6066 > | > 111 8th Avenue, Floor 15, New York, NYby iberkner - Nginx Mailing List - English
At this time we're delivering static content, in particular, audio files ~5K in size directly through our server, for a number of reasons, we're looking at moving delivery of these files to a remote storage / CDN facility. Question re. URL requests for these files. Currently, these file are served through a request like this: http://www.ourdomain.com/sounds/a/alpha.mp3. If we switched to a remoby iberkner - Nginx Mailing List - English
This works for me: http { include /etc/nginx/mime.types; default_type application/octet-stream; sendfile on; tcp_nopush on; client_max_body_size 6m; gzip on; gzip_min_length 0; gzip_comp_level 6; gzip_types text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript; log_format main '$remote_addrby iberkner - Nginx Mailing List - English
that worked, thanks On Wed, Dec 29, 2010 at 12:15 PM, António P. P. Almeida <appa@perusio.net>wrote: > On 29 Dez 2010 17h04 WET, iberkner@gmail.com wrote: > > > Thanks, but no, I'm not confusing location with host name. > > > > I'm trying to redirect any requests on our domain as follows: > > > > > https://www.ourdomain.com/youtube/v/mydjFYoD4WS&by iberkner - Nginx Mailing List - English
Thanks, but no, I'm not confusing location with host name. I'm trying to redirect any requests on our domain as follows: https://www.ourdomain.com/youtube/v/mydjFYoD4WS&hl=en_US&fs=1&rel=0&autoplay=1 to: http://www.youtube.com/v/mydjFYoD4WS&hl=en_US&fs=1&rel=0&autoplay=1 This is to solve a SSL warning issue. We're already doing it on another site using the .htby iberkner - Nginx Mailing List - English
Looking to do something like this: RewriteRule ^youtube/(.*)$ http://www.youtube.com/$1 This the configuration I'm thinking of? location /youtube/ { rewrite ^(.*)$ http://www.youtube.com$1 } _______________________________________________ nginx mailing list nginx@nginx.org http://nginx.org/mailman/listinfo/nginxby iberkner - Nginx Mailing List - English
What's a good metric that I can look at to see whether or not our Nginx server is performing optimally? I'm attaching an image showing stats for the past week but I'm not clear on whether or not they would be considered "good", "ok", "great" or need a lot of improvement? Overall we're happy with our performance but some users continue to complain of page loading timby iberkner - Nginx Mailing List - English
oops, forgot attachment ---------- Forwarded message ---------- From: Ilan Berkner <iberkner@gmail.com> Date: Wed, Dec 15, 2010 at 12:15 PM Subject: server performance metrics To: nginx@nginx.org What's a good metric that I can look at to see whether or not our Nginx server is performing optimally? I'm attaching an image showing stats for the past week but I'm not clear on whether or notby iberkner - Nginx Mailing List - English
Hi All, Currently we have a single web server (nginx) with multiple php application servers (php-fpm) and the load is being handled well. The raid controller failed last week on the web server and we were down for a few hours. Adding a hardware or software based load balancer in front of the web server and using additional web servers, although still represents a single point of failure, will fby iberkner - Nginx Mailing List - English
I'm trying to understand proxy caching, specifically for our php scripts. How? what? when? Can anyone give me some basics? What about php scripts which serve dynamic data? Thanks _______________________________________________ nginx mailing list nginx@nginx.org http://nginx.org/mailman/listinfo/nginxby iberkner - Nginx Mailing List - English
Could someone give me some basic guidance on using the proxy cache features of Nginx? I'm trying to understand the benefits and pitfalls, especially when dynamic data changes? Thanks _______________________________________________ nginx mailing list nginx@nginx.org http://nginx.org/mailman/listinfo/nginxby iberkner - Nginx Mailing List - English
You're issue is probably not with php-fpm. Without knowing more about your architecture, these are key points you should look at: 1. What is your PHP code doing? What is it waiting for? Tools: xdebug ( http://www.xdebug.org/) and you could even try tracking it via the php-fpm slow log configuration option: - request_slowlog_timeout - The timeout (in seconds) for serving of single requestby iberkner - Nginx Mailing List - English
We have a rule set up to deny access by ip addresses to a sub domain. The error log correctly shows "... access forbidden by rule ..." whenever someone tries to access to sub domain. Is there a way to turn this particular error log message off? Thanks _______________________________________________ nginx mailing list nginx@nginx.org http://nginx.org/mailman/listinfo/nginxby iberkner - Nginx Mailing List - English
How busy is your site? Have you had a recent spike in traffic? I would suggest looking at the response times from mysql. In particular, turn on the slow query log and set the long query time to 1 second or even less to see what comes up (you need at least mysql 5.1 to set it to non-integer values). You can use a tool like "mk-query-digest" from maatkit to summarize the slow log and gby iberkner - Nginx Mailing List - English