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

learn more… | top users | synonyms

0
votes
0answers
23 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
477 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
71 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
23 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 compiling?...
3
votes
1answer
363 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
303 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
95 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
81 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
21 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
166 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
154 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
794 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
2k 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
91 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
38 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
122 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
411 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
163 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
33 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
23 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
658 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
45 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
41 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
85 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
104 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
126 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
27 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
256 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
101 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
34 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
174 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 library.linode....
1
vote
0answers
340 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 ...
1
vote
0answers
222 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
359 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
393 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
58 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
52 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
2answers
3k 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
511 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
294 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
141 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
234 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
267 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
292 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
383 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
458 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 can'...
1
vote
2answers
247 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 ...