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

learn more… | top users | synonyms

0
votes
0answers
24 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
20 views

Start nginx on boot with config in non-standard location

I'm trying to do something that I consider fairly simple... When Ubuntu boots, I want to start nginx using a config in a non-standard location (e.g. /home/ubuntu/foo/nginx.conf) I've just installed ...
0
votes
2answers
110 views

502 Bad Gateway nginx php7 fpm

I tried to install nginx and PHP7 with fpm using this tutorail https://www.digitalocean.com/community/tutorials/how-to-upgrade-to-php-7-on-ubuntu-14-04 When i try to access any php file I get 502 Bad ...
0
votes
1answer
52 views

./configure: C compiler cc is not found

I am currently trying to compile nginx from source with the RTMP module on Ubuntu Server 16.04 LTS. Everything is ready and in place, but I can't compile. I get the following error: ./configure: ...
0
votes
1answer
20 views

Still apache page running after configuring nginx?

I have done all the below steps still apache page is running on localhost:8000 : It is because by default Apache and nginx are listening to the same port number (:80) Reconfigure nginx to listen on ...
0
votes
0answers
36 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
17 views

Nginx as Proxy in front of Apache or just switch to Nginx? [on hold]

Hope someone can offer some advice. Been reading up a lot about running Nginx as Proxy in front of Apache to speed up the way Apache serves requests. Been considering this but wondered if it's ...
-4
votes
1answer
46 views

What do I put for server_name in NGINX? [closed]

While configuring the nginx web server and the default configuration file/etc/nginx/sites-available/default, I have to put something in for server_name. What do I put for server_name in this ...
0
votes
0answers
70 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
16 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
15 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;
1
vote
1answer
45 views

RMTP Streamig to Twitch [closed]

First of all, i posted this question on http://unix.stackexchange.com but so far no responds. I'm reposting it here since i tried it on ubuntu 15. and got same results. I would like opinion on that. ...
-1
votes
0answers
18 views

Loading Unix Sockets on RAM to allow faster Communication

I am currently working with some php versions and nginx. They are communicating with FastCGI and i liked more the idea to let them communicate via an Unix Socket.. There i just got some Perfomance ...
0
votes
0answers
21 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
68 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
26 views

How to restart nginx server using PHP? [duplicate]

I have a problem, i make a site to control our server, but i cannot restart nginx server, this my code $queryRestart = "sudo /etc/init.d/nginx restart";<br> $restart = exec($queryRestart);
0
votes
0answers
92 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 ...
1
vote
2answers
83 views

Run Shell Script inside tmux

Why after running tmux on a remote server via ssh, program works; but after detaching sessions, it returns 404? This is a Go(golang) program, a http server listening on a port, behind a nginx reverse ...
1
vote
0answers
69 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 ...
0
votes
0answers
51 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
44 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 ...
-1
votes
1answer
45 views

How we install Apache and Nginx together and check default page as both uses same port 80

$sudo apt-get install apache2 $Sudo apt-get install nginx Both installed but only apache is running and if we go for nginx after stopping service of apache ,nginx service is running but not showing ...
0
votes
1answer
110 views

Multiple websites on nginx, one IP

So I'm using digital ocean and nginx. I want to host multiple websites (my projects) but dont want to buy a domain for each one. Is there a way to host multiple websites on nginx and digital ocean ...
1
vote
3answers
790 views

Nginx installation error in Ubuntu 16.04

:~$ sudo apt-get remove nginx* && sudo apt-get install nginx-full* Reading package lists... Done Building dependency tree Reading state information... Done After this operation, 5,579 kB of ...
0
votes
1answer
26 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
29 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
1answer
29 views

nginx start (question about how to cope with linux reference manuals)

Ubuntu 14.04 Could you help me understand what does this difference mean. I'm trying to cast a look at nginx (a web-server). I would like to start it. It starts automatically, but I have stopped it. ...
1
vote
1answer
234 views

Ubuntu 16.04 LTS, ZFS, SWRAID and mentoring inquiries

It's been awhile since I have posted in this Ubuntu forums site and now I’m utilizing the mailing list. I also tried to check reddit and after reading the FAQ there, this site is the way to go. I am ...
0
votes
0answers
41 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
28 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
19 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
32 views

info.php is downloading instead of loading in browser [duplicate]

I have installed nginx server with php7 following this tutorial on tecadmin - but when I type localhost/info.php on the browser, it start to download the file instead of showing the page. What can ...
0
votes
1answer
44 views

Ubuntu on MS Azure - how to setup nginx

I created new VM with Ubuntu 14.04 and I'd like to setup nginx on it. I installed nginx via putty ssh connection: sudo apt-get update sudo apt-get install nginx sudo ufw allow 80 However, when I ...
0
votes
1answer
49 views

www-data running command not working

I'm using nginx with php , and I would like to run some command with exec() http://php.net/manual/fr/function.exec.php . the current example work perfectly echo exec('whoami'); but when I try with ...
0
votes
1answer
1k views

How to install php 7 to run beside php 5 on ubuntu with nginx

I want to try php 7 and get my site working on php 7 in the same time keeping other sites working on php 5 just in case. so that from the domain virtual host config I can decide which php to run. I ...
0
votes
1answer
2k views

nginx fail to install on Ubuntu 15.10 server

I am trying to install nginx on my freshly installed Ubuntu Server 15.10 with Mate desktop. I did a quick update: sudo apt-get update Now trying to install nginx: sudo apt-get install nginx ...
0
votes
0answers
218 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
2answers
104 views

Apache2 error no listening sockets avaliable

Someone help me. This error appeared after I installed without wanting NGINX but had the ispconfig . I want to continue to use the ispconfig . It seems that something is on the port that it is ...
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
1answer
203 views

nginx won't start at boot using systemd

I'm using nginx mainly as an http(s) proxy, for this I need to provision some domain names, which nginx tries to resolve (DNS) at startup. If I start nginx manually (using systemctl start) after the ...
1
vote
1answer
109 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 ...
0
votes
2answers
56 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
65 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 ...
0
votes
1answer
17 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
93 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
47 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 ...
2
votes
2answers
163 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; ...
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 ...