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]

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

-1
votes
0answers
26 views

How to secure part of a nginx website with two factor authentication

I want to make a way to log into my server through only a web browser (I'm probably going to use wetty for this) and now I'm deciding on how to secure this. I don't feel like having just a password ...
1
vote
1answer
13 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
29 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
18 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
39 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
24 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
19 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
65 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 ...
1
vote
1answer
114 views

dokuwiki, nginx and farms

I am attempting to setup multiple dokuwiki's but I am really struggling... I can set up one with relative ease but I would like to make use of the farm concept ( https://www.dokuwiki.org/farms ). The ...
0
votes
0answers
15 views

Installing Lets Encrypt Certificates on ubuntu 16.4/Nginx and iRedMal

I am having trouble with site mailtest.example.com, ubuntu 16.4 installed fresh, in hosts hostname is set to mailtest.example.cm, iRedmail installed with nginx, DNS pointed to IP address and it ...
1
vote
1answer
42 views

Reverse proxing gitbucket via nginx

I'm currently trying to make nginx work with gitbucket using following this tutorial. Although this is the official gitbucket wiki this page is very incomplete, and i need to adapt some details from ...
0
votes
0answers
107 views

centos 7 nginx not accepting requests from outside networks

I'v configured a Nginx server on centos 7 and it works properly from the browser on the server. but when I try from any remote clients it says that it can not connect. I'v tried to add http to ...
0
votes
0answers
35 views

Hidden Service in nginx always redirect to the site in ClearNet

I have created my Hidden Service just to do experience, but I am having toubles doing it. As they says the official instructions here, https://www.torproject.org/docs/tor-onion-service I started ...
0
votes
0answers
8 views

nginx loadbalance for nodejs socket.io

I am trying to use nginx for reverse proxy, and direct to two servers running node.js with socket.io(websocket long connection.) When I pass it to one server, it works fine. But when I try to load ...
2
votes
1answer
31 views

can't reach nginx port with netcat

I have this simple nginx config file: server { listen 4000; location / { root /usr/share/nginx/html; index index.html index.htm; try_files $uri $uri/ /index.html =404; } } nginx ...
0
votes
0answers
13 views

nginx drupal rewrite ?q=user to base url

I would like to redirect https://example.com/?q=user to https://example.com. Also, I would like to allow https://example.com/?q=user-info. I am configuring Nginx as my proxy and now using proxy_pass ...
1
vote
1answer
78 views

Secure PHPMyAdmin on Ubuntu Nginx - direct access to index.php still exists

On an Ubuntu - Nginx webserver I try to secure PHPMyAdmin. There are a lot of tutorials around, they propagate the use of auth_basic or allow own / deny all other IP addresses and/or use obfuscation ...
1
vote
0answers
20 views

Is this usage of the nginx if-directive safe?

According to their own documentation, if is Evil. They gave several examples that certain configurations will not work if an if directive is used. They don't go into detail as to why it behaves wrong ...
0
votes
0answers
38 views

How to redirect in nginx based on location?

What I would like to do I have a domain example.com, for which I require a SSL client certificate to access. This is done easily with the ssl_verify_client on; directive. Some ressources however, ...
0
votes
0answers
36 views

How to config http_secure_link in NGINX?

I have test config example, but it does not works. NGINX: location ~ \.mp4$ { secure_link $arg_md5,$arg_expires; secure_link_md5 "test"; if ($secure_link = "") ...
0
votes
0answers
70 views

Ubuntu brand new installation in VM, with nginx permission issues

I built a fresh VM built from the std Ubuntu 18/04 LTS x64 Server image. Installed updates, then installed VBox Guest Additions following the simple steps outlined here. Installed nginx with: sudo ...
-1
votes
1answer
28 views

I can SSH into server, but HTTP doesn't work at all?

I set up nginx everything has been working grand for a couple months until today I noticed that I couldn't connect to my website. I can : SSH into my server Service nginx status confirms that it is ...
0
votes
1answer
11 views

niginx proxy_pass no longer passing the real IP

I have this setup for years: centos5, nginx, apache Nginx is configured to proxy like this proxy_redirect off; proxy_set_header Host $host; proxy_set_header X-Real-...
0
votes
0answers
139 views

nginx + php-fpm70 getting 502 bad gateway

I'm Getting 502 bad gateway error in one of my magento2 site. Here are my configuration files. nginx.conf configuration file user nginx; worker_processes 4; worker_rlimit_nofile 100000; pid /...
0
votes
0answers
307 views

Nextcloud: Can’t create or write into the data directory /var/nc_data

I'm getting the above error. What I tried so far: checked the permissions. I even did chmod 777 /var/nc_data -R first included all used party in open_basedir in my php.ini. When that didn't work, I ...
0
votes
0answers
16 views

nginx ssl setup servernotfound and error.log file empty

## myapp backend ## upstream myapp { server 127.0.0.1:8069; } ## https site## server { listen 443 default; server_name myapp.xyz; root /usr/share/nginx/html; index ...
0
votes
0answers
84 views

Nginx rewrite .jsp extension and proxy to tomcat

Outgoing How can you create a Nginx rewrite rule in the appropriate server block, that takes any URL ending on .jsp and removes the .jsp extension after retrieving the correct .jsp page from the ...
0
votes
0answers
118 views

nginx php7.1-fpm.sock location

I'm getting an issue related with the location of /var/run/php/php7.1-fpm.sock. I have the php installed: php -v // PHP 7.1.17-1+ubuntu16.04. ...... But the problem is that the folder /var/run/ ...
1
vote
1answer
99 views

Why do queries with a slash work, but no trailing slash get 404's in my Nginx config?

Against below nginx config: upstream search { least_conn; server www.google.com:80 max_fails=1 fail_timeout=10 weight=1; ...
0
votes
0answers
18 views

How do I re-proxy in nginx if response is 204

I need to proxy request to a different server when the response is 204 so that a fallback server can make another attempt to serve that request. recursive_error_pages off; error_page 204 = @missing; ...
0
votes
0answers
24 views

Nginx doens't work on external IP

In an ProxMox VM, I have an Ubuntu VM which runs nginx (default configuration) via bridged network, so my VM has its own IP Address. As a router, I have a FritzBox. When I try to connect via LAN to ...
1
vote
1answer
211 views

Owner of php session folder keeps changing

Problem Every few weeks, the php session folder of a machine changes to owner apache even though I'm using nginx. This breaks PHP applications, for example phpMyAdmin, with a session_start(): open(...
0
votes
1answer
325 views

nginx reverse proxy redirect returns incorrect URL

I am setting up JIRA Software in a Docker container. JIRA is listening on 127.0.0.1:8080. I have my reverse proxy on https://hostname/jira redirecting the traffic using this config: location /jira { ...
1
vote
1answer
184 views

Nginx Rewrite Rule for Special Charachter

I have one URL as www.xyz.com/api/abcdefgh^ijklmn. I want to redirect this URL www.xyz.com/api/abcdefgh%5ijklmn. Can some one suggest what will be Nginx Redirect rule for this.
0
votes
1answer
196 views

Setup nginx as proxy server for kestrel (ASP.Net Core)

I am trying to setup an ASP.NET Core Environment to host my application but I am having trouble with the nginx webserver. When I try to connect to my domain I get 502 Bad Gateway. Nginx should just ...
1
vote
0answers
525 views

nginx port forwarding / ssh tunneling

I have a computer (let's call it A) on a local network with no static IP address accessible from the outside. (SSH port AAAAA) A has a webserver that I want to be able to access from the outside I ...
0
votes
1answer
65 views

WinSCP on WebDav shows weird date + error 500 on PUT

I have setup a webdav dir in nginx like this: server { root /home/webuser/www/ # some more locations for static content location /password-repo/ { root /home/webuser/www/...
2
votes
0answers
504 views

How to deploy Vue application and Node backend server application on nginx?

I have vue frontend application which I have built generating index.html and dist folder containing all the bundles. In addition I have developed another express base node application which provides ...
3
votes
1answer
313 views

Nginx serves site even if server_name does not match

This is my nginx configuration (running as docker container, in case it matters): events { worker_connections 4096; ## Default: 1024 } http { server { server_name registry.mydomain; ...
0
votes
0answers
40 views

Gitbucket restricted to local-host only on cloud can be pulled up from none local host.

I have a droplet running on Digital Ocean where I installed gitbucket and nginx. I have nginx setup to redirect request for my.ip.address to my.ip.add.ress:8080 to allow for access on the default IP ...
0
votes
0answers
2k views

SSL - Nginx http proxy status 400 “400 Bad Request”

I have implemented a set of Restful APIs using Scala. Now, I am in the situation of securing the APIs using SSL. So I have created the Self Signed Certificate using openssl. I followed all the steps ...
0
votes
0answers
41 views

Nginx wordpress site turn of compression for 1 page

I have a multisite wordpress site running on Nginx and want some pages that would have personal data on them to not be send using HTTP compression to the users. I want this because with HTTP ...
0
votes
0answers
144 views

Cannot connect to nginx web server over LAN

I cant connect to my Nginx web server when on my LAN, I have tried using both the internal and external IP's. I keep getting told connection refused. By this I mean that if I try to connect via web ...
1
vote
3answers
930 views

can't run nginx in alpine linux (docker)

Well I have set up an alpine linux docker container with nginx on it (apk add nginx) Now I am trying to run nginx. With the simple command nginx This returns the following error: nginx: [emerg] ...
0
votes
0answers
8 views

Ngnix script execution on a server rebalancing

I have nginx which balances traffic between two nodes. Each node has attached workers(through mq). When the node fails, the traffic is redirected to other node, and this leads to the situation when ...
0
votes
0answers
201 views

Certbot can't install certificate on nginx

I have a mysterious error when I try to install a certificate on nginx with certbot. I get the following output when I run certbot --authenticator webroot --installer nginx: nginx: [emerg] a ...
0
votes
0answers
40 views

Nginx forwarding by server name

I have several dockerized services, serving http (and https). The internal http port (80) is mapped at the docker level to a different port, so that is is reachable on the host. And this is working ...
2
votes
0answers
442 views

Nginx - Execute php files in different docker container

I am using an automated docker-image for php-fpm and nginx (https://hub.docker.com/r/tobi312/rpi-php/ and https://hub.docker.com/r/tobi312/rpi-nginx/ ) running on a raspberry pi with with libreelec on ...
0
votes
1answer
328 views

Docker: nginx-proxy through openvpn tunnel

I am trying to use DigitalOcean VPS as a openVPN server to access services (e.g. nextcloud) hosted on my home network through subdomains (e.g. nextcloud.example.com). I have set up the following: [...
1
vote
0answers
371 views

Serve generated static files in Elastic Beanstalk

I have a SailsJS app which I'm trying to deploy to Elastic Beanstalk by following Amazon's NodeJS tutorial. My website comes up, but all the requests for static files (css, js, images) are being ...