Questions tagged [nginx]

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

Filter by
Sorted by
Tagged with
0
votes
0answers
6 views

How do I implement React url routes so they don't redirect to 404 with nginx

I have a react app on a digitalocean droplet running Ubuntu 18.04.3 I have an nginx default file in etc/nginx/sites-enabled The file is like this: upstream my_upstream { server 127.0.0.1:...
1
vote
0answers
5 views

Nginx 403'ing directories

I am running nginx/1.14.0 on ubuntu 18.04 and my directories keep 403'ing. site config server { listen 80 default_server; listen [::]:80 default_server; root /var/www/html; index index.html ....
0
votes
0answers
57 views

What is /var/tmp/php-fpm ? This command is consuming high % of CPU

Somebody kindly explain what kind of a file is /var/tmp/php-fpm ? And its uses. This command is consuming high CPU% when I checked using top command. File is getting recreated even if I remove it.
0
votes
0answers
6 views

nginx responds to public IP address using correct root directive but responds with apache2 default root using domain name

My Ubuntu 18.04 server is running nginx and apache2 using this guide I have my site-specific nginx config file /etc/nginx/conf.d/my_domain.conf. Inside the file, I have: server { root /srv/...
2
votes
0answers
176 views

Enable TLS 1.0 and TLS 1.1 on Ubuntu 20.04

I have recently reinstalled my server to Ubuntu 20.04. A support call came in and after a few days, I managed to notice that TLS v1.0 and v1.1 were not being provided by my web server, nginx. The ...
-1
votes
1answer
11 views

Sitemap on wordpress yoast seo with nginx webserver giving 404 error

I installed yoast seo on a wordpress website that is on nginx webserver, but when I ckicked xml sitemap link it is showing 404 not found error. Any suggestion on solving this?
0
votes
0answers
25 views

nginx service repeatedly, stopped working after a random certain time

Please assist me to solve this error permanently. I don't know why it occurs again and again. After command's sudo service httpd stop and then sudo service nginx start it's solved for few day's such ...
0
votes
0answers
12 views

Ubuntu VestaCP redirect all IP and WWW traffic to Non WWW domain name

I am very new to the world of servers, so I hired a vps to practice a little, but I have encountered a problem that escapes my knowledge and I would like to know if you can help me or explain if what ...
0
votes
0answers
10 views

Unable to access nginx server on personal PC from phone connected to the same network

I have a running nginx server on my PC. The network IP of my PC is 192.168.1.2. The PC is connected (via cable) to the same router as my phone (the phone is connected via WiFi). The network IP of my ...
0
votes
0answers
23 views

Nginx+Docker+PHP-FPM SSL error

I have created a self signed SSL certificate , but I'm facing with this error in my NGINX error log when I try to access to the site via https : 2020/05/05 12:49:49 [crit] 6#6: *14 SSL_read() ...
0
votes
1answer
32 views

Updated Ubuntu packages, now Apache won't start: (98)Address already in use: AH00072:

I'm running a Vesta Control Panel. After I updated Ubuntu sever packages and restarted the server, my Apache wouldn't start. When I checked what is occupying the port 80, it was nginx. How do I fix ...
0
votes
0answers
24 views

docker run command ends up in : nginx: [emerg] unknown directive “events” in /etc/nginx/nginx.conf:1

I have installed nginx-extras from Ubuntu bash shell in my desktop Windows 10 O.S. The is required to spin up a docker container for an ASP.NET Core 3.1 Blazor web assembly application for serving the ...
0
votes
1answer
39 views

Running a cron that first

I need to run the following set of commands as a cron that would stop my nginx server, renew the letsencrypt certificate and then start the server again, but after the second command is over. I have ...
0
votes
0answers
27 views

mydomain.com redirected you too many times. ERR_TOO_MANY_REDIRECTS

I was trying to Secure Nginx with Let's Encrypt on Ubuntu 16.04. mydomain.conf file before obtaining an SSL Certificate server { server_name mydomain.com www.mydomian.com ; # Tell Nginx and ...
0
votes
0answers
13 views

react-router not working with nginx and pm2 on ubuntu 18.04

I have build an app using react and deployed it on ubuntu using pm2 and nginx. I am using react-router for routing. This is how my project file configuration looks like i created a symbolic link to ...
0
votes
0answers
45 views

UFW kill switch with exception for port 180

So, I have a Ubuntu Server 18.04 that is connected to my home network, but uses a VPN. In order to block internet access, I blocked all connections of UFW like this: - First all IPv6 connections were ...
0
votes
1answer
135 views

How to upgrade to latest stable nginx on Ubuntu 18

I have a linode server with virtualmin that hosts several of my domains. I am trying to find a guide on how to upgrade to latest stable nginx on Ubuntu 18 but the only article i found in medium ...
0
votes
1answer
28 views

How to add multiple sites in nginx on localhost

I'm using Ubuntu 18.04, and I have just finished installing LEMP on my local machine. I'm having trouble figuring out how to host multiple sites on nginx. For example, I have a site called "test" and ...
0
votes
1answer
19 views

Nginx server won't start on an Ubuntu machine on Digital Ocean

so i am new to this i am trying to host a website on Digital Ocean the website worked fine before they suspended it due to overdue payment and once that solved i couldn't configure it. i tried ...
0
votes
1answer
49 views

Can I stream video with nginx module?

I want to stream video from nginx to my browser. The videos are generlly in .mp4 format, but I can transcode either on the fly or in advance with avconv or ffmpeg/whatever. Is there a module I can ...
0
votes
0answers
18 views

how to fix this nginx error failing (no syntax error in config file)

My nginx wouldnt seem to start. It states that I have an authentication error but I have no idea how to fix this. Any help will be appereciated. This is my sudo nginx -c /etc/nginx/nginx.conf -t ...
0
votes
0answers
35 views

Need to change domain name (FQDN)

I recently installed Ubuntu 19.10 and created SSL certificates for mydomain.com succesfully on nginx. Now I have realized I need to change it to mycompany.com but it doesn't allow me. I tried certbot ...
0
votes
1answer
18 views

Crontab doens't have effects

I'm running the following command using crontab on Ubuntu 18.04. I can see inside /var/log/syslog that the command is performed, but it has not effect. The command is performed but it has not effect: ...
0
votes
1answer
20 views

Cannot access server by url

I setup an ubuntu server with nginx. hostname tleis.nl. I can access the url locally www.tleis.nl. From outside the server I can ping the server tleis.nl. I can also access the nginx website via its ...
0
votes
0answers
117 views

404 Not Found displaying after nginx server setup

When I hit http://m23.local/ then below message coming: 404 Not Found nginx/1.14.0 (Ubuntu) Here is host file: upstream fastcgi_backend_m23 { server unix:/run/php/php7.2-fpm.sock; } server ...
0
votes
1answer
37 views

Nginx gives 404 error on specific pages only

My website hosted on ubuntu 16.04 and nginx/1.10.3 My problem is, that specific pages return 404, I am pretty sure the issue lies with nginx settings where I screwed up somehow. Here is my website ...
0
votes
1answer
28 views

Using environment variables with Node.js

I am trying to prepare my app for production on a ubuntu running nginx. I have been using the dotenv npm package during development, but need a more stable and secure method for production. I have ...
0
votes
2answers
76 views

PHP 7.2-FPM error

Honestly this is so frustrating . I don't know what am i doing wrong. I want to set up a virtual host/service block. When I browse www.example.com , it should show me This is a test page www.example....
0
votes
1answer
64 views

https of subdomain redirects to main domain - certbot on nginx

I am running nginx and would like to ask you help in explaining how to set up a correct configuration. Im not expert of server maintenance and would like to avoid to misconfigure the running sites. ...
0
votes
1answer
34 views

Grep from nginx server files, but exclude www.domain.tld

I have a command in a bash script like this, to get me an array of all the domains on my webserver. domains=($(grep -rnw '/etc/nginx/sites-available/' -e 'server_name' -l | xargs grep -e 'server_name'...
0
votes
0answers
20 views

How to run two react app in Ubuntu/Nginx?

I have two react application configured in Ubuntu/Nginx Front-end react application Backend react application Front-end application configured correctly running (PORT:3000) But backend react ...
0
votes
1answer
95 views

nginx fails while the website somehow still works

Description I have built my Django3, gunicorn, nginx, Ubuntu 18.04, Digital Ocean project based on this guide. I only had 1 problem that it does not shows the CSS and all other static files like ...
0
votes
0answers
13 views

Problem setting up fcgi and php using nginx

Hey guys so this is my nginx.conf https://bpaste.net/TGAA and at the moment when i point my browser at cloud.server.com it offers to download the php file instead of launching the application. Could ...
0
votes
2answers
49 views

updated Ubuntu webserver not working

I just updated an Ubuntu 16.04 server to 18.04 using sudo do-release-upgrade. Nginx is the webserver. Sites report 404. During install, I chose to keep the currently installed version. $ ps aux | ...
0
votes
1answer
125 views

libcrypto.so.1.0.0: no version information available (required by /usr/sbin/nginx)

My server keeps running but suddenly jumps into error as /usr/local/openssl/lib/libcrypto.so.1.0.0: no version information available (required by /usr/sbin/nginx)
1
vote
0answers
31 views

Hash Sum mismatch for “http://archive.ubuntu.com/ubuntu bionic/main amd64 libwebp6 amd64 0.6.1-2”

I am trying to install nginx on a brand new ubuntu installation from vagrant ubuntu/bionic64 box. I have tried the following commands (as sudo) in order: apt update - result apt -y install nginx - ...
0
votes
0answers
19 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
1answer
112 views

Nginx as SSH gateway?

I have a server which serves some other systems via LXD, using Nginx as reverse proxy for accessing them on HTTP. Now I want to give shell access to one of them to a friend. In fact, I want to be ...
1
vote
1answer
20 views

Granting more rights to www-data

I've got a .NET Core 3.1 application running on my Ubuntu 18.04.4 LTS box. Right now, it runs with the account www-data. Although this may be a group too, not sure. I understand this is a "...
0
votes
1answer
75 views

Nginx redirect to 8080 without DNS

Is it possible to perform a proxy_pass with nginx without having a DNS? I was able to configure the SSL in the servers that I have the the DNS, which are the QA and Production environment in my ...
1
vote
1answer
1k views

I got 502 Bad Gateway (nginx/1.14.0 (Ubuntu)) after updating server from 16.04 to 18.04.4 LTS

first I run nginx -t and it did gave me any error. then I tried to check error.log file I run this command tail -30 /var/log/nginx/error.log. And after reading the error I discover a wrong path unix:...
1
vote
2answers
186 views

Django Project Runs With runserver, But Not With Gunicorn and nginx

I have a django project installed on a Digital Ocean droplet with ubuntu 18.04.3(LTS). I've installed python 3 and Django 3. In my virtual environment, the command python --version returns 3.6.9 The ...
0
votes
0answers
70 views

Docker Nginx reverse proxy not forwarding port

The title is my best guess after hours of investigation. I installed AzuraCast via Docker, which came with Nginx and I need a directory to make downloadable files available. Part of my headache is ...
0
votes
0answers
27 views

Nginx Error /var/run/nginx.pid failed to load (connection timed out)

so I've installed Nginx and php7.0-fpm in my server which has this domain https://doggoboop.com no i am not able to restart or start nginx. whenever i reboot webserver, site works for like 5 mins but ...
0
votes
0answers
38 views

mkdir with php in ubuntu server

I have a laravel application in ubuntu19.10 server and configured lemp stack on the server. I am having issue with mkdir() command. The upload_image() function creates some sub folder in public/...
0
votes
1answer
86 views

Site unreachable + URL check: timeout

During installation of a software in the PC I got problems with grub system in Ubuntu 18.04.4 Desktop, which I resolved copying, from an installation iso image, the /bin/bash folder: Missing operating ...
0
votes
1answer
23 views

How to monitor paths of incoming network requests directly?

I am running ubuntu server 18.04 with nginx and php-fpm 7.2. I have multiple domain names hosted on the same server. How can i monitor the incoming traffic on all the websites on my server using ...
0
votes
1answer
37 views

Allow web users to write files into folder

I have a web site running on Ubuntu server with Nginx installed and I made profile picture upload in Django. However when I try to upload a new profile picture it says [Errno 13] Permission denied: ...
0
votes
1answer
70 views

Nginx doesn't serve CSS

this is my current Nginx config and my problem is the 404 page doesn't serve the CSS, it serves the CSS if i put the CSS files into /var/www/testdoamincom, but it doesn't server in any other case, is ...
0
votes
2answers
190 views

Can’t get TLSv1.3 to work with nginx 1.14.0 and OpenSSL 1.1.1 on Ubuntu 18.04.4

I’m going nuts here to trying to figure out how to enable TLSv1.3 on my nginx server. Based on my research, my setup should support it: # lsb_release -a No LSB modules are available. Distributor ID: ...

1
2 3 4 5
15