0
votes
0answers
12 views

Two identical VPS hosts with different ways of handling file names

I have CentOS 6.5 32 bit, 512 RAM, running Nginx, PHP-FPM, Mysql on two hosts. One for local dev, running inside a VirtualBox 4.3.12 and the other running online with digital ocean. Both of these ...
1
vote
0answers
20 views

periodic connection timeouts to nginx server

We have the following setup: One nginx server as a loadbalancer in front of four worker application servers. The nginx server get about 100 requests per second, sometimes more that that, active ...
0
votes
1answer
35 views

server using too much cpu with nginx and gzip enabled

I have magento website on dedicated server. I decided to use gzip to save ban-with for magento websites and wanted to load them faster. But now server is using %250 more cpu if I click on a category ...
1
vote
1answer
33 views

What are (if any) possible scenario whereby hacker can find multiple sites hosted in one VPS?

Let me clarify: Say that I have 10 sites hosted in one VPS host. And for some reason, one of these sites gets famous and a hacker wants to know where it is hosted, and how many other sites are hosted ...
1
vote
1answer
26 views

Setting up root directory of nginx in Fedora 19

So I had nginx set-up with the default site. I decided I wanted to change because my website is at /var/www/site/... so before I changed again, I went to 127.0.0.1 to see if everything worked. I did. ...
0
votes
1answer
45 views

Can't get virtual hosts (server blocks) on Nginx to work

I'm just started with Nginx am trying to use virtual hosts, but can't wrap my head around what's wrong with my config... Here are the sontents of the sites-enabled folder: ...
-3
votes
1answer
47 views

“No input file specified.” (I am stupid and deleted a user) [closed]

So I had a server (running several sites) hacked recently and a low level user account was spinning up lots of processes (sending spam) that were crashing the server repeatedly. Out of frustration, I ...
0
votes
0answers
10 views

Webserver pages won't load until second connection attempt

I have an Apache2 driven Wordpress site running on an Ubuntu server VM, it's worked well for years. I also have another Ubuntu server VM running an instance of NGINX, acting only as a reverse proxy ...
1
vote
0answers
115 views

How to provide external access to only the Git projects (clone/pull/push) of an internal GitLab deployment

We have set-up a GitLab server (GitLab 7.0 Community Edition). It is up and running and our colleagues can use it within the LAN (the IP address and Host are only visible from the LAN). Some of the ...
-1
votes
1answer
31 views

OpenVPN client breaks remote access to web server

I have an issue where whenever I use OpenVPN client to connect to the remote server to (obviously) set up a VPN tunnel, I can no longer see my nginx server. I can connect on the local network but it ...
0
votes
1answer
34 views

One Domain, One publish IP, Multiple servers

Apologies in advance for being a total newbie with all things infrastructure related. A little background: I'm developing a server app for an Android application. The app will communicate with the ...
1
vote
0answers
24 views

Turn on/off proxy pass in nginx if a particular header is set

For testing purposes (in particular I'm developing a performance analyzer for a website that currently runs in production) I need to have some endpoints (es: /performance) that should be processed by ...
1
vote
0answers
27 views

php5-fpm doesn't create sockets for pools

I'm going off of section 3.1 of http://www.howtoforge.com/php-fpm-nginx-security-in-shared-hosting-environments-debian-ubuntu . I have created a directory in /var/run which www-data:www-data has ...
1
vote
0answers
56 views

Nginx proxy pass not working sometimes

I have a proxy server (ubuntu) that can accessible via my global IP (not have domain). For Example 85.45.0.12:6021 and this reverse to local server. Local server (10.0.0.25) installed tomcat and ...
1
vote
2answers
205 views

tune up performance nginx php-fpm mysql

I am running a nginx+php-fpm+mysql on virtual server with 8 cores and 16G ram My aplication is a simple API provider server, which returns JSONs generated from mysql database on requests. Datasets are ...
0
votes
1answer
61 views

How do I change the root path in nginx

I have installed nginx on my Ubunut 12.04, I am not able to change the root directory for the nginx, This is the default nginx configuration file: server { listen 80 default_server; ...
0
votes
1answer
65 views

What is the size of an atomic write to disk on my system?

In the documentation for the access_log directive, the nginx documentation says The buffer size must not exceed the size of an atomic write to a disk file. How can I determine what this size is ...
1
vote
0answers
112 views

How Do I Configure Nginx To Communicate with SMTP Server?

I'm an application developer and have little knowledge on sysadmin / server configuration tasks. I have an nginx server communicating to a Flask web application through uWSGI on a VPS. I'm trying to ...
0
votes
0answers
28 views

NGINX cache mis-behaving causing the system to go into a frenzy

We're using CentOS/nginx fastcgi_cache to cache requests to PHP files on our server. This file gets accessed very often and also updates very often as such it has 1s cache. Usually when looking ...
0
votes
0answers
38 views

Can thousands of files in a directory seriously slow down access to unix socket file?

I try to find out why a site has juddering performance problems. It works well most of the time. And for short time a 2-minute delay occurs. I don't see any database problems. Memory consumed looks ...
1
vote
1answer
102 views

If I get an invalid public key error does that mean I have an incorrectly installed certificate

I have created an API (running on an nginx server, let me know if there are any details that you think are relevant) for a client and they received this error when trying to call my service: Notice: ...
0
votes
2answers
341 views

Nginx PHP-fpm permission

When i'm setting the user in nginx.conf to root root: user root root; then my website is working, but when i set it to nginx nginx i get error in the logs: connect() to ...
0
votes
0answers
70 views

Cannot compile nginx with 3rd-party module

I have a trouble trying to compile nginx with JavaScript module on Debian. This module requires SpiderMonkey to be installed. I've set up SpiderMonkey and it seems to work fine. I've also downloaded ...
0
votes
0answers
17 views

Server configuration regarding multiple tomcat instances [duplicate]

I am going to setup an website. I am expecting huge amount of traffic in future. I went through many articles for load balancing in tomcat. I wanted to ask how multiple tomcat clusters are good in ...
-1
votes
2answers
41 views

apt-get installation of nginx leaves files owned by root

This was originally posted on stackoverflow, but it was recommended that I post it here: http://stackoverflow.com/questions/23274818/apt-get-installation-of-nginx-leaves-files-owned-by-root/23346149 ...
0
votes
1answer
41 views

General webserver log and custom logs where to gather them

I am not trying to create an opinionated question here though it might sound like it. My problem is as follows. I have the normal apache2 access and error log on a bunch of servers. I also have ...
0
votes
1answer
129 views

Show real TCP/IP addresses behind Nginx environment

When i execute the command netstat -atun | awk '{print $5}' | cut -d: -f1 | sed -e '/^$/d' |sort | uniq -c | sort -n I see high number of connection assigned to server ip I want to see the real ...
0
votes
0answers
41 views

Rsyslog with Nginx virtual hosts

I have an Nginx server with several virtual hosts, each of them generating log files. I'm sending all these logs to a remote server but don't know how to create one log file per virtual on this ...
1
vote
0answers
40 views

LXC and proxying port 22 (ssh)

I have installed LXC on my Ubuntu 12.04 server and have created a couple of containers. I have only 1 external IP address, thus I am using nginx on my host machine to proxy HTTP requests from certain ...
1
vote
1answer
111 views

Low throughput on Debian + nginx/apache

On the same LAN/WAN I have a Windows server 2012 server running IIS 7.5 and a Debian (wheezy) server running Nginx 1.4.5. Both servers are connected to the same LAN/WAN. When I download a 10mb file ...
0
votes
1answer
54 views

Problems with nginx server load rediculous spikes

we are having a problem with the load of our server using nginx and not sure what to do about it. We are running ubuntu 12.04. Any ideas of what is going on and how to fix it? Below is a screenshot of ...
1
vote
1answer
714 views

getpwnam(“www”) failed in /etc/nginx/nginx.conf

I copied the nginx.conf sample onto my ubuntu 12.04 box (I don't know where to put the other conf files. I'm an nginx noob). When I try to start nginx I get the following error: ...
-2
votes
1answer
69 views

Nginx not able to run css and js

My nginx server is not able to run js and css.When I try to navigate manually to css/js it gets downloaded.Here is my vhost.conf file server { listen 80; server_name sample.domain.tld; ...
0
votes
1answer
119 views

Uwsgi configuration - No module called site

I am trying to get uwsgi working in combination with nginx for a flask application. This is UWSGI ini file: [uwsgi] socket = 127.0.0.1:8001 processes = 4 module = run:manager virtualenv = ...
0
votes
1answer
68 views

Installing nginx on debian - sites-enabled

I was under the impression that installing nginx on debian would create for me these two directories: /etc/nginx/sites-available/ /etc/nginx/sites-enabled/ Is it right that these are not created ...
0
votes
1answer
56 views

alias directive with nested location to catch php files - requests for php files giving 404

I have a directory/web app that is located outside of the web root directory of my site. Say the site is here: /var/www/site/htdocs/ And the external app is located here: /var/www/apps/coolapp/ ...
0
votes
2answers
152 views

How to make Nginx virtual host work? (page not found) [closed]

Running Ubuntu 13.10 in VirtualBox. I've put my website in this folder: http://i.stack.imgur.com/YYhcJ.jpg And created the log folder on /srv/www/streamsy.com/logs/. I've done these steps: sudo ...
0
votes
1answer
98 views

convert lighttpd to nginx rewrite rules

I'm trying hard to make my code work on nginx. This configuration works with lighttpd but I want migrate it to nginx. Rewrite rules on lighttd : url.rewrite-once = ( "^/(ui)/(.*)$" => ...
0
votes
1answer
119 views

Nginx dropping events with connection refused after accepting few connection

I have setup with nginx as loadbalancer and python application running on nodes behind loadbalancers. We collect events from one of the busy mobile sites, it sends a event connecting to our api ...
0
votes
0answers
130 views

Chroot master process Nginx 1.2.1

I want to install nginx not current stable version but in one currently deposits, and chroot the process. I followed some tutorials including: Securing Debian Manual Appendix H - Chroot environment ...
1
vote
3answers
101 views

nginx - linux permissions interesting issue

I'd like to get some answers or suggestions to my problem. So I'm getting a simple error: 2014/02/16 12:01:43 [error] 7384#0: *1 FastCGI sent in stderr: "Primary script unknown" while reading ...
-1
votes
1answer
74 views

Will rm delete files currently being accessed by web-client?

My web-service running on nginx and php deliver's files using X-Accel-Redirect header to the client, if I use rm /my/folder/*.* how will it handle files currently being accessed/downloaded by clients? ...
0
votes
2answers
72 views

Setting UWSGI to run a module in a venv

I am having a hard time trying to run a module from UWSGI. This is part of my deployment code: # ENVIRONMENT /usr/bin/pip install virtualenv mkdir -p /srv/www/test /usr/local/bin/virtualenv ...
1
vote
1answer
783 views

Server Performance (HAProxy, Nginx, SSL)

I've been struggling recently with try to identify where the performance on our environment is bottlenecking. Environment (each server is Linux VM, 8 Cores, 32 GB RAM): Load Balance: 50 Web Servers ...
3
votes
2answers
56 views

nginx redirect /2013/04/test.html to /test - not working

I've been going mental over this. How can I redirect a certain url like /2013/04/test.html to /test in nginx? I have tried this: but doesn't work: server { location /2013/05/test.html { ...
3
votes
2answers
427 views

php5-fpm maxes out all cores (nginx+php5fpm+wordpress)

We have a 16 gig linode running with 8 cpu cores and I'm trying to debug an issue that when I try a load test that the server starts to freak out around 250 requests a second on a pretty basic ...
0
votes
3answers
175 views

Reduce system load when using image processing via php-fpm/nginx

We have a PHP image api written in Code Igniter that's based on imagemagic. We have the api behind nginx/php-fpm. We know the Imagemagic part is heavy, but we try to make the overal throughput higher ...
1
vote
1answer
73 views

Nginx Uploading

I have been reading this link: http://blog.martinfjordvald.com/2010/08/file-uploading-with-php-and-nginx/ (a blog whose posts are repeatedly linked from the official Nginx site) which says: Each ...
2
votes
3answers
434 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 ...
1
vote
1answer
319 views

Nginx cannot access upstream .sock file and public folder

Given: fresh Archlinux VPS box on DigitalOcean. I created a user, 'app', and there's a file, /home/app/webapp.sock created by the binary started by systemd: [Unit] Description=Web application server ...