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

Questions tagged [nginx]

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

1
vote
0answers
10 views

Can I connect 2 LAN Cards, and get 2 IPs, then use them in web server (nginx)

I'm having deal with Ubuntu Server 18.04 LTS. So the question is - can I buy second LAN card, and get 2 ip addresses? Will it work, and can I use them with NGINX?
0
votes
0answers
24 views

18.04: nginx is running but Unable to access

I installed nginx 1.12.2 on ubuntu 18.04 aws server for my Rails app. I checked the installation and nginx is running ok: ubuntu@ip-17-30-0-193:/opt/nginx/sbin$ ./nginx -v nginx version: nginx/1.12.2 ...
0
votes
0answers
31 views

Set up PHP on Nginx with Shiny server

I have limited knowledge with this and I've been tasked with setting up a Shiny server on our institution's VM. I followed this tutorial and it worked as intended. Now I've been tasked of setting up a ...
1
vote
1answer
23 views

How do I change the order in which systemd services are started up

Ubuntu 18.04 server on my home network I'm running: dnsmasq for DHCP and DNS nginx as a reverse proxy to some web applications (running on localhost and on other hosts) The nginx reverse proxy ...
-1
votes
0answers
40 views

Reverse proxy listening to multiple ports, Nginx [duplicate]

I want to proxy pass all requests coming from a series of ports into single port and different IP, using Nginx. I have the following config: server { listen 3333; server_name test.in *.test....
0
votes
2answers
109 views

cURL not Working after 18.04 Upgrade

I recently updated the system to 18.04 and it has hosed cURL. 18.04 installed PHP 7.2 but my nginx installation is using 7.1 FPM. When I run a phpinfo() from the web server, it shows the system ...
0
votes
1answer
41 views

403 Error from Nginx

I'm running an Ubuntu 18.10 server running Nginx as installed from the Ubuntu repository. When I try to reach the web server, though, I get a 403 error from Nginx. I'm sure there's a simple fix, but ...
1
vote
1answer
26 views

Nginx.conf overwriting?

We recently setup a Nginx Server and even if Nginx themselves say that users should place their configs in the subfolder conf.d, we decided to not do so. First and mainly because one does not know ...
0
votes
0answers
19 views

While running a cron job in nginx server getting segfault error

While running a cron job in nginx server getting error. kernel: [3487323.923351] php[16625]: segfault at 55c5d07da2d1 ip 00005598b3142b89 sp 00007ffcf5eebfc0 error 4 in php5.6[5598b2ec7000+3be000] I'...
0
votes
0answers
37 views

nginx : websocket failed to connect

I'm working on Nginx listening only on 443 port. Behind this, I have another internal server listening on http and port 8090. I made the redirect and can access to its web server from internet but ...
3
votes
1answer
61 views

Configuring zz_overrides.ini in Apache versus in Nginx

If you work with Nginx and you want to override your PHP settings from an external file that won't get deleted or changed in updates, you can create a /etc/php/*/fpm/zz_overrides.ini and put your PHP ...
0
votes
1answer
26 views

Joomla Configuration File writing issue with Ubuntu 16.04 and nginx

I keep getting errors from joomla saying it can't write to. configuration.php An error has occurred. 0 Could not write to the configuration file I added recommended permissions to folders 755 and ...
1
vote
1answer
194 views

Nginx Reverse Proxy not redirecting?

Update I think it narrows down to this: For some reason the host name matters to Nginx when it's trying to figure out whether to proxy the request. If the host name is set to git.example.com the ...
1
vote
0answers
51 views

Cannot telnet port 80 remotely, nginx

MY problem is: I can telnet to port 80 locally, but not from another computer. The following is what I did: Disable firewall. $ufw disable Execute the following command: $netstat -tlpn |grep ...
0
votes
0answers
31 views

Nginx+Gunicorn+Flask don't work on 81 port

I can't run my service on 81 port on VPS Ubuntu Server 16.04. /etc/hosts/: 127.0.0.1 localhost 93.38.139.10 test.com test # The following lines are desirable for IPv6 capable hosts ::1 ...
0
votes
0answers
201 views

Can't connect to MS SQL Server

I am trying to use Nginx+PHP7.2+MS SQL Server driver but it doesn't work. I have installed packages by this doc but apache2 installation (I need Nginx). And I've added extensions to /etc/php/7.2/fpm/...
1
vote
0answers
216 views

VirtualBox v 5.2.18 - Ubuntu 18.04.1 LTS - vboxadd-service and nginx not loading

I would like to ask for some support :) I'm still an Ubuntu newbie however I've been running an Atomic-Toolkit for some time and, so far, it's been working without any issues. I'm using it for all ...
0
votes
2answers
1k views

How Can I stop Apache2 on Ubuntu 18.04?

I Can't stop apache2. I want to use nginx, therefore,I want to remove/stop apache2 but I can't. I've tried all the methods on this Link , but when I refresh http://127.0.0.1/ i still see the apche2 ...
0
votes
0answers
9 views

Best location for the source file of a web app

I'm having an NGINX server, that I use in combination with Gunicorn to deliver a python web app. At this moment the python web app is under home/user_name, but I'm not sure if this is the best place(...
0
votes
0answers
42 views

Installing GitLab CE on Ubuntu 18.04 - Sign in page can't load resources

Background Information I'm trying to install gitlab ce on ubuntu 18.04. General installation steps that I took: installed and configured postfix. Tested to make sure it's working like this: https:/...
0
votes
1answer
196 views

Php7.1-fpm php.ini not changing at all

When I code this in my php file: echo php_ini_loaded_file(); The output is : /etc/php/7.1/fpm/php.ini Then I edit the php.ini sudo nano /etc/php/7.1/fpm/php.ini And change my memory_limit to ...
0
votes
1answer
245 views

Ubuntu 18.04 block countries access to my server (ssh & nginx)

Is there a way I can block entire countries by country code (such as RU and CN)? Currently I have a UFW firewall rule enabled for every IP that tried to do shady stuff (logging in on SSH, searching ...
0
votes
0answers
22 views

Botched my Nginx install, making it worse

having an issue. Trying to do Owncloud install and Nginx is not working. Followed directions, but I missed something is all I can come too. Here is what I have from my /etc/nginx/sites-enabled/defualt....
0
votes
0answers
98 views

Nginx not serving Etag on content even with gzip diabled

We've got a Django site being served through Nginx and uwsgi on a Ubuntu 16.04 server, and I need to get caching working for an API endpoint that serves images and other content to authenticated users....
-3
votes
1answer
105 views

Building nginx from source error [closed]

I try to build and install nginx from source, everything seems ok but when i try to config the nginx source before build Im getting error. Im using ubuntu 18.04.1 LT, my config command ./configure --...
2
votes
1answer
4k views

How to install PHP-FPM on Clean Install of Ubuntu 18.04 Server

I am trying to install a LEMP stack on a clean install of Ubuntu Server 18.04. I was able to get through installing everything except php-fpm. It does not appear to be in the package repository even ...
2
votes
1answer
112 views

apt-get upgrade didn't update PHP but updated its php modules

I performed sudo apt-get upgrade and was expecting to see that PHP version update from 5.6.30 to 5.6.37. To my surprise, php version didn't upgrade but its modules did. I still see 5.6.30 in ...
1
vote
1answer
341 views

Running multiple sites Nginx on Ubuntu 18.04

I'm beginner with Nginx (also using PHP 7.2) and I have no idea how to access multiple sites using separated folders. So as default folder I set /home/user/php;. There I have few folders named: ...
0
votes
1answer
177 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
32 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
1answer
565 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
93 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
586 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
17 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
126 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
301 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
158 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
82 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
12 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
20 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
239 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
25 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
19 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
98 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
332 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
234 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
76 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
50 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
291 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 ...