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

learn more… | top users | synonyms

3
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
200 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
627 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
29 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
262 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
306 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
133 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
64 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
70 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
286 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
362 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
448 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
566 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
349 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
910 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
9 views

Open Build System error, nothing provides dh-systemd(>=1.5) in Ubuntu 16.04 repository

I am trying to build a custom nginx package for Ubuntu 16.04 [link to my project]. I created my gpg signed files to be uploaded using the command Code: debuild -S -sa -k'mygpgkey' and uploaded ...
0
votes
0answers
22 views

cannot change open file limit

On ubuntu 14.04 production web server, I set as below: /etc/security/limits.conf * soft nproc 65535 * hard nproc 65535 * soft nofile 65535 * hard nofile 65535 /etc/pam.d/common-session session ...
0
votes
0answers
10 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. ...
0
votes
0answers
18 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
8 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
105 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 ...
0
votes
0answers
11 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
24 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
28 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
21 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
58 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
77 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
55 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
55 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
15 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
62 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
81 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
118 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
45 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
564 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
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.
0
votes
0answers
214 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
182 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
311 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
29 views

Issue with Ubuntu-Desktop on Ubuntu Server 14.04 LTS

Background: 4 Core AMD Phenom II 8 GB Ram Ubuntu Server 14.04 LTS with LEMP Issue: I installed ubuntu-desktop: sudo apt-get install ubuntu-desktop And when I rebooted all I am seeing is a blank ...
0
votes
0answers
45 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
0answers
226 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
232 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 ...
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 ...
0
votes
0answers
248 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
43 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
53 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 ...