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]

nginx (pronounced “engine x”) is a lightweight web server and a reverse proxy server

0
votes
0answers
7 views

MongoDB log ownership being hijacked by nginx

I've been running into this problem occasionally where /var/log/mongodb/mongod.log's ownership gets changed to nginx, thus mongod will fail to initialize. I've checked the crontabs and nginx config ...
0
votes
1answer
21 views

Is it necessary to specify VIRTUAL_HOST when using an nginx proxy (with docker containers)?

I've been looking at a lot of tutorials on docker containers, microservices and nginx proxy. One thing that really caught my attention is that in the docker-compose.yml file, the service that I'd want ...
0
votes
0answers
25 views

FFmpeg RTSP to HLS Conversion is causing random freezes and errors

So, I have a command that converts RTSP to HLS for me: sudo ffmpeg -fflags nobuffer -rtsp_transport udp -i rtsp://admin:'password'@10.2.10.201/video1 -vsync 0 -copyts -vcodec copy -movflags ...
0
votes
1answer
7 views

Error installing nginx with passenger on Debian 9

I am in the process of upgrading a Debian installation to version 9 and I am facing problems getting nginx with passenger to run. The issue is with trying to install libnginx-mod-http-passenger, ...
0
votes
0answers
12 views

Reverse proxy to localhost with https

I have an Ubuntu server. I used certbot to make my nginx web server use https. I force all connections to redirect from port 80 to port 443. Recently I installed MadSonic, a music server that uses ...
0
votes
0answers
30 views

Setting up trustworthy local SSL certificate for Nginx [duplicate]

I have a local deployment of Nginx to dev-test a website with self-signed certificate and I am constantly getting into Chrome's: Your connection is not private NET::ERR_CERT_AUTHORITY_INVALID ...
0
votes
0answers
8 views

Office 365 Sway with Nginx Reverse Proxy

I have an Office 365 Sway website that I'd like to reverse proxy. I know it's possible since there are various microsoft.com sites which use Sway, but under my current configuration it doesn't work ...
0
votes
0answers
48 views

How to make a proxy cache open several connections?

I've installed a proxy cache based on https://github.com/bntjah/lancache . Some things are different in my setup, i'm using a second server for DNS which is using DNSmasq. The problem is, that non-...
1
vote
1answer
20 views

Access web server behind OpenVPN client

Okay so: I have a machine running an OpenVPN client (it's connecting to a server elsewhere, the machine does not act as the server) The machine also has an Nginx web server When the OpenVPN client ...
0
votes
0answers
19 views

Nginx Apache Reverse Proxy Redirects to the Wrong Directory

I followed this guide to set up Nginx with reverse proxy for Apache. I'm having trouble getting my domain name to redirect to correct page. I have several subdomains as well, and some of them redirect ...
1
vote
1answer
11 views

Nginx default configuration file issue

I'm using NGINX as a proxy server at port 80 and 443 for SSL, Apache at port 8082, and Varnish at port 81. The reason for using NGINX is to send HTTP and HTTPS requests to Varnish and then Varnish ...
0
votes
1answer
37 views

Unable to access nginx forwarded port to AWS remote instance

I have an nginx running on my local machine which is serving on port 8080. I can't forward that port through the router, but I do have an AWS Linux instance running, over which I have total control. ...
0
votes
0answers
18 views

nginx/nextcloud settings https problems

I have a question concerning the setup of nginx/nextcloud on my cubietruck ARM-SOC. I originally posted the question on the nextcloud board but did not get a reply there. So I am hoping for help from ...
0
votes
1answer
27 views

NGINX has to be frequently restarted on Raspberry Pi

I set up a Gitea server on my Raspberry Pi 3B running the latest DietPi. I installed nginx as the reverse proxy for the Gitea website I host. Everything works perfectly, except after a couple of hours ...
0
votes
0answers
17 views

Huge CPU load - php-fpm + nginx

I use php-fpm with STATIC pools and the problem is that 2-3 pools from 20 are used with 80-100% CPU. Other php pools stay unused. My question is: Why other 17 processes stay unused? We used AWS ...
1
vote
0answers
41 views

Nginx rewrite URL to not show file path

Apologies in advance. I'm a beginner with Nginx and have a lot to learn with server administration. After doing a bunch of searching and reading, I'm really not understanding a direct solution to my ...
0
votes
2answers
24 views

Switch user for executing processes with API on Nginx/Ubuntu

I would like to create an API using Nginx (on Ubuntu server) that is able to run processes (execute commands) but www-data is not a user that has access to the data these processes will work on. What ...
1
vote
1answer
35 views

Nginx works automatically for www, even without configuration

Without any configuration on my part, nginx serves website for www. as well as the domain I set in server_name. I have no idea how this is happening, but I'd like to disable this. Meaning: I've ...
1
vote
1answer
95 views

Redirect subdomain to Docker container using NGINX

I have NGINX set up on Centos 7.5, listening on port 80, and directing the traffic to a Gunicorn server. That is the main purpose of this server, and these are are locally installed applications, no ...
0
votes
1answer
34 views

Connection failure after setting SSL on nginx

Im trying to set up https for a client on nginx and failing miserably After uploading the certificate files and setting it up in the server config, I get a "Secure Connection Failed" (FF) when trying ...
0
votes
0answers
31 views

How to serve static files from from a specific directory on a WordPress site running via Nginx

I have a WordPress site running on Nginx. In my configuration, I have a location block like this: location / { try_files $uri $uri/ /index.php?$args; } What I want to do is have a special ...
0
votes
1answer
26 views

Why would an Nginx HTTP to HTTPS redirect not work for the www subdomain

I configured NGINX to redirect all HTTP traffic to HTTPS like this: server { listen 80 default_server; listen [::]:80 default_server; server_name domain.com www.domain.com; return 301 ...
0
votes
0answers
27 views

Reverse Proxy from my domain to my PC - How To?

I am not asking this 'how to' as if its possible or as if a problem has developed. Many of the similar questions are looking for a solution or a way to extend it. My question is more practical in ...
0
votes
2answers
180 views

Nginx server name regex allow dash

I have a site, running on nginx, when comes to the server name i come across some problem regarding the regex, as i know nginx is using Perl Compatible Regular Expressions(PCRE). Now my server name: ...
0
votes
0answers
11 views

Improve Linux Security by using specific groups for database and server

To improve security I want to create 2 groups, as following: database_group can start,restart,stop the Postgresql server can modify the Postgresql configuration files from /etc can't uninstall, ...
0
votes
0answers
41 views

Nginx GET atack

how can I block this request methoh, because I consume all my limits at vps, and the site becomes unavailable. I set it but it does not count in nginx.conf map $request_method $limit { ...
2
votes
1answer
59 views

Nginx: How to avoid server_name duplicate warning

I serve a site from nginx that is available both with internal host names as well as external ones. I want to force external access to use https, but keep http for internal access (because I can't get ...
0
votes
1answer
254 views

How to enable/install the php fileinfo module for php 7.2

I am running a nginx Server on ubuntu of which i am trying to install moodle. But I cant procédé with the setup because it needs the php fileinfo module enabled/or/instald. To be able to procédé with ...
0
votes
3answers
187 views

can't access website by ip but I can access by fully qualified domain

So it seems I can't browse a website by IP, but I can browse using it's hostname. C:\Users\c>nslookup www.example.com Non-authoritative answer: Name: cx-cdn-bre.gss.consultix.net Addresses: 62....
0
votes
0answers
50 views

nginx docker image causes commands on host to stall

docker container run -d -p 2345:80 nginx works almost as expected. Takes about 1s until nginx is available. However, as soon as it has been started, commands like top and htop completely stall the ...
0
votes
1answer
229 views

RTMP to HLS conversion frame rate issues with ffmpeg/nginx

Currently, I'm pushing a RTMP stream to nginx 1.15.3 running on Ubuntu 18.04 LTS from a raspberry pi 3 camera (which seems to be working well on its own, I can pull the stream with no issues on VLC ...
1
vote
2answers
40 views

Fallback for 404 page in nginx

I'm creating a "userdir" configuration, where the webserver serves files inside each user's ~/www directory. I have the following configuration snippet: server { listen 443; listen [::]:433; ...
1
vote
1answer
47 views

nginx index directive does not work

In the following configuration snippet for nginx: server { listen 443; listen [::]:433; ssl_certificate /etc/letsencrypt/live/example.com/fullchain.pem; ...
0
votes
1answer
16 views

Port change on-the-fly

I have an API which reads only on ports 80/443 and I have an IIS server app that should talk with this API but the 80/443 ports are taken by Nginx. Is there a service that takes the API data sent from ...
0
votes
0answers
41 views

Can not run nginx webserver in docker

Hello i am trying to make a nginx server work in container.I have followed this guide : https://www.youtube.com/watch?v=Vyp5_F42NGs When i run the command docker run --name my-nginx -p 80:80 nginx:1....
1
vote
0answers
110 views

Nginx RTMP variables for push

Im trying to setup a nginx server to push an incoming stream to different streaming platforms for me and some friends. the problem to this is, that one of these platforms changes streamkey on every ...
0
votes
1answer
80 views

Public server with nginx

I would like to make my development server public. I have a static ip address from my ISP. As usually I have a router and server connected to that router. In the router's settings I've set the ...
0
votes
0answers
29 views

403 Forbidden nginx cakephp admin section

I have nginx installed on ubuntu with having cakephp installed in vhost. Website is working fine but getting 403 Forbidden error while trying to access domain.com/admin section. Nginx config file :- ...
0
votes
0answers
41 views

Locked out while setting up nginx

It's my first time trying to setup a web server. I was trying to set up a Digital Ocean Droplet running CentOS. During nginx setup, I 'accidentally' changed the permission of '/' to the nginx user, ...
2
votes
2answers
104 views

Is a website that is not linked anywhere completely hidden?

I want to create a webpage that only me, and another person have access to view. I don't want to use any authentication on it (username/password, certificates etc). My question is: If I serve the ...
0
votes
0answers
96 views

Forwarding IP camera webapp in local network with nginx

I want to securely access an IP camera in my home network. The IP cameras web-application is secured with a login-page but I don't trust it. Thus I configured my home servers nginx instance to proxy ...
0
votes
0answers
56 views

php 5 fpm not logging logs in file fpm-php.www.log

I have fpm-php.www.log file inside /var/log. But its not logging errors. I have set 777 permissions to fpm-php.www.log file and also ownership permissions are www-data www-data. My www.conf file ...
1
vote
1answer
63 views

Phusion Passenger not running as expected on VPS upgraded from Debian 7 to Debian 9

I just upgraded my VPS from Debian 7 to Debian 9, it used to run Nginx + PHP 5 + Phusion Passenger. The Debian 9 I am running is 32 bits and is on a 2GB RAM VPS. Upgraded all software, MariaDB, PHP, ...
1
vote
1answer
114 views

How to make nginx pages running on wsl visible on the local area network(lan)?

ah my last piece of the puzzle in creating a great dev environment... Nginx runs fine on wsl ubuntu 16.04. On the windows machine I can see pages with url localhost or url of any ip address in ...
1
vote
1answer
222 views

Named location as fallback in try_files directive

I'm having problem wrapping my head around routing processing in Nginx. server { listen 80; listen [::]:80; server_name my_domain; root /var/www/ep; index index.html; ...
0
votes
1answer
21 views

It it possible to host two different secure websites on same Linode server instance using nginx?

Lets say I have two different websites example1.com and example2.com both of which will be secure (HTTPS). I want to host these websites on same Linode server instance (not create two virtual hosts) ...
0
votes
0answers
92 views

Nginx server is stopping for no apparent reason

I've set up an Nginx server for my site. Unfortunately, Nginx stops after some days (it's not a fixed period, sometimes after 5 days, sometimes after 1 month) and my site goes down. I need to restart ...
0
votes
1answer
60 views

Configuring nginx/ngrest on Ubuntu virtual machine for outside access

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
1answer
131 views

Nginx configuration passing fastcgi parameter and rewriting depending on location

I'm searching a way to configure nginx with the a php applciation. It should serve static files if they exists. If they are in the subfolder /dev, they are only allowed for the 127.0.0.1; An uri ...
0
votes
1answer
260 views

ffmpeg restreaming to nginx, connection refused

New to ffmpeg and read a dozen of guides and howto, but still can't get it to work. I have a Tvheadend server that receives channels from DVB, the channels work without any problem, but I need to ...