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

learn more… | top users | synonyms

0
votes
1answer
15 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 ...
-1
votes
0answers
24 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
19 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
30 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 ...
3
votes
2answers
1k views

Existing laravel 4 project gives 404 in browser

I'm trying to set up a development environment on a virtual machine running Ubuntu 14.04 LTS using Nginx and HHVM. To do this, I followed the tutorial here. This goes well with a new installation of ...
0
votes
1answer
12 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
8 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 ...
8
votes
2answers
11k views

how to install nginx after removed it manually

I have installed nginx using apt sudo apt-get install software-properties-common sudo add-apt-repository ppa:nginx/stable sudo apt-get install software-properties-common sudo apt-get update sudo ...
2
votes
1answer
178 views

Why is my NGINX downloading files?

I've set up a redirect so I can serve my PHP files without the .php extension, but whenever I visit a "clean" url, my browser downloads the file, suggesting NGINX isn't hosting it as a PHP file. How ...
3
votes
1answer
63 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]: ...
3
votes
2answers
38 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; ...
0
votes
2answers
4k views

How to setup SendMail with nginx

I have a Ubuntu server with nginx I have installed sendmail on it by running apt-get install sendmail I was also able to sendmail using sendmail <my_email_address> hello . the mail I ...
3
votes
2answers
262 views

SSL on one domain and not the server ip or any virtual hosts (nginx)

I have a SSL setup on my nginx server and the SSL works perfectly, only problem is it is working on all other virtual hosts and also the server IP which I don't want it to. It should only work in the ...
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 ...
2
votes
2answers
8k views

Unable to get error stack trace or error log while using php-fpm + nginx on Ubuntu 14.04

I am using php-fpm 5.5.9 along with nginx 1.4.6 on my Ubuntu 14.04 machine. I have installed them using apt-get package manager. I am unable to get a stack trace of the error that my index.php script ...
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
73 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 ...
18
votes
1answer
34k views

Ubuntu php5-fpm unix socket

I have Ubuntu 11.10 and installed php5-fpm and I want to configure nginx. I want to use unix sockets instead of tcp sockets but I couldn't find the /var/run/php5-fpm.sock I have looked also ...
4
votes
2answers
188 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 ...
18
votes
2answers
10k views

What is the difference between the core, full, extras and light packages for nginx?

nginx on Ubuntu is a virtual package provided by one of five packages from the official repositories (at least as of 14.04, defaulting to nginx-core, I believe): $ apt-cache depends nginx | tail -n+2 ...
70
votes
2answers
133k views

What is the easiest way to enable PHP on nginx?

What is the easiest way to enable PHP on nginx on Ubuntu 12.04? Best solution is the one that request minimal work, ideally just a package installation :)
1
vote
3answers
5k views

How to solve 404 for static files with Django and Nginx?

I setup a Trusty VM with Django + Nginx (other stuffs too). The server is working, I get the "Welcome to Django" page. But when I enter to servername/admin it loads the HTML page but fails to load ...
-1
votes
2answers
651 views

my localhost default page welcome me on nginx

I am again getting frustrated by my nginx server. I am trying to install laravel in my /var/www/project folder but when i delete the default HTML dir from /var/www/html it deviates me to the nginx ...
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
1answer
58 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
143 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
0answers
41 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
33 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
17 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
55 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
266 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
2answers
2k views

Nginx over Apache with Laravel give rewrite_mod problems

Im running Nginx over Apache. I Nginx listens to port 80 and proxy it to port 8080, which Apache listens to. So far it works for direct url to files, like domain.com and domain.com/index.php. But ...
0
votes
0answers
26 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
1
vote
1answer
308 views

Unable to install package

I'm trying to install a few packages, the command is : sudo apt-get install nginx-extras passenger But I'm getting an error afterward: Reading package lists... Done Building dependency tree ...
5
votes
3answers
26k views

How to remove nginx and re activate apache?

I have installed Apache2, mysql, php5 and phpmyadmin on my Ubuntu 14.04 but later on mistakenly I install nginx. Now my localhost page show me Welcome to nginx server. And the localhost/phpmyadmin ...
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
90 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
654 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 ...
2
votes
2answers
896 views

Installed Nginx with Apache Ubuntu 14.04

I installed Nginx, but I have Apache too. How I can run Nginx? When I go to my IP I am getting /var/www/ directory. I already try to figure out solving in internet but still can't get what I am doing ...
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
349 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 ...