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

learn more… | top users | synonyms

0
votes
1answer
544 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
325 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
151 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
237 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
276 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
327 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 "...
2
votes
0answers
426 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
514 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
260 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 ...
2
votes
1answer
90 views

How to fix the nginx package?

I have installed nginx . dpkg -l nginx Desired=Unknown/Install/Remove/Purge/Hold | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend |/ Err?=(none)/Reinst-required (Status,...
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 didn'...
1
vote
0answers
165 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 ...
0
votes
0answers
274 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
46 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
11 views

Trouble with permissions (Ubuntu 14.04, /usr, apt-get) [duplicate]

I believe I may have messed up. I'm setting up a rails server with passenger/nginx. Upon installing passenger's nginx module, I installed it to the directory where nginx currently resided (/usr/sbin/...
0
votes
0answers
73 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 ...
0
votes
0answers
48 views

Migrating Apache to Nginx problem

Ubuntu 12.04, I am trying to migrate to Nginx but i´m getting a 403 Forbidden message. Can anyone help me? This is my /etc/nginx/sites-available/default server { listen 80; root /srv/www; ...
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 ...
2
votes
2answers
489 views

Set different domain name on different port

I am new in Ubuntu. I have created my website in node. where I am using different port for different modules. like http://localhost:5555/ this is for admin, http://localhost:5050/ this is for ...
0
votes
1answer
799 views

Help with messy Nginx install (Trusty 14.04 Server)

I'm a bit of a noob here. I wanna try out nginx, but got some errors when installing: Reading package lists... Done Building dependency tree Reading state information... Done The following ...
0
votes
0answers
521 views

NGINX Auth support and MYSQL

I have installed NGINX server. The requirement is to allow only certain IP addresses to access this service. The list of allowed IP are stored in a MYSQL database. I was able to install and configure ...
0
votes
1answer
255 views

Nginx conf changes doesnt apply

I am using Nginx 1.8.0 on Ubuntu 12.04 with multiples domains, right now all my websites are online and working but I would like to change the port and others things in the conf of each domain (inside ...
1
vote
2answers
127 views

How to stop an Upstart Job(Service)

I thought this was easy but it does not seem to. Here is my system info: # nginx -v nginx version: nginx/1.8.0 # uname -a Linux ip-10-0-0-247 3.2.0-69-virtual #103-Ubuntu SMP Tue Sep 2 05:21:29 UTC ...
2
votes
1answer
314 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 ...
0
votes
1answer
193 views

configure two LAN cards on a local server and access a locally hosted web app on LAN and on internet

I have a ubuntu 14.04 LTS machine running as local server (I have a web app running on it). I have two questions as below. 1] How to configure two LAN cards on the above server ? 2] After ...
0
votes
1answer
95 views

In what folder does Ngnix gets installed in Ubuntu Server

I'm trying to understand the Nginx folder structure. In what folder (or folders) does Ngnix gets installed in Ubuntu Server? Thanks
0
votes
1answer
97 views

Bug with nginx and naxis, incompatibility problem

I'm making a Project about security aplications, and i'm having an incompatibility problem using nginx with naxsi and uwsgi modules on the same server. The Ubuntu version is 12.04 LTS.I think that ...
0
votes
1answer
418 views

403 Forbidden Error LEMP

I have a nginx server running with a wordpress and Ajenti setup working like a champ. As well as gitlab and owncloud which both work, just not used. But when I try to access a new setup, opencart, ...
2
votes
1answer
4k views

Cannot stop nginx service

It took me a while to find out, but as of some recent-ish update, I can't stop Nginx on any of my Ubuntu 12.04 or Ubuntu 14.04 servers. I run sudo service nginx stop, and I get nginx start/running, ...
0
votes
1answer
459 views

Unable to find where external IP address is being blocked (nginx, nodejs, linksys router)

So while it's not ideal, I currently have a web server running Ubuntu 14.04 behind a Linksys router. On the router, I have forwarded ports 22, 80, and 435 for SSH, HTTP, and HTTPS respectively. Now, ...
1
vote
0answers
86 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
2answers
1k views

nginx erreur it didn't open

please nginx in my server did start please follow me root@s45-****:/home/arabico# nmap 45.**** PORT STATE SERVICE 22/tcp open ssh 5/tcp open smtp 80/tcp open http Nmap done: 1 IP address (1 ...
1
vote
1answer
124 views

Ensure Services start on boot and perform an Security Audit

I'm quite new to Ubuntu Server (14.04) and I need to make sure Nginx/php-fpm/MySQL start up automatically on boot. Where do I need to check to make sure they are set to start on boot and how to set ...
5
votes
2answers
4k views

Nginx logrotate logs

I am running Ubuntu 15.04 and have a standard installation of nginx (apt-get install nginx) running. Everything is running fine but I notice that the nginx logs are being rotated but nginx carries on ...
1
vote
0answers
353 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
1answer
173 views

How to prevent Apache and use NGINX alone?

I've installed Nginx Mainline/Dev, PHP 5.6 from webupd8 repo and MariaDB 10. But with Software Updates/PHP update, Apache is being installed also. How can I prevent this? I just don't like apache ...
2
votes
1answer
2k views

How do you solve apt-get update error “Could not resolve”?

I just purchased server space with a VPS provider. The first thing I wanted to do is install the lastest version of Nginx. I followed the official instructions from Nginx as described here. Everything ...
0
votes
1answer
89 views

Apache User Permissions

I am trying to Create a permission set for my nginx Web Application as below; OS: ubuntu nginx User: www-data www-data user's primary group: manage # su www-data - $ groups manage Path to Webroot:...
0
votes
1answer
840 views

Testing nginx in a Docker container in on Ubuntu Core?

Followed Setting up Ubuntu Core on a KVM It shows you how to start the vm and forward ports back to your host machine. Followed Snappy Tour It shows you how to install Docker on Ubuntu Core ...
0
votes
1answer
819 views

Error with Node and Gulp

I am trying to install paperwork, and while following https://github.com/twostairs/paperwork/wiki/Installing-Paperwork-on-Ubuntu-14.10 I got near the very end when I get this. :/var/log/nginx# ...
0
votes
1answer
327 views

php-fpm changed user can't create pid and sock files

I want to execute php-fpm with a different user in my Ubuntu workstation, so I changed the /etc/php5/fpm/pool.d file according to some tutorials I found: user = myuser group = myuser But when I try ...
1
vote
2answers
9k views

How to install ffmpeg on ubuntu? [duplicate]

For transcoding video I need to use ffmpeg. I have tried to install but I have faced with problems. Is anyone that can help with this case or can anyone offer any weblink or guide where I can follow ...
2
votes
2answers
5k views

Forwarding Multiple port to Single port using nginx

I want to proxy pass all requests coming from a series of ports into single port. I am able to proxy pass a single port to another like so: server { listen 3333; server_name test.in *.test.in;...
0
votes
1answer
33 views

How do I remove nginx?

I have some problems with nginx configuration. I found the problem and I need to uninstall it. I used the commands apt-get remove nginx and apt-get purge nginx But the nginx is still ...
0
votes
1answer
385 views

How to zero downtime restart nginx server

How to send HUP signal and zero downtime restart nginx server using Node.js file
-1
votes
1answer
686 views

Connect to mysql on another device [duplicate]

I have two device on my network LB (192.168.1.10) and RP1 (192.168.0.20) I am wanting all the MySQL stuff to be hosted on the LB and all the web stuff to be hosted on the RP1. I have installed mysql-...
0
votes
1answer
232 views

How do I install nginx when a dependant package is broken?

Seems like a really simple question. But, I'm trying to create a docker container containing nginx and it breaks. My dockerfile contains... FROM ubuntu:14.04 RUN apt-get -qq update RUN apt-get -...
1
vote
1answer
3k views

service nginx start is ok but nginx not running

I have a ubuntu 14.04 machin with nginx, which was working fine until I last used my computer that was last night. Today when I started my computer and navigated to 127.0.0.1 it said server not found ...
1
vote
1answer
613 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 ...
0
votes
1answer
74 views

Redirecting depending on directory

On my current load balancer I have set it up to redirect to my cluster like this: upstream myapp1 { server 192.168.0.20; #RP1 } server { listen 80; location / { proxy_pass http:/...