-1
votes
2answers
23 views

URL Shortener & Site Redirection on same domain

i have one domain(http://sdm.fm), And I would like it to work as a redirect to http://somdomato.com. But at the same time I would like it to work as a URL shortener. Using phURL. Like: ...
0
votes
1answer
27 views

rewrite rule on location in nginx

When I write the location in, it works, when I use the same location as a rewrite rule, it doesnt!!! I dont understand the logic. Can someone please explain? location /v3/ { alias ...
1
vote
1answer
38 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
0answers
39 views

Server configuration for deploying node.js with Nginx

I was experimenting with Node.js recently and would like to make use of the concurrency feature. I am using Nginx for proxy and load balancing, and MongoDB for database. There are a few questions i ...
1
vote
1answer
58 views

Nginx: it takes too long to establish a ssl connection

I have a nginx set up with ssl certifivate. Recently I noticed, that establishing connection to that server sometimes takes way too long (8+ seconds). In chrome developer tools I can see, that all of ...
0
votes
0answers
17 views

Creating a virtualenv debian- What is my python path?

I am new to the world of python and virtualenv's and I am trying to setup UWSGI. It asks me to specify the path of my virtualenv and my python path. Although knowing the path of my virtualenv is ...
0
votes
0answers
19 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
41 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 ...
1
vote
0answers
36 views

nginx-extras ok for production server?

I need the upload progress extension on my production server running Nginx, the only problem is that to do that I must actually recompile the whole of Nginx. This means uninstalling the repo Nginx, ...
0
votes
0answers
43 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 ...
0
votes
0answers
35 views

php.ini changes doesn't apply in virtualmin nginx

I can't make changes to php.ini in virtualmin-nginx for mysite.com. phpinfo() says: Loaded Configuration File /home/mysite/etc/php5/php.ini So, I edited the file /home/mysite/etc/php5/php.ini ...
-1
votes
1answer
47 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
1answer
31 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 ...
0
votes
2answers
29 views

nginx displays wrong document roots (Virtualmin)

I recently set up Virtualmin on a clean Debian7-32bit VPS. I decided to go with nginx instead of Apache. Virtualmin sets up separate config files for each "virtual host", which I guess is fine. I ...
-1
votes
1answer
32 views

HTTP 301 moved for all nginx URL to a single HTTPS

Below is a config file that I am using with Nginx to redirect all WWW and non-WWW to the https:/domain.com URL server { listen 80 443; server_name domain.com www.domain.com; ...
0
votes
2answers
93 views

/etc/init.d/nginx not executable

I searched on the internet for a while now and I don't find a solution so I am asking here: My question is, why is this file (/etc/init.d/nginx) not executeable? I was following the tutorial of Alex ...
2
votes
1answer
132 views

nginx doesn't work after reinstall?

I really have no clue at all where to start looking for an answer to this: I followed the instructions here to set up nginx and passenger for debian. (sudo apt-get nginx-extras passenger) Everything ...
0
votes
1answer
293 views

Debian 7 NGINX OwnCloud - move data-folder to NFS-mount permission problems?

Case: Debian 7.1.0 server running nginx 1.2.1, hosting OwnCloud 5.0.13 OwnCloud default installed in /var/www/owncloud Files uploaded to owncloud reside in /var/www/owncloud/data However, diskspace is ...
0
votes
1answer
60 views

Adding modules to nginx-light (Debian / dotdeb)

http://packages.debian.org/testing/nginx-light http://packages.debian.org/testing/nginx-full Can I add modules to nginx-light installation that would only be available in nginx-full without ...
0
votes
0answers
60 views

Nginx 1.4 on Debian 7 via apt-get

I cannot for the life of my figure out how to install nginx 1.4 via apt-get on a Debian 7 linode. I added the following to /etc/apt/source.list: deb http://nginx.org/packages/debian/ squeeze nginx ...
1
vote
0answers
59 views

nginx - php5-fpm - woocommerce => settings dont save - only after restart of php5-fpm

We are unable to save settings in woocommerce when php5-fpm is running for more then 12 hours. Sometimes the changes are reflected in the DB but then don't show in the backend, other times the ...
1
vote
1answer
217 views

How to add nginx file upload module to Debian Squeeze?

I need to use nginx upload module in my Debian Squeeze server. I already have installed nginx and nginx-extras. the nginx version is 1.4.2. From the package description of nginx-extras, it seems that ...
0
votes
2answers
118 views

nginx or kernel queueing traffic

We have a setup that looks like this: nginx->haproxy->app servers We are terminating SSL with nginx and it sits in front of everything. During our peak load times, we are experiencing about a 2x ...
0
votes
1answer
338 views

nginx on Ubuntu: Permission denied

I am new to system administration. After installing nginx via puppet on Ubuntu I get the following output: [alert] could not open error log file: open() "/var/log/nginx/error.log" failed (13: ...
2
votes
1answer
759 views

Nginx startup fails ssl no such file or directory

Here is the error I'm getting: Reloading nginx configuration: nginx: [emerg] SSL_CTX_use_certificate_chain_file("/path/to/cert.pem") failed (SSL: error:02001002:system library:fopen:No such ...
0
votes
2answers
604 views

Nginx and openSSL conf to use newest TLS protocols

Since few weeks, my webserver, Niginx, had a problem with TLS protocols version 1.1 & 1.2 : When an user try to connect to my website, web browser and Nginx chose only TLS 1.0 for the conection. ...
1
vote
1answer
383 views

Unable to load configuration from uwsgi

Since yesterday I have been wrestling with this problem: unable to load configuration from uwsgi When I google it, nothing comes up. I am trying to run UWSGI under nginx with a very simple uwsgi.ini ...
0
votes
1answer
45 views

How can I force a certain page to be non-SSL on nginx?

I'm looking to have a certain page, example.php, redirect to the non-SSL version if it is accessed via SSL. What type of rewrites should I be looking at?
1
vote
1answer
169 views

NGINX One Domain - Several webservers on internal IP

I have a case I am not sure how to manage and would like some advice. Current: One domain-name - one external ip. One already working Debian Server with NGINX for hosting webpages. So, as it is ...
0
votes
0answers
195 views

nginx 502 Bad Gateway on every external site

I just installed nginx and followed the guides on the official site, to set it up with php5-fpm, but it just won't work. Not even the default site, without php is working outside of my server. Tried ...
0
votes
1answer
64 views

Debian upgrade Nginx from source

I've installed Nginx 1.2.1 from apt-get install in my Debian 7 instance (Google Compute Engine). In order to install Pagespeed mod for Nginx, I will need to compile Nginx from the source code to add ...
1
vote
1answer
624 views

GitLab & nginx: 502

I've installed GitLab, following the given official instruction, but I'm getting 502 error when trying to use it. Nginx log entry: *30 upstream prematurely closed connection while reading response ...
0
votes
0answers
168 views

Nginx, Django, Gunicorn work slow in specific situations

My problem is that when I log on to my application via facebook, or send an email it takes a very long time ( about 1-2 minutes ). In other situations site is reacting almost instantly. My application ...
0
votes
0answers
56 views

Nginx/fastcgi using old php.ini

I'm having problems with debian + nginx + fastcgi + php setup. For some reason when I update my php.ini (/etc/php5/cgi/php.ini) the settings don't get updated. I checked phpinfo() and it says it's ...
-1
votes
2answers
147 views

Why is Nginx + Passenger on Debian 7.0 1.6 times slower then on Debian 6.0? [closed]

I have 2 similar VPS (1 core, 512 MB RAM, SSD hard drive). I've installed Debain 7.0 x64 to one of them and Debian 6.0 x64 to another one. Both installations have 512 MB swap file. I've installed to ...
0
votes
2answers
42 views

nginx server block not being picked up

I have nginx running on Raspbian and I'm trying to add another server block alongside the default one. I have two files default and blog.mydomain.com where mydomain is obviously my own domain. In the ...
1
vote
1answer
161 views

How do I lock down nginx on debian wheezy (running systemd)?

The systemd unit file that comes with the nginx-common package runs the master process as root, which makes me nervous. I assume the only reason it runs as root is to bind port 80, but being root is ...
3
votes
3answers
576 views

Creating a fallback error page for nginx when root directory does not exist

I have set up an any-domain config on my nginx server - to reduce the amount of work needed when I open a new site/domain. This config allows me to simply create a folder in /usr/share/nginx/sites/ ...
-1
votes
2answers
245 views

Can't install Nginx on Wheezy

I'm trying to install nginx on wheezy using this code in my deployment script: echo "deb http://nginx.org/packages/debian/ wheezy nginx" | sudo tee -a /etc/apt/sources.list echo "deb-src ...
0
votes
2answers
78 views

Nginx installed from apt-get - Do I need to create my own user?

I was building Nginx from source but now I am installing using apt-get. I was wondering if it is still necessary to create my own user to run the process manually or if it does that as part of the ...
0
votes
0answers
112 views

ERROR: Bad or malformed request. Unknown UID command

The weirdest of errors (on a webmail server system I admin) that appeared without me changing a thing on this system (I don't even do automatic updates or anything like that); I run Squirrelmail via ...
1
vote
0answers
325 views

upstream sent more data than specified in “Content-Length” header while reading upstream

I have django app (based on Mezzanine). My nginx conf looks like: upstream myhost { server 127.0.0.1:8000; } server { listen 80; server_name www.myhost.ru myhost.ru; ...
0
votes
1answer
253 views

Is debootstrap chroot safe?

I followed this tutorial http://wiki.debian.org/chroot on Debian Squeeze AMD64, to get a separated environment. This chroot is really safe? In others chroot tutorials, create a chroot for an ...
0
votes
1answer
84 views

Nginx: Cache uWSGI as accessible files

I'm still pretty new to Nginx, but I know that it serves static files very well. For this reason I want to use Nginx together with TileStache as a map server. TileStache has got a WSGI application ...
0
votes
2answers
223 views

separate logs from limit_req_zone in nginx

Here we have piece of current nginx configuration: limit_req_zone $binary_remote_addr zone=one:32m rate=2r/s; limit_req zone=one burst=10; error_page 500 501 502 503 504 =503 /offline.html; location ...
1
vote
3answers
444 views

Where to put project files with nginx

Looking at the /usr/share/doc/nginx/README.Debian file, we can see this warning: README for Debian ----------------- Files under /var/www/ are not supported as per Debian Policy. Please see: ...
0
votes
1answer
79 views

nginx not starting with multiple nodejs apps

i have this config in sites-enabled/default upstream domainone.com.ar { server 127.0.0.1:9000; } server { listen 80; server_name www.domainone.com.ar; rewrite ^/(.*) http://domainone.com.ar/$1 ...
0
votes
1answer
95 views

Pass on passenger_base_uri to Rails app

We built a Rails app that consists of the following routes: namespace :api do namespace :v1 do resources ... end end That means, all controllers are reachable via ...
0
votes
1answer
297 views

Best way to set up permissions with nginx + php-fpm on shared hosting?

I'm running a shared hosting server with nginx and php-fpm on Debian. Everything works fine, php-fpm has separate pools for each users running as separate users and they each have their own socks. ...
0
votes
2answers
143 views

Unable to set up 301 redirection on Nginx web server

I am trying to set up 301 redirection for all the domains hosted on my Nginx server, and every attempt to get it to work has failed this far. My Nginx configuration is below. File: ...