Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange
Join us in building a kind, collaborative learning community via our updated Code of Conduct.

Questions tagged [nginx]

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

0
votes
1answer
38 views

Problems when using NGINX and SSL

When adding SSL certificate to the page and trying use command: This is the configuration I'm using: server { listen 80 default_server; server_name piotrzak.design; rewrite ^/...
0
votes
0answers
13 views

I have an Ubuntu 18.04 server with NGINX,MYSQL website, I want to add Email

I setup my website on a Ubuntu 18.04 server with Nginx, MySQL and i already used let's encrypt for the ssl certificate. Now that my website is up and running. I'm wondering how i can add email to my ...
1
vote
0answers
46 views

nginx 502 bad gateway for 1 minute after restart

Everything worked fine until I update PHP to 7.2 For a minute after server reboot nginx throws 502 error. Nginx error log says if listening to unix:/var/run/php/php7.2-fpm.sock: [crit] 671#671: *2 ...
2
votes
0answers
20 views

IREDMAIL - Install on Ubuntu with Existing Webserver - PHP,NGINX,MYSQL

I'm hosting my website on a VPS with an existing webserver configuration: PHP, NGINX, MYSQL. The first time I installed iredmail, I followed this tutorial. It ended up overwriting all my nginx/site ...
0
votes
1answer
36 views

Nginx starts to downloading index.php instead executing

At my hosting control panel I set up my server api for server name (let it be dev.domainname.com). dev.domainname.com config: server { listen 80; #listen [::]:80; root /var/...
0
votes
1answer
14 views

create link to a serve a website in nginx

I am wondering if it is possible to create link to serve a website ? I know that we can use : ... server_name 123.123.123.123; ... root /var/www/test; but is it possible to use something like: ...
1
vote
0answers
20 views

Why so many processes running on my Ubuntu Xenial (16.04) server?

I'm a newby server admin. In my server I have 4 website running on nginx. Sometimes it gets slow and I have to reboot the machine. Soon I will deploy websites for my clients and cannot afford to risk ...
1
vote
2answers
50 views

Installing any package problem

does anyone knows whats problem? i didnt install nginx but when i try bellow command or apt-get upgrade or alot other things... it get error which seems to be about nginx!! my ubuntu is 18.04 and i ...
1
vote
1answer
40 views

Unable to access Docker NGINX on 18.04 LTS

I'm running Ubuntu 18.04 LTS. > docker-version Docker version 18.06.0-ce, build 0ffa825 I run: > docker run --name my-nginx-1 -P -d nginx > docker port my-nginx-1 80/tcp -> 0.0.0.0:...
1
vote
1answer
43 views

How to install nginx/development on 14.04?

Until recently I've been using ppa:nginx/development but suddenly I can't install the nginx version from there anymore on 14.04. https://launchpad.net/~nginx/+archive/ubuntu/development also states: ...
0
votes
0answers
6 views

How to properly configure Nginx for a Rails application on Ubuntu 16.04

I have a rails app on my Ubuntu 16.04 server and was wondering how I'm supposed to configure the nginx files to get my app to work? Using: Passenger, Nginx, and Let's Encrypt on Ubuntu 16.04 My ...
1
vote
0answers
15 views

restrict a directory in Nginx

i need to restrict "upload" directory in Nginx server i tried this location ~ /uploads/(.*)$ { deny all; return 404; } and i have disabled it also it didn't work in both cases.
0
votes
0answers
50 views

Problems with adding the repository for certbot

I want to install Nginx together with Let's Encrypt on Ubuntu 18.04 and already installed this package: software-properties-common When I try to use the command: sudo add-apt-repository ppa:certbot/...
0
votes
0answers
19 views

Nginx Configuration for multiple codeignitor site under same tld

I have a site nginx.asdf.com:8082 which contains a CMS built using PHP (CodeIgnitor framework). I also have a similar site running under nginx.asdf.com:8082/ghjkl/. My Nginx configuration works for ...
0
votes
0answers
13 views

REST service not accessible on Ubuntu 18.04

I have a REST service running on a Ubuntu 18.04. It fails to respond to outside requests. NginX pages hosted on port 80 are accessible, and the service requests are found in NginX log file. I then ...
0
votes
0answers
20 views

Configuring nginx web services for outside access

I have two web services created with ngrest and pistache. They are both inaccessible from another computer when using 192.168.1.XXX:port. Adding listening port to /home/USERNAME/nginx-build/nginx-1....
0
votes
1answer
124 views

Ubnt 16.04 - NGINX - LetsEncrypt - 502 Bad Gateway for first time users of website

I set up a web server for two Wordpress websites. Installed NGINX, PHP, Mariadb, certbot for SSL, etc. The problem I´m facing is that if I visited the website earlier than Certbot´s config, I can ...
1
vote
1answer
45 views

NGINX virtual subdirectory is serving PHP files as downloads

My server answers to the following virtual subdirectory paths: www.domain.com/us www.domain.com/ca www.domain.com/fr-ca www.domain.com/spa Each of these is an alias for www.domain.com. If I attempt ...
0
votes
0answers
36 views

unable to locate package and updation problem [duplicate]

When I try to install any package, it shows as E: Unable to locate package nginx So that I updated as apt-get update.then it shows as Some index files failed to download. They have been ignored, or ...
0
votes
0answers
24 views

Configuring nginx/ngrest on Ubuntu virtual machine

I have a Ubuntu 18.04 VM running on Windows 7. The VM is configured for Bridged Adapter from Virtual Box. It can go online, has the same IP scheme IP with the local network, and can be pinged from ...
0
votes
0answers
30 views

Nginx in default could never return 200 OK

I want to know the best practice for Nginx setup in the case bellow. I created the environment of nginx(1.15.1) on ubuntu(18.04) on docker(18.03.1-ce) on lxc(2.21 security.nesting=true) on linuxmint(...
0
votes
1answer
61 views

nginx wont run php in html

I have been trying for weeks to get Nginx, and php7.2 to work together. I want to write html files, with embeded php tags. php files work splendidly. HTML files work as well. but when I try to embed ...
0
votes
0answers
78 views

How to configure docker registry with nginx

I configure a private docker registry server to store images. I am Ubuntu 18.04. I have a problem in the interaction between the nginx container and the registry container. Very slow speed when ...
0
votes
0answers
82 views

nginx/php-fpm file uploading issues

I'm running multiple Wordpress sites on a single Ubuntu VPS with nginx. Just today I am no longer able to upload media files on any of the sites on this server. I can see the progress bar move up to ...
0
votes
0answers
90 views

I'm not able to install nginx 1.15 with PageSpeed module

I'm running nginx 1.14 on Ubuntu 16.04 and I just installed 1.15 following the instructions from this Google page. nginx -v still outputs v1.14 question is...how do I enable the new version with ...
0
votes
1answer
80 views

Can't increase upload_max_filesize

I am having problems increasing my size limit to upload files into my wordpress site. I am running 18.04 on a vps server with with Nginx, MariaDB and PHP-FPM. I checked php by making a file to call ...
0
votes
0answers
24 views

Does this sever have rtmp?

I have an Nginx server running, with php, and I would like to keep it running, but I am also looking at setting up an rtmp streaming service. How can I tell if the nginx installation already has an ...
0
votes
1answer
166 views

Apache and Nginx Crashing, Port 80 Being Used, Can't Get Either to Start/Stop/Uninstall

I've been trying to set up a dev environment on a new Ubuntu 18.04 installation, and I'm running into an issue with Nginx and Apache. First, I installed Apache2. Everything seemed in order. Then I ...
0
votes
0answers
83 views

I got an error message when I execute the command 'sudo nginx -t '

I got an error message when I execute the command as root: nginx -t Error: nginx: [emerg] bind() to 0.0.0.0:80 failed (13: Permission denied); And There is nothing happend when I execute the ...
0
votes
1answer
60 views

php -v still shows old version

So I am trying to updated from 7.1.1 to 7.1.17. I ran: sudo apt-get install php7.1 and got 7.1.17-1+ubuntu16.04.1+deb.sury.org+1 but when I run php -v in the terminal I get PHP 7.1.1-1+deb.sury....
0
votes
0answers
29 views

Only see a black screen instead of game

I'm using httrack to get the code from a game at kizi.com and trying to host it with nginx however, when I go to my website I see a black screen, the screen is also pretty big so I can scroll left ...
0
votes
0answers
387 views

nginx: Address already in use

I have a low end self managed VPS that I maintain using Ubuntu 16.04 which I use to run a small site using nginx. There was a service interruption and after this was repaired the site was offline and ...
1
vote
1answer
35 views

Rsync not creating subfolders automatically within same origin and destination paths on different servers

I am running this rsync via cron hourly to sync my websites automatically to the secondary servers from the primary. rsync -avz --del -e "ssh -i ~/.ssh/user-key -pXXXXX -o StrictHostKeyChecking=no" /...
0
votes
1answer
210 views

Upgrade php to 7.2 in ubuntu + nginx Vestacp server

I followed Online tutorial and I installed php 7.2 php -v in terminal gives following output PHP 7.2.5-1+ubuntu16.04.1+deb.sury.org+1 (cli) (built: May 5 2018 04:59:13) ( NTS ) Copyright (c) 1997-...
0
votes
1answer
27 views

can't remove ngnix

I want to get rid of nginx as it gives me troubles with apt-get but I can't get rid of it, I keep getting: $ sudo apt remove nginx Reading package lists... Done Building dependency tree ...
2
votes
0answers
37 views

NGINX ignores server_tokens option

I'm trying to hide my nginx server signature by adding server_tokens off; option to nginx.conf file. After reloading nginx, it seems to fully ignore this option! How can I hide the server signature?
0
votes
1answer
364 views

http://domain/phpmyadmin login page not loading - error 403 forbidden

http://domain/phpmyadmin login page not loading - error 403 forbidden Setup Default Ubuntu 18.04 server added nginx & php using apt-get Installed the latest version of phpmyadmin manually to ...
0
votes
1answer
240 views

Nginx test failed, service not starting

nginx did not start upon system reboot. tried to manually start it in the terminal. received the following errors. what do they mean, and how do I fix it so that nginx starts? ● nginx.service - A ...
0
votes
0answers
16 views

Nginx transmission url

I have Nginx acting as a proxy for the transmission-daemon service on my server with hostname "estuary". My transmission.conf file is as follows: server { server_name transmission.estuary; listen [::]...
0
votes
1answer
417 views

How do I create a YAML file in order to set a static IP for my /etc/netplan directory? Server 18.04 LTS [duplicate]

I currently do not have any YAML files in my /etc/netplan directory than I can edit in order to set a static IP for my Ubuntu 18 server. I have tried: sudo netplan generate It returns no errors but ...
0
votes
0answers
71 views

Cannot making Passenger + Nginx work

I am trying to install the Passenger + Nginx on Ubuntu 18.04 using rvmsudo passenger-install-nginx-module --auto --prefix=/etc/nginx --auto-download --languages='ruby' It installs and validations ...
0
votes
0answers
28 views

Why do I have to update my system variables after apt update?

I'd like to say upfront that I'm a total noob and I have been setting up my nginx/NodeJS on Ubuntu 17.10 on DigitalOcean for the last week. This is the second time I've ran into this issue. I have ...
0
votes
1answer
125 views

Nginx stealing port 80!

I'm getting a bit frustrated here. I want port 80 for apache2 but nginx has stolen that port apparently. I cant find where to remove this, the config for nginx say its listening to port 8000 and 8001 ...
0
votes
2answers
1k views

Nginx RTMP module on Ubuntu 18.04

Installing Nginx on Ubuntu 18.04 was easy peasy, adding the RTMP module has resulted in less sucess for me. Preferably up-to-date version. I have been using the Nginx RTMP on Previous Ubuntu versions ...
0
votes
1answer
82 views

How to use one port for two applications?

I had https on my website very well until recently that my government decided to block almost every VPN protocols and right now only openconnect works correctly. Therefore I installed and configured ...
0
votes
1answer
268 views

Run Pgadmin4 behind reverse proxy

I'm trying to run pgadmin4 behind an Nginx reverse proxy but I'm having an issue because I need for pgadmin to know it is at myhost.com/pgadmin and not simply at myhost.com.... or at least I think ...
1
vote
1answer
50 views

migrate server correctly with letsencrypt

I am trying to migrate a server (from old ip to a new ip) and link to a domain name. I tried to copy the entire letsencypt folder from old server to new server along with permission. I got a warning ...
0
votes
1answer
304 views

Nginx failing to redirect to docker container

I have the setup docker-compose: nginx: restart: always build: nginx/. // loads nginx:alpine image + copies the config ports: - 80:80 - 1337:1337 links: ...
0
votes
0answers
178 views

“rm: cannot remove directory” question (i seems to have all rights)

I have a folder, which was created by the Docker, but nginx seemed to have no access for it. When i'm trying to access (delete) it manually, i'm getting rm: cannot remove '0': Permission denied ...
1
vote
0answers
111 views

Ubuntu 17.10 - Nginx Hosts not working

I'm using Ubuntu 17.10 and have installed nginx. I already made the change on php.ini cgi.path_info=0 and have added this on etc/hosts 127.0.0.1 test.app Then I saved and restarted nginx, but when ...