Questions tagged [nginx]
Questions relating to Nginx, an open source Web Server and reverse proxy server.
913
questions
2
votes
2
answers
1k
views
Is Passenger Deprecated for Nginx versions above 1.14?
I updated nginx from version 1.14 to 1.18 (Ubuntu) on Ubuntu 18.04.
Doing so appeared to break passenger. So I uninstalled and attempted to reinstall the Open Source Passenger version via the ...
1
vote
1
answer
223
views
Website aside Mailu Docker image
I'm running a recent (V1.9) docker image of Mailu on Ubuntu server 22.04.
Now how can I run a website with some php besides this?
The Mailu server has an webmail page that runs on port 80 and 443, in ...
2
votes
1
answer
2k
views
libnginx-mod-http-lua at ubuntu 21.10
According this: https://packages.ubuntu.com/search?suite=all&searchon=names&keywords=libnginx-mod-http-lua
this module: libnginx-mod-http-lua just no longer available in newer version of ...
0
votes
1
answer
458
views
How to install ngx_http_ssi_module
default NGINX configuration not included SSI module (don't confuse with SSL)
in my case
# nginx -V
nginx version: nginx/1.18.0 (Ubuntu)
built with OpenSSL 1.1.1f 31 Mar 2020
TLS SNI support enabled
...
0
votes
1
answer
271
views
domain "refused to connect" running django app on digitalocean droplet
I want to deploy a site on a digitalocean droplet. So far, it works as expected when I hit the IP address 123.45.678.910, but when I go to my domain name, I see "This site can't be reached, my-...
0
votes
0
answers
125
views
Block ips from certain country and security
I have an Ubuntu Server 22.04 with Nginx installed along with a laravel application.
When I view the access logs I can see a lot of attempts from a certain country to exploit my server and application....
0
votes
0
answers
3k
views
gunicorn.service: Failed with result 'exit-code'
I want to use a digitalocean droplet to host a django site. I'm trying to get the app running on the server with gunicorn and nginx, I'm getting a 502 error when I try to hit the server from my ...
5
votes
1
answer
12k
views
How to remove application in ufw app list Available applications?
I want to remove Apache, Apache Full, Apache Secure in this list.
I have Nginx server. But, when I install phpmyadmin on nginx server, I had a problem. After that I saw Apache, Apache Full, Apache ...
1
vote
0
answers
4k
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: error:...
9
votes
6
answers
37k
views
nginx.service: Can't open PID file /run/nginx
I am on Ubuntu 18.10, running under vmware and unable to start the nginx service - I get the error "nginx.service: Can't open PID file /run/nginx".
I have compiled nginx from source using passenger. ...
0
votes
0
answers
410
views
Make Linux File System Case Insensitive
I deployed a website on Linux using NGINX as there server.
My files are in lower-case and are located at /susr/share/nginx/html
When I request for the files using upper-case it returns a 404.
Example: ...
1
vote
1
answer
877
views
Phusion Passenger: Cannot create a subdirectory inside instance registry directory /tmp
I'm currently deployed a Rails 6 application to an EC2 instance on Ubuntu 20.04. I deployed the Rails application using Phusion Passenger and Nginx. I get the following error when I try to access the ...
4
votes
1
answer
3k
views
php-fpm /status file not found
OS: Ubuntu 20.04.2 Webserver: Nginx 1.18.0 PHP: 8.0.5
I wanted to activate the /status page for PHP-FPM and tried the following:
In /etc/php/8.0/fpm/pool.d/, I added the line pm.status_path = /...
0
votes
0
answers
2k
views
can't initialize iptables table `filter': Table does not exist (do you need to insmod?) - iptables is not present
I am trying to install NGINX and Certificate by following this
enter link description here in WSL
But at the Step 5: Allow Nginx Traffic, I am getting error after the command sudo ufw allow 'nginx ...
0
votes
0
answers
112
views
Make port 80 globally accessible
I am trying to set up a VPS server (Ubuntu 22.04 LTS) bought from Microsoft. I am able to set up NGINX on my own by watching this tutorial. After setting up all the configs stated in the video I ran ...
3
votes
1
answer
4k
views
Portainer docker container behind Nginx reverse proxy
I have set up an nginx reverse proxy on an Ubuntu 22.04 server and I have successfully obtained ssl certificate from lets encrypt. The two keys are stored here:
/etc/letsencrypt/live/test.ddns.net/...
0
votes
0
answers
230
views
Forwarding https requests to http with Nginx
I'm trying to use Nginx on a Server A (Ubuntu 22.04) to:
Force the client to use https.
Forward requests to a Server B (also Ubuntu 22.04) so that they are http only. It has a Apache2 web server ...
1
vote
2
answers
99
views
How to do this (nginx) in apache2 .htaccess?
location /.well-known/webfinger {
add_header Access-Control-Allow-Origin '*';
return 301 https://mastodon.bitsnbytes.chat/$request_uri;
}
Is it possible to convert this Nginx into Apache2 ....
0
votes
1
answer
257
views
Why is apache2 still in my ubuntu after I have deleted?
So, I wanted to learn how to use the Nginx web server, and I wanted to try it out in my local machine, but I had apache2 installed in my laptop (ubuntu 20.04 LTS), so I tried to remove it using the ...
0
votes
1
answer
308
views
how to configure Varnish, Nginx Virtual Host & Letsencrypt SSL together
I need some help in configuration of Varnish Cache, Nginx, & SSL on virtual hosts. I am able to configure the Varnish & Nginx on the server IP (Default virtual host). When I access site at ...
0
votes
1
answer
150
views
How do I do this from nginx syntax in caddy v2?
How can I do this inside a reverse_proxy { ... } statement, done with nginx but I need to do it in caddy v2:
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $...
2
votes
1
answer
2k
views
Nginx doesn't support architecture i386
When I want to update my system sudo apt-get update the following error occur:
N: Skipping acquire of configured file 'nginx/binary-i386/Packages' as repository 'http://nginx.org/packages/mainline/...
0
votes
1
answer
250
views
Root Directory Keeps Changing Permissions (EC2), 403 NGINX Error
I am running a flask application using gunicorn/nginx. One of the issues I'm running into is that the permissions of my EC2 instance's root directory keeps changing permissions to drwxr-x--- which ...
0
votes
1
answer
723
views
Error on installing Passenger with Nginx and Ubuntu 22.10
I am using Ubuntu 22.10 and I get the following error when running the command sudo apt-get install -y libnginx-mod-http-passenger:
The following packages have unmet dependencies:
libnginx-mod-...
0
votes
0
answers
869
views
Unable to install Nginx my Ubuntu 18.04.3
I am a newcomer to setting up servers and can't seem to install nginx on my Ubuntu 18.04.3 (LTS) x64 server from Digitalocean. I've tried reading other entries but none of the solutions seem to work ...
0
votes
0
answers
2k
views
Failed to set session cookie Maybe you are using HTTP instead of HTTPS
I configure my phpadmin with nginx and I have a problem to login. my phpadmin version 4.9.5 my php version PHP 7.4.3 .
it work when I try to change $cfg['Servers'][$i]['auth_type'] in /etc/phpmyadmin/...
0
votes
1
answer
634
views
Error 502, phpinfo() directing to 7.4 when 8.1 is installed (File not found)
I'm setting up a web server. I have a freshly installed Ubuntu 22.04, nginx (welcome page works), and php-fpm which installed php8.1 and php-fpm8.1.
To test PHP, I created a /var/www/<my domain>/...
0
votes
0
answers
422
views
multiple workers looking on the same port: nginx mess!
I have exactly one test machine running different applications: a client and a server.
The client responds to the port 3000, while the server responds to the port 3001.
I setup nginx as a reverse ...
1
vote
1
answer
7k
views
Ubuntu 22.04 LTS, nginx version [duplicate]
I am a bit surprised by the version of nginx which comes with the new LTS version of Ubuntu.
Why is it only the 1.18 version for Ubuntu 22.04, it's the same version of Ubuntu 20.04 LTS?
Is there any ...
0
votes
0
answers
142
views
High CPU Usages After Migrating Wordpress in Ubuntu 20.4
I am using a WordPress site with Woocommerce in a managed hosting service. I have taken 8GB ram's new AWS t3.large ec2 instance and installed PHP and MariaDB 10.4. After migrating my website is ...
0
votes
1
answer
2k
views
nginx: [warn] server name has suspicious symbols with long domain redirect
What is the best way in Nginx to redirect two Long domains URLS, I would like to configure a redirect between two domains like this:
I'm sure this has been asked before, but I can't find a solution ...
0
votes
0
answers
432
views
Unable to connect to Linux Ubuntu Azure VM using public IP address
Unable to connect to Linux Ubuntu Azure VM using public IP address.
I have tried everything.
have 'ufw' active and allowed port 80
username@LinuxLR:\~$ sudo ufw status
Status: active
​
...
1
vote
0
answers
344
views
Ubuntu Server 22.04: connecting to a different router on home network doesn't allow IP assignment
My home network runs on 2 routers, with one upstream to the other. Recently I had to move my server to an ethernet port away from the one it was set up on, downstream to a different router. Said ...
1
vote
1
answer
17k
views
I got 502 Bad Gateway (nginx/1.14.0 (Ubuntu)) after updating server from 16.04 to 18.04.4 LTS
Firstly, I ran nginx -t and it did not give me any error. I then tried to check error.log file
I ran this command tail -30 /var/log/nginx/error.log, and after reading the error I discovered a wrong ...
0
votes
2
answers
961
views
Purging nginx didnt delete the configuration files
I just ran
sudo apt-get purge nginx
sudo apt-get autoremove
but the folder /etc/nginx/still exists, with all its content intact.
I guess I could rm the folder but that is not the point of my ...
3
votes
1
answer
9k
views
nginx shows 502 bad gateway error after upgrade to LTS 22.04.1
I just upgraded to the latest LTS version 22.04.1. Everything went smoothly and I was asked to reboot the server to finish the upgrade. Post this, when I try to access my webserver, I see the error ...
5
votes
2
answers
5k
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
vote
1
answer
285
views
Nginx virtual host does not work after erasing Ubuntu 16.04 LTS and installing Ubuntu 22.04 LTS
I had set up an nginx virtual host serving an angularjs SPA whose entry file is index.html on my Ubuntu 16.04 LTS pc, working just fine.
After doing a format and installing Ubuntu 22.04 LTS, (and ...
1
vote
0
answers
51
views
Unable to sync .var folder
NextCloud desktop client doesn't sync ~/.var folder properly. It only syncs one folder which is:
~/.var/app/com.nextcloud.desktopclient.nextcloud !
I tried to restart sync process but it didn't ...
0
votes
1
answer
106
views
Is this nginx.conf config ok to cache ssl with varnish?
server {
listen *:443 ssl http2 default_server;
listen [::]:443 ssl http2 default_server;
server_name site.com site.com;
ssl_certificate /etc/letsencrypt/live/site.com-...
0
votes
0
answers
21
views
22.04.1, get 'newer' nginx official package? [duplicate]
Upgraded to 22.04.1 (from 20.04) on a server having nginx 1.18.0 default package. nginx serves a few websites secured with wildcard certificates.
And I get this error (a lot, which does not seem to ...
0
votes
0
answers
474
views
have access to localhost:80 how to get access to localhost:8080 server is ubuntu on VirtualBox need to get access from host machine
Running Ubuntu server on VirtualBox with host-only and Nat networks
can successfully access to Nginx server running on port 80 by :80
getting error when trying to access to :8080/build/app.css,
wget ...
1
vote
1
answer
3k
views
How do I run multiple nginx instances on the same server?
How do I run multiple nginx instances on the same server?
This is useful when you need to stop a specific instance while leaving other instances running.
What should /usr/lib/systemd/system/nginx-...
2
votes
1
answer
6k
views
Installing NGINX with lua support [duplicate]
Installing NGINX version 1.22 on Ubuntu Focal 20.04 give me this error
The following packages have unmet dependencies:
libnginx-mod-http-lua : Depends: libnginx-mod-http-ndk (= 1.18.0-0ubuntu1.3) but ...
0
votes
0
answers
983
views
PHP on NGINX not working
I have an Ubuntu Server 22.04 where I just compiled nginx-quic, PHP has been installed as FPM, the PHP service is up and running, I created an info.php with phpinfo in it, nginx shows me the welcome ...
0
votes
0
answers
379
views
502 Bad Gateway
1I have got php 8.1 installed on my system:
$ php -ver
PHP 8.1.6 (cli) (built: May 17 2022 16:47:53) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.1.6, Copyright (c) Zend Technologies
with Zend ...
0
votes
0
answers
31
views
Gost Apahche2 Processes Can Not Be Removed
I have a 20.04 server installation. Once I installed apache2 http server and switch to nginx..
Before to do that I run the following command to clean uninstall
sudo apt-get remove --purge --autoremove ...
-1
votes
1
answer
622
views
could not build custom configured nginx
I am using UBUNTU server 22.04, openssl version 3.0.2 and I was trying to build custom configured NGINX as a proxy for mail server however, when I run 'make' it gives me error. For that i referred to ...
0
votes
1
answer
10k
views
GitLab 502 Bad Gateway Error
I'm trying to install GitLab on an Ubuntu 20.04.4 LTS server running from an Antsle Nano device. The server already had Nginx, PostgreSQL, and Postfix installed as a part of iRedMail, so I'm working ...
0
votes
1
answer
258
views
Disable Reload For nginx Service
There is a bug in Ubuntu 20.04 with nginx due to core libperl which causes a segfault when doing two consecutive reloads of the service (systemctl reload nginx).
Here is the bug: 1897561 - libperl.so....