Questions relating to Nginx, an open source Web Server and reverse proxy server.

learn more… | top users | synonyms

0
votes
0answers
11 views

Securely load website content using http on local and https outside

Is secure to load page on local server (i have apache and nginx,where nginx is proxying to apache under specific port) with http and for setup https for output ? Example: I have service running under ...
0
votes
0answers
10 views

nginx won't start at boot using systemd

I'm using nginx mainly as an http(s) proxy, for this I need to provision some domain names, which nginx tries to resolve (DNS) at startup. If I start nginx manually (using systemctl start) after the ...
0
votes
1answer
18 views

Using SSL with redirects from non http causes redirect loop?

I recently setup letsencrypt with my site, and the SSL works perfectly. However, when I set Nginx to redirect HTTPS to HTTPS, I get a redirect loop where when you visit the website and refresh the URL ...
-2
votes
0answers
32 views

Insufficient permissions trying to edit nginx.conf

Sorry if I come off as ignorant, I have not been using Ubuntu for a long time, but I figured that because i have an interest in coding, and I also have an interest in Streaming games to twitch.tv, I ...
0
votes
2answers
22 views

How to totally remove the nginx from ubuntu 14.04 LTS

I have un-install all the nginx related packages.(like this answer said http://askubuntu.com/a/457412/383308), after that I run the command below command gives nothing. sudo find / -name 'nginx' ...
1
vote
1answer
31 views

Multiple connections per ip

I am running Ubuntu with a webserver (Nginx). I noticed that one IP has multiple connections opened. My server works all fine and there is no issue. I am just curious to know why there are many ...
0
votes
1answer
13 views

Filtering nginx traffic

I have an nginx server running on ubuntu server. I have many websites and hundreds of pages hosted on the server. I want to execute one PHP function on each page when it is requested by a user. It is ...
0
votes
2answers
9 views

NGinx reverse proxy and subdomains on apache2

I currently have an nginx VM setup to route traffic between 3 domains but am having an issue with routing the subdomains at the moment. The current configuration goes PFSense -> nginx reverse proxy -> ...
0
votes
0answers
8 views

How to configure rails+nginx with RAILS_ENV = development in Ubuntu?

I am using Ubuntu Server 14.04.3. I would set up the rails with development env along with nginx to simulate a production env, but whenever I set can not access the project. When I use with the env ...
2
votes
2answers
43 views

set nginx server_name variable from command

root@username:/home/dokku/appname# cat nginx.conf server { listen [::]:80; listen 80; server_name appname.wrongname.co.uk ; access_log /var/log/nginx/appname-access.log; ...
1
vote
0answers
23 views

How do I fix/undo sudo aptitude safe-upgrade

So I'm fighting with NodeBB -- and found that nginx was advised. However I thought I needed the most updated version (when in fact 1.4.x is recommended). I couldn't get the rerouting working on 1.8 ...
0
votes
0answers
19 views

Trying to upload Previously made Larav4 website on Nginx Digital Ocean Ubuntu 14.04 returning 404 page not found

I am migrating my Laravel4 based app to Digital Ocean . So I created a folder in /var/www/ideconnect.com/html/ and pasted my app code in the folder so now when I do www.ideportal.com/public/ it ...
1
vote
2answers
79 views

How to configure Apache on Ubuntu 14.04 if Nginx is already installed

I followed the Tutorial on Digital Ocean and installed LEMP server successfully. Then I read about reverse-proxy using Nginx and APache for hosting multiple websites on the same droplet . Since I ...
0
votes
0answers
28 views

Apache 403 Error

I have bough a dedicated server from soyoustart a company owned by ovh. I have a 32 Gb ram server, anyways. I don't know how to fix the apache 403 glitch. I do: apt-get update apt-get install ...
0
votes
1answer
14 views

Do I need to keep the ngx_pagespeed source code after compiling it into nginx?

I have built nginx with the ngx_pagespeed module with the following configure flag: --add-module=ngx_pagespeed Do I still need to keep the original ngx_pagespeed directory after it finishes ...
3
votes
1answer
69 views

How do you debug a php5-fpm kernel segfault error?

A couple of weeks ago, my OSSEC daemon started sending me syslogs about a segfault in my php5-fpm. Here's the portion of the logs: Dec 19 15:09:38 mydropplet kernel: [165740.998932] php5-fpm[26936]: ...
4
votes
2answers
194 views

php scripts dont work when called from php tags in html

I have an nginx server, with php5-fpm, on Ubuntu 15.10. files that end in ".php" load properly. HTML files load properly. But when I put <?PHP ?> tags in an html file, the php scripts do not ...
0
votes
0answers
9 views

Monitoring a UNIX server hosting NGINX and MEAN stack application [duplicate]

I have a virtual Ubuntu server running. I have a MEAN Stack application along with NGINX running on this machine. What is the best way to monitor uptime of this machine along with those of NGINX and ...
0
votes
0answers
43 views

Jetty8 doesn't start

I'm trying to setup nginx with jetty, but seems like my jetty8 doesn't start and I don't know why: >sudo service jetty8 start >service --status-all ... [ - ] jetty8 ... I have already ...
0
votes
0answers
35 views

cannot change php and mysql/percona to use utf-8

Ubuntu 14.04 amd64 What I had done: Set as below in php.ini, restart php5-fpm default_charset = "UTF-8" Set as below under http section of nginx.conf, restart nginx charset utf-8 Set below ...
0
votes
0answers
19 views

Web Server behind routed OpenVPN tunnel

In an attempt to serve an nginx vhost from one particular remote IP address, using an OpenVPN server as a router, I am trying tunnel web traffic, like so: Internet ---- OpenVPN Router Server ...
0
votes
0answers
11 views

Unable to use tmpfs files in website

I have uploaded files in tmpfs by following command: cp -af /var/www/html/assets/js/plugins.js /dev/shm I verified it using : df -h /dev/shm But how can I use this file in my website? When I ...
0
votes
1answer
67 views

Nginx redirects all domains to same server block

I'm trying to setup a server with Nginx and PHP FPM and I ran into some trouble. I've set up an Nginx virtual host and a fpm pool for each website. The problem is that all domains are showing the ...
0
votes
1answer
57 views

Ubuntu service started from /etc/init.d ends up with the wrong PID

This question follows on from my previous question. To recap I want to use OpenResty rather than vanilla Nginx on my Ubuntu 14.04 server. I have complied OpenResty following the instructions here. ...
0
votes
1answer
157 views

Running OpenResty as a service on Ubuntu 14.04

I need to use Nginx with Lua and a sheaf of other extensions enabled so I have followed the instructions at https://openresty.org/ and compiled the OpenResty variant of Nginx. That process went ...
0
votes
1answer
289 views

nginx uwsgi internal server error 500 - http uwsgi header: “Connection: close”

I am using a small server with nginx and a python flask app on aws, and uwsgi. It has already happened twice that the server went down with error 500, and no logs on behalf of nginx. I am not expert, ...
0
votes
0answers
27 views

Dealing with php extensions - nginx and php-fpm

I had installed nginx php-fpm and mariadb, everything looks fine except I have some troubles with 2 extensions: php cannot find phalcon a web framework and json. so i tried to locate those: locate ...
1
vote
0answers
18 views

Is there a ppa for nginx mainline with pagespeed?

I could only find a couple for the stable branch of nginx
0
votes
0answers
47 views

can't remove nginx

I have recently upgraded my virtual machine from Ubuntu 15.04 to Ubuntu 15.10. Previously I was running an Apache2 web server with PHP and MySQL installed. Now when I access localhost, or the IP ...
2
votes
1answer
91 views

How are services started in Ubuntu 14.04, Upstart, SysV or a combination of both?

I have these 2 webservers installed on a development machine and because they both bind to port 80 only one can be running at any given time. I would like to be able to modify the init startup ...
0
votes
0answers
77 views

nginx configuration to serve index.html on root and allow flask API at server side only

I've been trying since a few days to properly configure nginx and flask, with poor success could you please debrief? First time I deploy my first flask app on EC2 My goal: expose the APIs to the end ...
1
vote
2answers
20 views

memcached default port should be changed?

I'm using memcached on a ubuntu 14.04 based server with nginx on it It's default setting is: session.save_path = "tcp://localhost:11211" Should it be changed to some other port? Or is it secure ...
2
votes
1answer
678 views

Nginx over apache gives 502 Bad Gateway

I'm trying to run Nginx over Apache. My configuration is that I set Apache to listen to port 8080 instead of 80. Then I set Nginx to proxy all requests to the same domain over port 8080: upstream ...
0
votes
0answers
38 views

Getting better SSL protocol support for my Nginx load-balancer?

How can I improve my SSL protocol support for my Nginx load-balancer? Here is how it looks now: server { listen 80; server_name my-site.com; return 301 https://my-site.com$request_uri; } ...
0
votes
0answers
20 views

Some SSL web sites stop responding, while others continue to function

Does anyone have ideas on how to debug my problem. I have sites that are using dedicated IPs with secure certificates from comodo, and other sites using startssl certificates. Under unknown ...
0
votes
0answers
358 views

nginx + php-fpm high load - Warning pool www seems to be busy

I'm getting this messages: [26-Oct-2015 21:45:07] WARNING: [pool www] seems busy (you may need to increase pm.start_servers, or pm.min/max_spare_servers), spawning 16 children, there are 97 idle, and ...
1
vote
1answer
43 views

httptest http://tools.maxcdn.com/http Nginx does not answer

My Ubuntu Server: Ubuntu 14.04 x64 1GB of RAM , 30GB SSD Drives I add MongoDB server nginx on Ubuntu. Working on my website. My problem now httptest creatng ( http://tools.maxcdn.com/http ) ...
0
votes
0answers
30 views

How can I use memcache or install it?

I already install memcached, but my project must use memcache. I don't know how to install or use it for nginx server. Please anyone help me.
1
vote
1answer
48 views

security risk of changing user in nginx server

I am planning to set up a server on a spare computer. I plan to use Ubuntu server 14.04 with nginx and php. I know that it is generally safe not to run a server as root user but is it ok if I set it ...
2
votes
1answer
62 views

Launch application on ubuntu server using php

I am trying to make a minimal Ubuntu system which only has the software I need. I decided to use Ubuntu server 14.04 for this and install openbox as the GUI. I have also set up nginx to work with php ...
1
vote
0answers
70 views

Laravel CLI cUrl Error on Ubuntu 14.04.3 LTS

I have already installed the nginx, MySQL, HHVM and Composer, everything is working, so I installed the Laravel CLI to run laravel new blog from the terminal but when I run it i get this error: ...
0
votes
1answer
20 views

What are the main feature you need to understand to be able to manage Ubuntu and Nginx

I recently started managing my own Ubuntu server and Nginx for HTTP purposes, but I often find confusing as to what parts belong to what server, ports, permissions etc. I do understand Ubuntu is the ...
0
votes
0answers
130 views

PHP Warning: Module 'geoip' already loaded in Unknown on line 0

I get the following email every 30 mins: This message was created automatically by mail delivery software. A message that you sent could not be delivered to one or more of its recipients. ...
2
votes
1answer
68 views

Nginx doesn't work on my VPS

The first idea was to set up a Node.js server on my VPS so I followed this article: Setup node js in production However in this article it is advised to use this command: sudo setcap ...
0
votes
1answer
27 views

Disabled domain remains active. Varnish:80, Nginx:8080

I need to move dev.mydomain.com to mydomain.com to make new site available on the official domain. In order to do this I: created new vhost record in /etc/nginx/sites-available for domain.com ...
0
votes
2answers
120 views

Nginx installation

I got errors when execute the following command to get the Nginx service setup: sudo wget -O init-deb.sh http://library.linode.com/assets/1139-init-deb.sh The error is: Resolving ...
1
vote
0answers
173 views

Not able to install nginx?

I was able to install nginx's latest stable version (1.8.0) on my ubuntu 14.04 LTS desktop PC, by using following commands. sudo add-apt-repository ppa:nginx/stable sudo apt-get update sudo apt-get ...
0
votes
0answers
116 views

Nginx autostart on Docker (ubuntu:trusty image)

I have installed nginx to Docker container (container from ubuntu:trusty image). And every time when I call docker stop nginx and after docker start nginx, my nginx server in shut down state. How ...
0
votes
0answers
241 views

Error log: upstream timed out (110: Connection timed out) on Nginx

Please... I need help!!! My script don't works! My script in php only load for serveral time and afterwords appears that message: An error occurred. Sorry, the page you are looking for is ...
3
votes
1answer
191 views

Why won't DNS resolve?

I can't use git clone or even apt-get install because I get a "cannot resolve host" error. They were working before, but I have no idea what changed that broke the DNS resolve. I can't find any ...