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

learn more… | top users | synonyms

0
votes
1answer
630 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 ...
2
votes
1answer
1k 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
77 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
1answer
36 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
103 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
278 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
130 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
29 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
2k 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
49 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
21 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
615 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
44 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
39 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
79 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
89 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 ...
2
votes
1answer
109 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
26 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
233 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
98 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
33 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
168 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
296 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
203 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
337 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
351 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 ...
0
votes
1answer
57 views

for IMAP php5-imap or dovecot?

I'm confused here while trying to get IMAP going on ubuntu 14.04, nginx, php-5 There is a package installed called php5-imap, is that all i need or do i need to install dovecot still? I'm not ...
0
votes
0answers
49 views

what should folder permissions be for nginx?

I have a server I am trying to update / migrate to nginx. I have nginx, installed and things were accessible, but sub folders were inaccessible. so then I tried to change permissions to 744 but now ...
0
votes
0answers
26 views

HDD Full Causing Server to Show 404 Not Found?

Here is my situation root@nalsec:~# df -h Filesystem Size Used Avail Use% Mounted on rootfs 20G 19G 0 100% / /dev/root 20G 19G 0 100% / devtmpfs 16G 0 ...
0
votes
1answer
2k views

Port 80 connection refused

i can not connect to port 80 on my webserver. my iptables are in the default state: Chain INPUT (policy ACCEPT) target prot opt source destination Chain FORWARD (policy ...
0
votes
1answer
468 views

TLS 1.2 with Ubuntu 14.04 and Nginx

For a website of mine (https://brejoc.com) I wanted to set up a decent HTTPS configuration that would also support TLS version 1.2. Most of the modern browsers support that by now. So I generated a ...
0
votes
1answer
240 views

nginx display only default virtual host page

I have a standard and clean nginx installation following this recent tutorial: https://www.digitalocean.com/community/tutorials/how-to-set-up-nginx-server-blocks-virtual-hosts-on-ubuntu-14-04-lts I ...
0
votes
1answer
124 views

How to start tomcat in Linux Ubuntu from Java or Scala program

I have one requirement where I need to start tomcat, nginx, kafka etc from scala or java program, I am able to check through java program that if they are running or not using ps-ef| grep name but if ...
0
votes
0answers
230 views

Upgraded nginx from 1.4.6 to 1.8.0 localhost/phpmyadmin not working

I Tried many times to upgrade Nginx 1.4.6 to the latest version but no success. After the upgrade everything else is working but no local access to phpmyadmin it showing; 404 Not Found Nginx 1.8.0 I ...
0
votes
0answers
251 views

$_SERVER['REMOTE_ADDR'] with NGNIX powered by Vesta on a Ubuntu Server

Here is my test.php <?php echo $_SERVER['REMOTE_ADDR']; ?> The IP displayed is the IP from the server, not from my visitor. Configuration: Vesta Control Panel which use NGINX default ...
1
vote
1answer
250 views

How to use php5-cgi with nginx?

I just installed php5-cgi on my Ubuntu 12.04. I am not sure about: What configuration I will need to do in nginx config file to use it. How will I start the service, as sudo service php5-cgi says ...
1
vote
0answers
338 views

why can't completely remove ro say uninstall nginx?

apt-get --purge remove nginx Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer ...
0
votes
1answer
392 views

apache2 can't stop and nginx can't start

I have installed both apache2 and nginx as web server. I found that it is a strange thing that apache2 logo will be still displayed in the firefox when service apache2 stop executed and nginx logo ...
1
vote
2answers
222 views

Is it possible to ping your own domain name?

I know that this is probably a stupid question but I really don't know the answer. I have a webserver with two domains sharing the same ip address. I am using nginx with fastcgi and php5-fpm, and I ...
2
votes
1answer
78 views

How to fix the nginx package?

I have installed nginx . dpkg -l nginx Desired=Unknown/Install/Remove/Purge/Hold | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend |/ Err?=(none)/Reinst-required ...
0
votes
0answers
17 views

What is typically evolve in setting up an Ubuntu server to be able to send information from a form through an email

I recently moved from a shared hosting to a self managed server, in the share server I had a contact form that was working find but when I tried to use this form in my new self-managed server it ...
1
vote
0answers
143 views

Nginx restarts when told to stop

I'm using AWS and have a setup script that runs after EC2 instance creation. It installs a bunch of packages, writes some config files, etc. It's been working well for a while. Now, nginx fails to ...
0
votes
0answers
260 views

Nginx not loading css/js/images in https - Blocked loading mixed active content

I am running ubuntu 14.04 with Nginx 1.8.0. While opening the web pages in https the pages appear to be broken as the css/js/images don't load. I get this error "Blocked loading mixed active content" ...
0
votes
0answers
45 views

Slow server with normal resource usage

My server is almost dead. I have following configurations: nginx - updated settings to avoid slow-loris. limited requests per client, limit connections per ip UFW - closed all the ports except ssh ...
0
votes
0answers
11 views

Trouble with permissions (Ubuntu 14.04, /usr, apt-get) [duplicate]

I believe I may have messed up. I'm setting up a rails server with passenger/nginx. Upon installing passenger's nginx module, I installed it to the directory where nginx currently resided ...
0
votes
0answers
59 views

Server Not Allowing acunetix Crawler

My server is not allowing acunetix to run on it. acunetix is showing an error Sever unexpectedly closed the connection. I am running Drupal on a LEMP stack I am looking forward to see ...
0
votes
0answers
47 views

Migrating Apache to Nginx problem

Ubuntu 12.04, I am trying to migrate to Nginx but i´m getting a 403 Forbidden message. Can anyone help me? This is my /etc/nginx/sites-available/default server { listen 80; root /srv/www; ...
1
vote
0answers
67 views

Unable to run apt-get update openssl on 12.04

I am trying to run sudo apt-get update openssl on Ubuntu Server 12.04, however when I do, I get the following error: Starting nginx: invoke-rc.d: initscript nginx, action "start" failed. dpkg: error ...
2
votes
2answers
431 views

Set different domain name on different port

I am new in Ubuntu. I have created my website in node. where I am using different port for different modules. like http://localhost:5555/ this is for admin, http://localhost:5050/ this is for ...
0
votes
1answer
711 views

Help with messy Nginx install (Trusty 14.04 Server)

I'm a bit of a noob here. I wanna try out nginx, but got some errors when installing: Reading package lists... Done Building dependency tree Reading state information... Done The following ...