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

learn more… | top users | synonyms

4
votes
0answers
2k views

How do I fix “chdir(): No such file or directory [uwsgi.c line 1723]” on in wsgi on nginx?

I have treeio project in my home directory, now I want to run that treeio in nginx server. Already treeio can independently run on Django comes with the source. I don't want to run that in Django ...
2
votes
0answers
214 views

Why doesn't lsof show localhost TCP connections in 14.04?

I have two servers running 12.04.4 and 14.04.1 respectively. Both have nginx (port 80) and a Java process (port 8080). As expected, the lsof output for the Java process (sudo lsof -nP -p $PID) on ...
2
votes
0answers
665 views

Why rewrite directive causes “301 Moved Permanently” with Nginx?

Below is a much simplified version of what I have in the configuration file of a server run by Nginx 1.2.5, yet it causes 301 Moved Permanently with Location: http://example.com/phpmyadmin/ before ...
1
vote
0answers
24 views

Problem with downgrading nginx - can't remove dependencies

I need to downgrade nginx from 1.10.1 to 1.4.6. However I got stuck. Please take a look on listing below: root@FServer:~# nginx -v nginx version: nginx/1.10.1 root@FServer:~# apt-cache policy nginx ...
1
vote
0answers
75 views

SSL Certificate Issue Godaddy + DigitalOcean + Nginx

I follow digitalocean tutorial - how to install godaddy certificate with nginx. Everything worked fine expect it's not showing green color in chrome or lock in safari. I tested certificate with ...
1
vote
0answers
31 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 ...
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 ...
1
vote
0answers
386 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 ...
1
vote
0answers
156 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 ...
1
vote
0answers
74 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 ...
1
vote
0answers
85 views

BIND configured, DNS configured. No joy!

I have a GoDaddy domain, I've adding host names (ns1, ns2 of the domain through GD), I've pointed the name servers to my VPS server IP. So we are ok so far, great. I've resorted to install VestaCP on ...
1
vote
0answers
338 views

How do I send nginx access and error logs to syslog?

I have rsyslog configured to ship logs to another server. I have been trying to setup nginx and rsyslog to use a socket, like /dev/log, to transfer logs into the local rsyslog and then let it handle ...
1
vote
0answers
383 views

dependency issue while installing phpmyadmin on nginx webserver

I tried to find a solution for this problem for a long time but I cannot find it. Maybe you can help me. I have Ubuntu 14.04 installed on my system and want to use it for web development using nginx. ...
1
vote
0answers
488 views

Server slow after Nginx errors and restarting PHP

I have a server with Intel Xeon 2xE5520 2.27GHz, 48 GB Ram, 2x146 GB 15K HDD (Raid) OS Ubuntu 14.04.01, Nginx 1.6.2, PHP 5.5.9, MySQL. Webmin. My website is video portal. Traffic is approximately ...
1
vote
0answers
590 views

Can't configure NGINX to cache the images

I have been trying to cache images that are stored in nginx server, I am quite new here and to nginx I have installed it and configure it with php5-fpm, I have been reading many tutorial regarding ...
1
vote
0answers
57 views

Make a Ubuntu Server ready for takeoff as a webserver

What are the necessary steps to make an ubuntu server ready for productive operation as a webserver? I've assumed that the server distro of ubuntu doesn't have to be further tweaked to make it ready ...
1
vote
0answers
384 views

Nginx processes have disappeared - why?

I've been following the arts technica web served series which has been great at teaching me how to get an Nginx server established on a fresh Ubuntu 12.04 server. I'm having a few problems however. ...
1
vote
0answers
917 views

nginx with hhvm - Not found

I'v set up nginx with hhvm but, any file .php returns me "Not found" except index.php that returns me Running on HHVM version 2.3.2. Some of my configurations /etc/nginx/sites-enable/default ...
0
votes
0answers
27 views

fastcgi cache in nginx is not caching the same page for all users

I'm using Ubuntu 14.04 server, and I just found out that fastcgi cache is not caching the same page for everybody. I thought it did. I ran some new PHP GeoIp code that displays the user's country name,...
0
votes
0answers
42 views

Nginx server not connecting

I have a DigitalOcean droplet running Ubuntu. It's currently running a Node app, but I'd like to have it running multiple ones. So I've been following the simple tutorial on isntalling Nginx here: ...
0
votes
0answers
79 views

nginx fails to update after upgrade to 16.04 server

I upgraded from 14.04 server to 16.04 server. I have always used the official nginx packages, because I needed support for things like SPDY and HTTP2 which were not in the 14.04 version of nginx. ...
0
votes
0answers
17 views

Ubuntu Server 14.04 nginx Wordpress?

I was wondering if someone could shed some light on what im missing? So before I was running my own small website on WAMP on windows now that Im moving everything to linux I installed ubuntu server ...
0
votes
0answers
17 views

Nginx Proxy-Pass Rule convert CDN URL to Origin URL

My Proxy-Pass Rule at Nginx is converting the CDN URL to the ORIGIN URL. How can I change this to keep the CDN URL? rewrite ^/asset/(.*) /includes/libs/minify/index.php?g=$1 last;
0
votes
0answers
22 views

404 not found : After installing LAMP stack

I have installed Ubuntu and NGINX server, php7.0 and mysql database. After that I have installed the WordPress. When I opened the site with ip-address I am getting 404 not found.
0
votes
0answers
80 views

Installing phpmyadmin on php7 : Ubuntu 14.04

I have LAMP stack on Ubuntu 14.04. I have upgraded from php 5.0 to php 7.0 but i couldn't install phpmyadmin. I went to my public folder which is var/www/domain.com/html and ran that code, git ...
0
votes
0answers
94 views

Lucee, Preside, Elasticsearch And Nginx on Ubuntu 16.04 LTS

I've been following a document on Installing Lucee, Preside, Elasticsearch and nginx all on Ubuntu 14.04 LTS. Our current version works however when I attempted at installing it on the most up to date ...
0
votes
0answers
56 views

Mattermost Nginx Configuration

I'd like to run Nginx ONLY on the port required for Mattermost i.e. port 8065 alone. I want it to use SSL so that the communication is secure. I've attempted with what they provided in the ...
0
votes
0answers
45 views

Problem in nginx ERPnext is not opening

I installed ERPnext on Ubuntu command-line server and everything was great, nginx opened at localhost:8000 and worked fine. it stopped working until I installed apache2 no doubt, i removed apache2 but ...
0
votes
0answers
44 views

How to run Multiple Magento2 setup with Nginx

I want to configure multiple Magento2 setup (like 3 setups) with single domain name. like.. If I browser the URL as below then it should load separate directory based on Nginx request. test.com/...
0
votes
0answers
30 views

Trouble using pimcore on LEMP stack

I was able to install pimcore on a LEMP server with php5.6 and ubuntu 15.10 wily. The php packages installed according to the official system requirements on the pimcore website. After installing ...
0
votes
0answers
20 views

.htaccess on Ubuntu 14.04 x64 + VestCp Nginx

Hello everyone I have some issues. I have a Ubuntu 14.04 x64 server with VestCp on it and I added a site that have this .htaccess RewriteEngine On RewriteRule ^news/([^/]*)/$ /news.php?news-url=$1 [...
0
votes
0answers
229 views

php permission denied on ubuntu webserver

I have an Ubuntu web-server on Ubuntu Mate 15.10, with php-fpm, and nginx 1.9.3. I tried to do some simple file IO today, but got: failed to open stream: Permission denied from /var/log/nginx/error....
0
votes
0answers
13 views

nginx smf forum works on host but not clients

I have ubuntu running in a virtual machine and I have a LEMP stack properly configured and everything works... on the host VM. im the actual OS (windows 10) some files dont load (some .css files and ...
0
votes
0answers
26 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
50 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 ...
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 ...
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
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
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 ...
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 ...
0
votes
0answers
164 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 ...
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 ...
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.
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. ...
0
votes
0answers
360 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 ...
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 ...