Browsing articles tagged with "nginx - 94/102 - Admins Goodies"
Aug 10, 2011
tom

Visits from an ISP have 3x in two days, am I being DDoS?

My Google Analytics shows a very high increase of traffic from one ISP, being all unique visits coming from the same ISP and all of them using IE9/8/7/6. I’m getting 32% new (unique) visits, but now people stays 8min average, it was around 20min 3 days ago before this change. Pageviews remain the same. My site is growing in traffic, but I’m getting red flags because I’m getting all this new visitors from the same [...]

Continue Reading »
Aug 10, 2011
tom

nginx for local development

I want to use nginx for local development. This means I want to prevent other machines from being able to access my web server so it can only be accessed via localhost. Under the server settings in sites-enabled/default I changed my code to location / { # First attempt to serve request as file, then # as directory, then fall back to index.html allow 127.0.0.1; deny all; try_files $uri $uri/ /index.html; } Is there anything [...]

Continue Reading »
Aug 10, 2011
tom

Trying to solve “nginx too many files”

We recently started getting the following error on one of our nginx boxes: 2011/05/25 16:35:51 [alert] 3580#0: accept() failed (24: Too many open files) Checking /etc/security/limits.conf, we have this: * soft nofile 900000 * hard nofile 900000 but when we did cat /proc/{pid}/limits it showed the file limit being 1024. When we restarted nginx the issue was fixed and /proc/{pid}/limits showed 900000. I’m thinking this may have been caused because the machine was rebooted, and [...]

Continue Reading »
Aug 10, 2011
tom

Virtualmin change apache port

I’m trying to change apache port to 82 (to confugure nginx): I changed: NameVirtualHost 94.198.110.11:80 to NameVirtualHost 94.198.110.11:82 in apache2.conf Listen 94.198.110.11:80 to Listen 94.198.110.11:82 in ports.conf VirtualHost 94.198.110.11:80 to VirtualHost 94.198.110.11:82 in sites-available/default And changed manually ports in every virtualhost. But when I create new host, it creates with 80 default port, and in the prev. config file are added lines with port 80. How can I change the default port? You can change [...]

Continue Reading »
Aug 10, 2011
tom

should I run nginx for static content on port 81 or set it up as reverse proxy to apache?

should I run nginx for static content on port 81 or set it up as reverse proxy to apache? Which is a better idea and why? I’m currently simply running nginx on port 81. i was wondering if there are any benefits as running it on port 80 instead and proxy to apache that sits on 8080 for example? If you have clients in the corporate world than having a site that servers content on [...]

Continue Reading »
Aug 10, 2011
tom

Is it Ok not to have default virtual host in Apache or Nginx?

The title pretty much sums it up. Do I need to have a default vhost in Apache or Nginx? I typically set my default virtual host as a “go away” with a 403 forbidden response/message: <VirtualHost *> ServerName nohost ErrorDocument 403 “The website you requested was not found on this server” RewriteEngine on RewriteRule . – [F] </VirtualHost> Check more discussion of this question. Bookmark on Delicious Digg this post Recommend on Facebook share via [...]

Continue Reading »
Aug 10, 2011
tom

Is there a performance problem if I run apache on multiple ports for various domains?

I have two domains right now. Both run on Apache and are behind nginx (using proxy_pass). One site is django and another is php and both are running on different ports. I want to deploy more domains in similar fashion, however is running apache on multiple ports for different application a bad practice ? If yes/no, why ? No, I don’t see Apache listening on multiple ports a performance problem. I have seen single applications [...]

Continue Reading »
Aug 10, 2011
tom

Nginx as reverse proxy for Google App Engine application

I want to use nginx as a reverse proxy for Google App Engine application to support naked domain as described here. If I use this scheme, will all the traffic go through the server that hosts nginx or client will connect to App Engine directly? Can it be a bottleneck for performance and availability? Using that method, all your traffic would run through the NGINX server so that would be a bottleneck, and you’d have [...]

Continue Reading »
Aug 10, 2011
tom

Are there any drawbacks to using Nginx as the sole web server for a dynamic website (PHP, MongoDB)?

I am working on a new project that will be hosted with Amazon EC2. Speed of requests is of utmost importance, and the low memory footprint of Nginx is very compelling. I’ve always used Apache, but if significant advantages can be had with Nginx then I would like to switch to that. I see that a lot of people use Apache + Nginx, but are there any disadvantages as of 2011 to using Nginx with [...]

Continue Reading »
Aug 9, 2011
tom

Nginx and unicorn

I have 2 aplications, each one running on unicorn. I’d like to use nginx as a front end for each of those application. For each nginx / unicorn pair I would then use a dedicated unix socket. To do so, do I need to have to instance of nginx or can I use 2 virtual hosts ? You don’t need multiple nginx instances, you could specify multiple proxy_pass with different unix sockets or defined multiple [...]

Continue Reading »
Pages:«1...91929394959697...102»