0
votes
0answers
13 views

Would PHP5-FPM be faster with more cores?

I'm a bit new with nginx + php5-fpm. I read that with nginx there's an advantage to have multiple cores (CPU) with the use of worker_processes. Is php5-fpm also faster if it uses more cores? Reason: ...
0
votes
0answers
34 views

nginx service won't start after reboot + won't give output for service nginx status or start

A few weeks ago I configured an ec2 ubuntu server for my rails app. everything worked great. the database is on RDS and I use nginx and passenger for the rails app. anyway everything worked great ...
0
votes
0answers
30 views

The correct way to overwrite init script for Nginx

I have Amazon Linux on Amazon EC2 with installed Nginx. I want add some commands for Nginx init script for using like this: service nginx command1 service nginx command2 etc. What is the best way ...
1
vote
1answer
49 views

How can you investigate a daily traffic drain?

Running Amazon EC2 instance, t3.large tier. And observing interesting situation: Every night (UTC+1 midnight) the same NetworkOut jump occurs. What are my options to investigate it? The EC2 runs ...
0
votes
1answer
37 views

Nginx mutliple rewrite rules per location

I've got a working nginx rewrite for a location, but in the case of a specific request I want to rewrite to a different location. location /api { if (!-e $request_filename){ rewrite ...
0
votes
1answer
134 views

Cloud-front backed with Nginx (which proxies to S3) randomly missing already cached items?

I wish to serve images from a S3 bucket with Cloudfront as CDN frontend, for that I tried the following: What I wish to acheive (Attempt 2) -- (Misses cloudfront cache randomly) I have the ...
0
votes
2answers
82 views

Use one volume for multiple EC2 servers

I installed ubuntu server that will host a wordpress website. the technologies I am using are: nginx + php5-fpm as the webserver vernish as the cache system mysql database server (RDS). The issue ...
1
vote
0answers
70 views

nginx and php-fpm performance cpu bound

in peak hours our server is cpu bound. we are hitting 100% cpu. using php5-fpm and nginx on a large ec2 instance. to serve around 50 million requests per day. we are using this server to serve JSON ...
2
votes
3answers
216 views

Nginx welcome page returns

I'm running Nginx on an EC2 instance. I have a webpage installed in the default /usr/share/nginx/html dir. I've noticed that, if I make an AMI of that EC2 instance and a new EC2 instance using that ...
-2
votes
1answer
27 views

Amazon + NGINX + SSL + IE8 [closed]

How hosting multiple SSL sites on a server that has a single IP number and the WindowsXP + IE8 see the correctly certificate? Amazon EC2 allow to assign only one IP per server
0
votes
0answers
202 views

nginx is running . . . but it isn't — ubuntu EC2

I set up an EC2 instance using Ubuntu 13.10 64 bit. The instance has a security group with http 80 open to 0.0.0.0/0. I installed nginx, restarted the server, and confirmed that nginx was running: ...
0
votes
1answer
176 views

What exactly is an invalid HTTP_HOST header

I've implemented Django's relatively new allowed hosts setting, which is meant to prevent attackers from submitting requests with a fake HTTP Host header. Since adding that setting, I now get ...
0
votes
1answer
107 views

How can I find the bottle neck? [duplicate]

I have a EC2 m1.large Ubuntu 13.04 Instance runs PHP 5.5, PHP-FPM and NGINX. Cache is handled by Elastic Cache using Redis and the database connects to a separate m1.large MongoDB server. The content ...
0
votes
1answer
46 views

AWS route53 forwarding

Essentially, I need to know how to point one URL/folder to a web server and a different URL/folder to an EC2 app server. I'm trying to setup a SAAS with the following URL configuration. ...
0
votes
1answer
187 views

ELB can't proxy traffic to my EC2 instance

For some reason ELB isn't correctly forwarding requests to my instance on EC2. My setup is simply a micro instance with nginx/node, listening on ports 80 and 443. The instance gets the health checker ...
1
vote
3answers
264 views

ELB, nginx, and multiple HTTPS applications

Let's say I have 3 different applications that all do HTTPS. Not all of them are high traffic so I run all 3 on the same "pool" of 3 EC2 instances. domain1.com/domain2.com/domain3.com all have their ...
1
vote
1answer
93 views

nginx is no longer working on ec2 instance

i admittedly ran this: sudo update-rc.d nginx defaults which seemed to wipe out the setup of nginx. Nginx commands like sudo service nginx start, etc no longer return anything when executed. ...
0
votes
2answers
240 views

How to prevent update from conflicting repo?

On EC2 / Amazon Linux AMI (Centos based), I created /etc/yum.repos.d/nginx.repo: [nginx] name=nginx repo baseurl=http://nginx.org/packages/centos/6/$basearch/ gpgcheck=0 enabled=1 Then I ...
0
votes
3answers
128 views

Nginx not starting, no feedback

I am deploying a nginx/uwsgi based server on an EC2 instance, and when I go to start up nginx I do not get any feedback. /etc/init.d/nginx start returns nothing I can confirm that is offline, but ...
2
votes
1answer
398 views

How to automatically update nginx upstream server list when aws ec2 hostname changes or increases?

I want to setup autoscaling in AWS. I don't want to use Elastic Load Balancer. Autoscalling in Amazon creates EC2 instances seamlessly during demand spikes to maintain performance, and decreases ...
1
vote
1answer
483 views

PHP-FPM using 40% CPU for a Single Request

(I googled and searched this forum for hours, found some topics, but none of them worked for me) I'm using Wordpress with: Varnish + Nginx + PHP-FPM + APC + W3 Total Cache + PageSpeed. As I'm using ...
3
votes
1answer
593 views

Nginx Solution for AWS Amazon ELB Health Checks - return 200 without IF

I have the following code that is working on Nginx to keep the AWS ELB healthcheck happy. map $http_user_agent $ignore { default 0; "ELB-HealthChecker/1.0" 1; } server { location / { if ...
0
votes
1answer
324 views

Why does amazon ec2 have downtime after deploy when other identical servers do not?

This has puzzled me for the past few months...I'm admittedly new to server administration and I took a stab running a production rails app over at EC2. While I've learned a lot and feel pretty ...
0
votes
1answer
1k views

PHP FPM gives permission denied?

I read several entries on why PHP-FPM might give me permission denied but I can not solve it. The error logs read like: 2013/04/20 23:33:28 [crit] 15479#0: *6 open() "/var/lib/nginx/tmp/fastcgi ...
0
votes
2answers
198 views

What is the advantage of having ELB infront of your NGINX servers?

I've looked into a lot of back end setups on Amazon Web Services, especially that of Instagram's. On their Instgram Engineering Blog they mentioned how they have an Elastic Load Balancer in front of ...
-1
votes
1answer
1k views

{Solved} How to reduce number of TIME_WAIT processes? [closed]

$ netstat -an | awk '/tcp/ {print $6}' | sort | uniq -c 92 ESTABLISHED 1 FIN_WAIT2 13 LISTEN 7979 TIME_WAIT . $ grep processor /proc/cpuinfo | wc -l 4 . $ grep -r keep.*alive ...
1
vote
1answer
428 views

php-fpm or nginx capping out?

I'm using blitz.io to basically blast my site with traffic to see how my 'learning sysadmin' holds up under load. I realize this is as effective or relevant to real-world as a sledgehammer, but I ...
0
votes
1answer
225 views

nginx, php-fpm on diff server bad gateway (and security too)

This is somewhat of a multipart question. First and foremost, I have 502 bad gateway, but I'm sure that's just because one of these lines I have below is wrong. Second, I would love to know how I ...
0
votes
1answer
294 views

Nginx 504 Time out when zipping/unzipping and moving files

We're getting a 504 time out in Wordpress with a feature we have attached to "publish post" which takes an attacked zip file, unzips it, moves the unzipped files to s3, makes a new Zip and moves that ...
0
votes
1answer
290 views

Need NGINX Configured For Amazon EC2 / Wordpress - 502 bad gateway / 403 forbidden

I've successfully installed wordpress on an Amazon EC2 instance. It was working, however the apache service kept slowing down my machine and causing excess instances. Because of this, I have decided ...
0
votes
1answer
33 views

Web server (on 1 machine) serving files from another machine EC2

I am trying to setup the following configuration (or at least this is what I've got in my mind). EC2 instance running the web server (Nginx or Apache) EC2 instance where the actual site files are ...
1
vote
1answer
522 views

Amazon ELB and multi domain on Nginx server

I have an EC2 instance running Nginx with several domains. My config starts like this: server { listen 80; #disable_symlinks off; server_name _; #allow few domains #Adding 'www.' to ...
1
vote
1answer
383 views

HTTP Keep-Alive puzzle with EC2 Linux, Nginx and Chrome

Please, help to solve HTTP keep-alive problem. Basically, I have amazon-ami linux (v2012.09) on EC2 running nginx (v1.2.6). Chrome (v25.0.1364.99) accesses HTTP page normally, then after about 30 ...
0
votes
2answers
81 views

Nginx routing to another site

I've setup nginx on an Amazon EC2 instance I've purchased but I am stuck with the most basic question. How would I be able to route all the requests to another remote address. Assume that you have the ...
0
votes
1answer
127 views

Nginx + Upstream + scaling down ec2 instances

In the process of deploying multiple EC2 instances running a Rails app over Unicorn. I currently have a "front end" server running nginx with multiple "Unicorn" upstream providers. At night, I'd like ...
1
vote
1answer
115 views

Number of user served by nginx on ubuntu EC2 Instance

commerce web site running, on multiple ec2 instances. The web content is served using nginx and its a ruby on rails application. I am using a load balancer which routes the traffic to the multiple ec2 ...
0
votes
0answers
48 views

Testing web box behind a https load balance

I have a 3-tier system setup 2 Load balancers n amount of app servers database boxes / slave boxes. I have SSL setup on the load balancers. Normally when I test a specific server I change my host ...
0
votes
1answer
101 views

Cannot use subversion and access my website at the same time

I install svn follow this 5 minutes to set up a subversion server in the cloud everything fine until this command sudo service httpd restart it said some process already bind port 80 Stopping ...
0
votes
1answer
166 views

Deploying a static site on AWS EC2/nginx: what am I doing wrong?

I set up a micro instance (Ubuntu, 32 bit) and assigned an elastic IP (23.23.245.104) Public DNS: ec2-23-23-245-104.compute-1.amazonaws.com I successfully ssh'ed to the machine and installed nginx. ...
0
votes
0answers
228 views

Redirect to HTTPS from my Amazon Elastic Load Balancer

I have a rails app on 2 EC2 Instances running nginx behind an Amazon Elastic Load Balancer. I'd like to force HTTPS, which was working fine before I added in the Load Balancer. Now I can't quite ...
2
votes
5answers
1k views

Can not access EC2 server via IP address

I am having this problem accessing my elastic public IP for my EC2 instance in the web browser. Installed REDHAT 6.3 and installed nginx web server(up and running) and also made sure i enabled port 80 ...
-4
votes
1answer
175 views

Why does nginx cost money on AWS Marketplace [closed]

I'm looking at running nginx on a m1.small instance. I noticed in the marketplace you can deploy an ami but it costs $0.024 an hour. I though nginx was an open source, free web server. What is the ...
0
votes
0answers
487 views

nginx with django 502 bad gateway

I have a django installation on my EC2 server which sometimes is working fine. But some other times i keep getting those 502 Bad Gateway errors which don't seem to be a fault in the code because when ...
1
vote
0answers
114 views

nginx does not respect “root” directive

I'm running an EC2 instance with Ubuntu and trying to setup virtual servers for two domains without luck and cannot figure out why. My web documents are located in /var/www/<domain> and ...
0
votes
1answer
113 views

Can I use nginx to start EC2 instances on demand?

TL;DR - Is there a way to make nginx act as an elastic load balancer that will spin up EC2 instances on demand, allowing for the case when periods of no demand mean no instances will be running? ...
1
vote
6answers
1k views

How to know if my nginx is in good health?

I am running a nginx on EC2 (m1.small) for SSL termination. I am using 2 workers on Ubuntu, with latest nginx (stable), the network throughput is around 2Mbps and system load average is around 2 to ...
1
vote
1answer
250 views

Nginx + Wordpress permisions settings

I'm experimenting some troubles with a wordpress installation backed on nginx. The architecture is held in amazon and is the following: EC2 Nginx 1.2.4 + php-fpm Server EC2 NFS Server RDS mysql The ...
1
vote
1answer
420 views

Nginx: Bad Gateway 502 error

I am running Nginx with PHP5-FPM on Amazon EC2 on Ubuntu 12.04 64-bit. I get a bad gateway error whenever I got to my site. I know that it is a configuration issue but I am not sure what is badly ...
0
votes
1answer
708 views

How much RAM do I need to run a forum using Nginx, Gunicorn, Django?

I started an ec2 instance (micro) to test the amount of memory I have available to run a website but I was expecting having a bit more. So my question would be: How much RAM do I need to run a site ...
0
votes
1answer
147 views

Amazon ELB and use of address / server names across multiple servers

I am setting up Nginx servers behind the ELB. I set up so that api.app.com points to an ELB. I wonder which addresses I should use for remote connections, Nginx settings etc.. 1) For example, in ...