Questions relating to nginx, an open source Web server and reverse proxy server

learn more… | top users | synonyms

1
vote
1answer
3k views

How to set-up Nginx correctly? “Welcome to nginx” is not displayed

I installed Nginx on my Ubuntu Server 12.10 using this instructions https://www.digitalocean.com/community/articles/how-to-install-nginx-on-ubuntu-12-04-lts-precise-pangolin , the Nginx was installed ...
17
votes
4answers
23k views

Nginx failing to reload - how to track down why?

Hi I've had my Nginx server running great on Ubuntu server 12.04 for a while. I've been gradually bolting on various bits, and got as far as optimising load times on my wordpress page. After making ...
0
votes
0answers
43 views

Intermittent SSL Handshake issues on Ubuntu 12.04 and Nginx [on hold]

In simple terms: I am having issues with https TLS handshakes. I am currently using nginx but it is most likely not an nginx issue as I have also tried HA-Proxy. Perhaps it is an integration issue ...
0
votes
1answer
14 views

php-fpm changed user can't create pid and sock files

I want to execute php-fpm with a different user in my Ubuntu workstation, so I changed the /etc/php5/fpm/pool.d file according to some tutorials I found: user = myuser group = myuser But when I try ...
1
vote
0answers
12 views

OCSP stapling with nginx [migrated]

I'm having trouble with OCSP stapling in nginx. So I start up the openssl ocsp daemon, and then I visit my site. Then it says Invalid request. I am using a private PKI and CA. SSL key: 8192bit DH key ...
1
vote
2answers
25 views

Forwarding Multiple port to Single port using nginx

I want to proxy pass all requests coming from a series of ports into single port. I am able to proxy pass a single port to another like so: server { listen 3333; server_name test.in ...
2
votes
3answers
92 views

How to lock user to one directory

I have built a few Virtual Hosts using nginx but now I want to have some users to modify them without them being able to edit anything else outside the host directory. I have tried so many things ...
0
votes
0answers
14 views

Browser throws exception when connecting to my Ubuntu instance

Here is my /etc/nginx/sites-enabled/"myapp" conf file. I have ssl disabled, so all requests are routed through non-ssl connection. Additionally, I have commented out the ssl stapling on directive. ...
0
votes
0answers
47 views

Nginx compile error

./configure --sbin-path=/usr/local/sbin --conf-path=/etc/nginx/nginx.conf --error-log-path=/var/log/nginx/error.log --http-log-path=/var/log/nginx/access.log --pid-path=/var/run/nginx.pid ...
0
votes
2answers
88 views

How to install ffmpeg on ubuntu? [duplicate]

For transcoding video I need to use ffmpeg. I have tried to install but I have faced with problems. Is anyone that can help with this case or can anyone offer any weblink or guide where I can follow ...
0
votes
1answer
21 views

How do I remove nginx?

I have some problems with nginx configuration. I found the problem and I need to uninstall it. I used the commands apt-get remove nginx and apt-get purge nginx But the nginx is still ...
0
votes
1answer
28 views

How to zero downtime restart nginx server

How to send HUP signal and zero downtime restart nginx server using Node.js file
2
votes
1answer
3k views

Unable to get error stack trace or error log while using php-fpm + nginx on Ubuntu 14.04

I am using php-fpm 5.5.9 along with nginx 1.4.6 on my Ubuntu 14.04 machine. I have installed them using apt-get package manager. I am unable to get a stack trace of the error that my index.php script ...
-1
votes
1answer
21 views

Connect to mysql on another device [duplicate]

I have two device on my network LB (192.168.1.10) and RP1 (192.168.0.20) I am wanting all the MySQL stuff to be hosted on the LB and all the web stuff to be hosted on the RP1. I have installed ...
4
votes
2answers
8k views

NGINX and PHP downloades index.php instead of processing it

I have been banging my head for 2 days now. The issue is that the index.php is downloaded instead of being processed. I'm using Ubuntu 14.04 , Nginx, php5. The nginx/site-available/default is as ...
27
votes
3answers
22k views

Trying to start nginx on VPS, I get “nginx: unrecognized service”

Following the How to install rails and nginx with passenger on Ubuntu tutorial from DigitalOcean.com, the seventh step manually starts nginx: sudo service nginx start but fails with the following ...
12
votes
3answers
9k views

After installing nginx with Passenger support in '/opt', why won't it start from 'init.d'?

I went through a tutorial http://craiccomputing.blogspot.com/2010/10/passenger-3-nginx-and-rvm-on-mac-os-x.html and everything was ok. There were no errors. Nginx with Passenger support was ...
0
votes
0answers
50 views

How to deploy python3+django 1.7+uwsgi+nginx on a fresh ubuntu server 14.04 64bit

I am a newbie. I find there is few detailed guide for this. So I come here for help. related information: django project path: /root/uxn/exam My site ip: 120.44.244.38
0
votes
0answers
26 views

502 Bad Gateway on redeploy

I am redeploying a Meteor application on DigitalOcean, and I am getting the following error message: 2015/03/24 13:58:58 [error] 4741#0: *10170 connect() failed (111: Connection refused) while ...
0
votes
0answers
24 views

Server restart question

I am trying to run a new version of an application on my server. Ive already scp'd the app onto my box, but in order for the changes to take effect, I must restart nginx (correct?). When I go to ...
0
votes
1answer
26 views

How do I install nginx when a dependant package is broken?

Seems like a really simple question. But, I'm trying to create a docker container containing nginx and it breaks. My dockerfile contains... FROM ubuntu:14.04 RUN apt-get -qq update RUN apt-get ...
0
votes
0answers
33 views

service nginx start is ok but nginx not running

I have a ubuntu 14.04 machin with nginx, which was working fine until I last used my computer that was last night. Today when I started my computer and navigated to 127.0.0.1 it said server not found ...
1
vote
0answers
78 views

Unable to install package

I'm trying to install a few packages, the command is : sudo apt-get install nginx-extras passenger But I'm getting an error afterward: Reading package lists... Done Building dependency tree ...
0
votes
1answer
46 views

Redirecting depending on directory

On my current load balancer I have set it up to redirect to my cluster like this: upstream myapp1 { server 192.168.0.20; #RP1 } server { listen 80; location / { proxy_pass ...
5
votes
2answers
5k views

Nginx downloading PHP file only if .php is in the URL

I know this is a popular question but I haven't found anyone with my similar issue. I can serve PHP files as long as the .php extension is not in the url. For example: If I go to localhost I am ...
0
votes
0answers
11 views

RAMFS vs REDIS DB

I making a weather app. It would work as follows [Weather API] - [My Server(Relay)] - [User App] I will use the third party paid API to get the latest weather feeds. Feeds will be in JSON format. I ...
0
votes
0answers
124 views

Nginx using default configuration on its own

I have set up Nginx on Ubuntu server 14.04 I want to configure a very simple server block that listens for /app path and redirects traffic to a running nodejs instance locally. I have done that with ...
0
votes
1answer
71 views

Installed Nginx with Apache Ubuntu 14.04

I installed Nginx, but I have Apache too. How I can run Nginx? When I go to my IP I am getting /var/www/ directory. I already try to figure out solving in internet but still can't get what I am doing ...
1
vote
1answer
28 views

Switch tasks on active process to new process

What I'm going to explain is really about nginx processes, so maybe it can be done in nginx, or maybe its a Linux feature. In anyway, I hope it's possible. I have an ningx process running, that looks ...
1
vote
1answer
84 views

Bash script to remove item from Nginx cache

I have Nginx running in Ubuntu. I'm trying to write a script that deletes an item from the Nginx cache. Script: clear_single_cache_object.sh #!/bin/bash echo "Deleting: " $1 grep -lr $1 ...
3
votes
2answers
5k views

Cannot remove NGINX

I have been expirmenting with nginx as a webserver for php files. I come from an apache background but I wanted to try it. I recently had an issue with it and needed to switch back to apache. I ...
0
votes
1answer
130 views

How to replace nginx with apache Ubuntu 14.04

I just recently installed Ubuntu 14.04. I am now setting up my LAMP stack: http://ubuntuserverguide.com/2014/06/how-to-install-lamp-in-ubuntu-server-14-04-lts.html, and on installing apache2 with: ...
0
votes
1answer
50 views

How to replace package install of nginx with compiled from source?

I installed nginx a while ago using the ubuntu PPA repository. Now I want to compile nginx from source so I can compile in and use the geo-ip module. I know how to compile the new nginx from source. ...
1
vote
1answer
265 views

Updating PHP on Ubuntu 12.04 with Parallels Plesk

I've tried a few times to update php on my server from version 5.3 to the latest 5.5 with: sudo add-apt-repository ppa:ondrej/php5 It seems to work fine but it also updates Apache which I think is ...
0
votes
0answers
29 views

Using repos vs compile: hot wo replace Nginx from repo with a compiled Nginx?

Sometime ago I used Kura's PPA to install Nginx+Pagespeed on my VPS. I would like to update it to the newest version, but the latest packages from Kura aren't so recent and I'm thinking about ...
5
votes
1answer
8k views

dpkg-deb: error: subprocess paste was killed by signal (Broken pipe) nginx

The Software up-to-date Option automatically download the upgrade for nginx. but While installing it's giving me the following error: Reading package lists... Done Building dependency tree ...
-1
votes
1answer
26 views

nginx reinstalled automatically?

i had once nginx installed and after same time i removed it I use apache as my webserver now when i tried to go to my own onion address in my tor browser, i get the welcome to nginx site?? how is ...
0
votes
0answers
10 views

Html of page appends many times to screen nginx 14.04

I install nginx, and configure basic virtual host. But I found strange error. It append html of my page many times. Maybe some can help me? I append my config in gist file. gist
0
votes
1answer
41 views

Problems with Nginx and php5-fpm

I have the next config for nginx, url /website/blog/index.php works but url /website/blog/ doesn't works server { listen 80; root /var/www/site; index index.html index.htm index.php; ...
0
votes
0answers
54 views

Set up Postfix to send but not receive mail

I want to set up my web server (Ubuntu 14.04) so that I can use contact forms, forum email confirmations, etc. without having to go through Gmail or some other server. I don't want to receive emails, ...
1
vote
2answers
12k views

How to remove nginx and re activate apache?

I have installed Apache2, mysql, php5 and phpmyadmin on my Ubuntu 14.04 but later on mistakenly I install nginx. Now my localhost page show me Welcome to nginx server. And the localhost/phpmyadmin ...
0
votes
0answers
67 views

Ubuntu RTMP server output video over cvbs

I want to stream video from Adobe_Flash Media Live Encoder (FMLE) to an RTMP server (nginx, ffserver or crtmp) installed on a Cubieboard (cb2), and output that video stream over CVBS (RCA yellow, red, ...
0
votes
0answers
24 views

Any guide to run Nginx alognside Apache2 on Ubuntu 12.04 Server (VirtualBox)?

Is there any guide/tutorial/links for running Nginx alongside Apache2. If yes please provide the same ASAP. I'm running Ubuntu 12.04 server on Virtual Box. I had already installed & working ...
1
vote
1answer
61 views

Suggestions for rolling out a WebServer and Load Balancer with Juju Charms

I'm setting up a Maas/Juju Ubuntu 14.04 cluster and need some advice. The goal is to have HAProxy load balancing either Apache or Nginx that I can configure to host a set of php files that will be ...
0
votes
0answers
163 views

EC2.micro nginx php-fpm error “upstream timed out”

I've been setting up a new server on AWS using a t2.micro instance and Ubuntu. After setting everything up the site worked fine, but now it's throwing errors. There is no traffic on the site at the ...
0
votes
1answer
108 views

My server is making me download the code instead of running it

I am running an ubuntu server 12.04 but unfortunately I am not being able to make the interpreter run the code exactly. I am using nginx encrypted lvm and here is the conf.d (main part): server { ...
8
votes
2answers
2k views

What is the difference between the core, full, extras and light packages for nginx?

nginx on Ubuntu is a virtual package provided by one of five packages from the official repositories (at least as of 14.04, defaulting to nginx-core, I believe): $ apt-cache depends nginx | tail -n+2 ...
1
vote
1answer
113 views

How to get access from nginx on host OS to files inside lxc-container?

I have Ubuntu 14.04 and lxc-container inside it. Both of host OS and container have nginx 1.4.6 installed. Container has ip-address 10.0.3.100 and located in ...
0
votes
0answers
50 views

Can't access server from internet

I am testing home server on old Fujitsu Siemens PC. I installed Ubuntu Server 12.04 and upgraded it to 14.04 (had to use 12.04 for some boot problems) Then I installed LEMP stack with NGINX. I have ...
0
votes
0answers
42 views

Load Balance Nginx, SSL, MySQL

So I need to load balance Nginx servers, can someone give me a good tutorial or explanation. With SSL is there such thing as load balancing SSL? I've heard of it. And clustering MySQL, how can I do ...